--
PedroRio - 30 Dec 2010
The attributeHandler class is responsible for managing a single attribute in the a given boObject instance. In an Object Model, each attribute is of given type but in the Java API the attributeHandler class is responsible for dealing with all of them (except collection attributes, for that use the
BridgeHandler). This means an attributeHandler class has methods to retrieve and set the value of the attribute with different types (it's up to the developer to know an attribute's type). It's possible, however, to check the attribute model definition for its data type.
In the following sections the most important methods of the API will be presented.
Reading attribute value
getValueBoolean
getValueString
getValueLong
getValueDouble
getValueDate
getValueIFile
getValueObject
Setting the attribute value
setValueBoolean
setValueString
setValueLong
setValueDouble
setValueDate
setValueIfile
setValueObject
Definition
getDefAttribute()
getName()
Attribute Behavior
hiddenWhen()
disableWhen()
required()
valid()
haveDefaultValue()
defaultValue()
isDisabled()
setDisabled()
isVisible()
setVisible()
setInvalid()