Attributes
An Attribute is a read-only, system-defined element: a name/value pair, where the name is case-insensitive. It holds certain information about a certain Node in the Metadata structure. This information can be static (e.g. the size of a physical page) or evaluated on-the-fly (e.g. the number of documents in a group).
Attributes are non-repetitive (i.e. name is unique) and do not persist through Metadata recreation.
For an overview of Attributes and the Node types in which they are available, see the Metadata Attributes reference.
Attributes are stored in a collection container object, just like the Node's Fields. As is the case with the different types of Nodes, both collections share a number of methods and properties. The Fields collection however has additional methods to support multiple entries with the same name, which is forbidden with attributes.
Properties
Name | Type | Description |
---|---|---|
Count |
Integer |
Returns the number of elements in the collection. |
Methods
Name | Return type | Description |
---|---|---|
|
Adds a new element to the collection or overwrites its value. |
|
Clear() |
Clears all elements from the collection. |
|
Integer |
Returns the number of elements with the specified name. |
|
|
Deletes the element at the specified index. |
|
String |
Returns the value of the element stored at the specified index. |
|
String |
Returns the value of the element of the specified name. |
|
String |
Returns the name of the element stored at the specified index. |