This class represents a collection of attributes.
Constructor
Attributes(attribute, ...)
Attributes(
boolean ignoreCase, attribute, ...)
| Parameters |
attributes -
Map (id=>value) or instance of Attribute
|
Methods
Returns the attribute given id
| Returns |
Attribute or undefined |
Returns the iterator of Attributes in this set.
Returns the numeration of ID's from this set.
Determines whether the attribute set ignores the case of attribute
identifiers when retrieving or adding attributes.
Puts a new attribute to this set.
| Parameters |
id -
Id of attribute
value -
Value of attribute
attr -
Atttribut eto add
|
| Returns |
Attribute that was replaced, or undefined |
Removes attribute with give id.
| Returns |
Removed Attribute or undefined |
Return the number of attributes in this set.
Attributes
Attribute Attributes.attrId
Retrieves given attribute.
delete Attributes.attrId
Removes given attribute.
| Parameters |
attrId -
ID of attribute to retrieve
|
| Returns |
Attribute or undefined if no such attribute
exist. |
References
Attribute Attributes[attrId]
Retrieves given attribute.
delete Attributes[attrId]
Removes given attribute.
| Parameters |
attrId -
ID of attribute to retrieve
|
| Returns |
Attribute or undefined if no such attribute
exist. |
Operators
Attributes[] = element
Adds a new value to this attribute.
| Parameters |
element -
Element to add, either instance of Attribute or
id=>element map.
|