User`s guide

Specifying Property Information
7-15
Constraint Value Description
bounded Property has both a minimum and maximum value. If you set
the constraint attribute to bounded, you must assign values
to the min and max attributes.
enum Property is an enumerated value. If set, the Property node
must contain one or more EnumConstraintValue nodes. See
“Specifying Enumerated Values” on page 7-15.
inforpositive Value must be positive or infinite
none No constraints
positive Value must be positive
zeroinforpositive Value must be greater than zero or infinite
zeroorpositive Value must be greater than zero
Specifying Enumerated Values
If your property uses enumerated values, you must set the value of the constraint
attribute to enum, the type attribute to string, and create EnumConstraintValue
elements for each enumeration. The EnumConstraintValue nodes are children of the
Property node.
When you create the EnumConstraintValue nodes, you specify two attributes:
Value ID
Value name
This example defines the property StrobeEnable. The constraint attribute is set to
enum. The name attribute of the EnumConstraintValue nodes defines the possible
values of this enumeration: on and off.
<Property optional="on"
constraint="enum"
deviceSpecific="true"
name="StrobeEnable"
readOnly="whileRunning"
type="string">
<EnumConstraintValue id="0" name="off" />
<EnumConstraintValue id="1" name="on" />
</Property>