|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Wrapper for a JavaBean property. It permits both :
XoProperty
per property for an instance of XoObject
.
Only published properties (i.e JavaBean properties visible by Xotics environment) have their
XoProperty
wrapper, which are created by XoRegistry.getProperties(XoObject)
and related methods.
Method Summary | |
java.beans.PropertyEditor |
createPropertyEditor()
Creates a new instance of the PropertyEditor object associated to
this property. |
boolean |
equals(java.lang.Object po)
Tells whether this XoProperty equals param po. |
java.lang.String |
getJavaName()
Returns JavaBean property name |
XoObject |
getOwnerObject()
Gets the XoObject instance whose property is represented by this |
int |
getPosition()
Returns the property position in the list of properties of XO object owner. |
java.lang.String |
getShortDescription()
Returns the short description value coming from java.beans.PropertyDescriptor .
|
java.lang.Object |
getValue()
Gets the value of this property in a thread-safe way. |
java.lang.String |
getValueAsText()
Gets the value of this property as a string. |
java.lang.Class |
getValueClass()
Returns the java type of property represented by this |
java.lang.String |
getXmlName()
Returns XML attribute name corresponding to this property |
boolean |
isConstrained()
Tells whether setter method of this property takes care of JavaBean property veto feature. |
boolean |
isIndexed()
Returns true if this property is an indexed JavaBean property (i.e is Java type is an array). |
void |
setValue(java.lang.Object value)
Sets the value of this property in a thread-safe way. |
void |
setValueAsText(java.lang.String text)
Sets the value of this property from a string in a thread-safe way. |
java.lang.String |
toString()
Be careful : this method is not equivalent to getValueAsText() . |
Method Detail |
public XoObject getOwnerObject()
XoObject
instance whose property is represented by this
XoObject
owner of property represented by this
public java.lang.String getJavaName()
public java.lang.String getXmlName()
public java.lang.Class getValueClass()
this
public java.beans.PropertyEditor createPropertyEditor()
PropertyEditor
object associated to
this property. Normally, such instances are created internally, as needed, but it can be
useful to give access to the PropertyEditor
. Every property has a PropertyEditor, even if
none has been defined. For self-converted properties, a default Property Editor is associated, so this
method should never return null.
PropertyEditor
class used to edit this property.public int getPosition()
public boolean equals(java.lang.Object po)
XoProperty
equals param po. Equality occurs when both
XoProperty
objects share the same java name and owner XoObject
(as instance in memory)
po
- the object to compare to
public boolean isIndexed()
java.beans.PropertyDescriptor
of this property.
this
represents an indexed JavaBean property.public boolean isConstrained()
java.beans.PropertyDescriptor
of this property.
VetoableChange
event is fired when the property is changedpublic java.lang.String getShortDescription()
java.beans.PropertyDescriptor
.
This value comes from the java.beans.PropertyDescriptor
of this property.
public java.lang.Object getValue() throws XoException
XoLockedException
- if DM instance is locked
XoException
- if some error occurred during retrievingpublic void setValue(java.lang.Object value) throws XoException, java.beans.PropertyVetoException
value
- the value object to set
XoLockedException
- if DM instance is locked
XoException
- if some error occurred during setting
java.beans.PropertyVetoException
- if DM instance is read-onlypublic void setValueAsText(java.lang.String text) throws XoException, java.beans.PropertyVetoException
text
- the string to set after appropriate conversion
XoLockedException
- if DM instance is locked
XoException
- if some error occurred during conversion then setting
java.beans.PropertyVetoException
- if DM instance is read-onlypublic java.lang.String getValueAsText() throws XoException
XoLockedException
- if DM instance is locked
XoException
- if some error occurred during retrieving and string conversionpublic java.lang.String toString()
getValueAsText()
. It just gives a
description of informations wrapped by this
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |