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. A <property> tag or an <item-descriptor> tag can contain zero or more <attribute> tags. The <attribute> tag is an empty tag that defines the parent’s feature descriptor value or values. This tag allows you to 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. Here is an 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/QuincyFunds/repositories/FeaturesDataStore.
relativePathPrefix" />

Attribute tags must be empty and have no child tags.

attribute Tag Attributes

Attribute

Description

Value

Name

The name of the name/value pair. You can specify any name here and it will be added to the list of feature descriptor attributes for your property.

Required.

Value

The value of the name/value pair. The data type of this value is defined by the data-type attribute supplied to this tag. If no data-type attribute is provided, the value of the attribute is a string.

Required.

data-type

The primitive data-type of the value.

int
short
byte
long
float
double
string
date
timestamp

Default is string.

Bean

The name of a Nucleus component or property that is the value of the attribute.

A Nucleus address. If a relative address is specified, the address is relative to the Repository component. See the Assigning FeatureDescriptorValues with the <attribute> Tag section in this chapter.

 
loading table of contents...