new Callback(){Callback}
Constructor: Initializes the AttributeTypeList.
Returns:
Type | Description |
---|---|
Callback |
Methods
-
addAttributeType(attribute)
-
Adds an attribute to AttributeTypeList.
Name Type Description attribute
Attribute Attribute
-
equals(_callback){boolean}
-
Compares this instance with the given one.
Name Type Description _callback
Callback Callback that should be compared
Returns:
Type Description boolean -
getAttributeTypes(){AttributeList}
-
Returns the associated attributes (only the types).
Returns:
Type Description AttributeList -
getName(){string}
-
Returns the name.
Returns:
Type Description string -
removeAttributeType(attribute)
-
Removes an attribute from AttributeTypeList.
Name Type Description attribute
Attribute AttributeType
-
setAttributeTypes(_attributes)
-
Adds a list of AttributeTypes.
Name Type Description _attributes
AttributeList | Array AttributeTypeList
-
setName(name)
-
Sets the name.
Name Type Description name
string Name
-
withAttributeTypes(attributeListOrArray){Callback}
-
Builder for AttributeTypes.
Name Type Description attributeListOrArray
AttributeList | Array attributeTypes
Returns:
Type Description Callback -
withName(_name){Callback}
-
Builder for name.
Name Type Description _name
String Name
Returns:
Type Description Callback