--
PedroRio - 30 Dec 2010
XEO Java API - boObject
The boObject class represents a instance of an Object Model, and has several methods to retrieve class handlers to manipulate attribute values, to retrieve class handlers to query the Object Model definition as well as methods to handle the instance's life cycle and behavior.
Object Properties
Methods in this category allow to retrieve properties of the object instance.
_
Dealing with Attributes
Methods in this category allow to retrieve handlers to interact with attributes of the instance
Method Name |
Description |
Parameters |
Return type |
Notes |
getAttribute |
Retrieves an attributeHandler for the attribute passed as a parameter |
String name |
AttributeHandler |
|
getAttributes |
Retrieves an array of attributeHandlers with all non-collection attributes |
- |
boAttributeArray |
The boAttributeArray class is a wrapper around an array to keep attribute handlers |
getAttributes |
Retrieves an array of attributes with all attributes of the type passed as a parameter |
byte type |
boAttributeArray |
* See table of convertions ( VAI VER boDefAttribute.java public static final byte VALUE_UNKNOWN=0; public static final byte VALUE_CHAR=9; public static final byte VALUE_BOOLEAN=1; public static final byte VALUE_DURATION=2; public static final byte VALUE_CURRENCY=3; public static final byte VALUE_NUMBER=4; public static final byte VALUE_DATETIME=5; |
getAllAttributes |
Retrieves a handler to all (collection and non-collection) attributes |
- |
boAttributeArray |
|
getBridge |
Retrieves a bridgeHandler for a collection attribute passed as parameter |
String name |
|
|
getBridges()
getBridge()
getAllAttributes
Dealing with Definitions
getBoDefinition()
getMenuMethods()
getToolbarMethods() - Qual a diferença entre este e o anterior
getToolbarMethodsNames()
Object Life Cycle
update()
destroy()
getUpdateQueue()
destroyForce()
exists() -
clone()
isChanged()
setDisabled(deep)
isDisabled()
Object Behavior
addErrorMessage()
addErrorMessage(
AttHander)
addAdvertiseMessage()
addAdvertiseMessage(
AttHandler)
haveErrors()
haveObjectErrors()
haveAttributeErrors()
getObjectErrors
getAttributeErrors
clearErrors()
clearObjectErrors()
clearAttributeErrors()
valid() - If the object is valid
References
getParent()
getParents()
removeParent()
addParent()
getReferencesObjects()
getReferencedByObjects()
a
VERIFICAR: mergeAttributes
a