<!ELEMENT attribute EMPTY>
Parent: <item-descriptor>, <property>, <table>
A Java Beans PropertyDescriptor
can store an arbitrary set of name/value pairs called feature descriptor attributes. You can use the <attribute>
tag in the SQL repository as a child of a <property>
or an <item-descriptor>
tag to supply parameters that affect the behavior of properties or item types in your repository definition.
The <attribute>
tag is an empty tag that defines the parent’s feature descriptor value or values. This tag lets you associate arbitrary name/string value pairs with any property or item type. The name/value pairs are added to the property descriptor via the setValue
method of java.beans.FeatureDescriptor
, and can later be used by the application. For example:
<property name="employeeNumber" data-type="string"> <attribute name="PCCExpert" value="true" data-type="boolean"/> </property>
See User-Defined Property Types for more information.
You can refer to values of Nucleus components with the bean
attribute of the <attribute>
tag. For example:
<attribute name="documentRootPath" bean="/atg/demo/Motorprise/repositories/FeaturesDataStore.relativePathPrefix" />
Attribute tags must be empty and have no child tags.
Attributes
Attribute | Description |
---|---|
| The name of the name/value pair. You can specify any name here and it is added to the list of feature descriptor attributes for your property. |
| The value of the name/value pair. The data type of this value is defined by the |
| The primitive data-type of the value, one of the following:
|
| The name of a Nucleus component or property that is the value of the attribute. If a relative address is specified, the address is relative to the |
| Typically used for XML file combination, where elements with the same ID are regarded as the same element. |