<!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/QuincyFunds/repositories/FeaturesDataStore.relativePathPrefix" />

Attribute tags must be empty and have no child tags.

Attributes

Attribute

Description

name

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.

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.

data-type

The primitive data-type of the value, one of the following:

string*          int
byte             short
date             long
timestamp        float
                 double

*default

bean

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 Repository component. See the Assigning FeatureDescriptorValues with the <attribute> Tag section in this chapter.

Xml:id

Typically used for XML file combination, where elements with the same ID are regarded as the same element.


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices