<!ELEMENT option EMPTY>

Parent: <property>

If a property’s data-type property is set to enumerated, use <option> tags to indicate the possible values of the enumerated properties. For example:

<property name="gender" data-type="enumerated">
      <option value="male" code="0"/>
      <option value="female" code="1"/>
</property>
Attributes

Attribute

Description

value

The value of the enumerated option.

code

The integer code that represents the enumerated option in the database.

If no code is specified, an appropriate code is generated by the SQL repository. The value of the code attribute is a sequential integer, with the first option beginning at 0.

resource

If a resource bundle is specified for this property with the tag <attribute name=resourceBundle>, this attribute specifies the resource bundle key to the property option’s the string value. See Localizing SQL Repository Definitions.

xml:id

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


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