Plugins can query the schema to find out more information about the attributes defined in the current application.
attribute must be one of the
ATTR properties. You should not rely on the exact underlying type of this value in your code.
Each attribute information object contains the following keys:
The name of the attribute, suitable for displaying to the user.
The API code for the attribute, eg
"dc:attribute:title". May be
undefined if the attribute does not have an API code.
The short name, or “search name”, of the attribute. Used in search constraints.
You must not assume that every value in this attribute will be of this type. The object store does not type check values in objects. Changes to the schema can result in other types of values being stored in an attribute.
An array of
Ref objects specifying the types to which this attribute may link. Note that the object store does not type check linked objects in attributes.
This is provided only when
typecode === O.T_REF.
An array of qualifier values for the qualifiers currently allowed to be applied in the object editor UI. Note that it is entirely possible for an object to have a qualifier which is not in this list, either because the allowed qualifiers changed, or a plugin applied the qualifier.
An empty list means that all qualifiers will be allowed by the object editor UI.