|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.virtualweaver.xotics.datamodel.XoObjectSupport
This is a default XoObject
implementation developpers can use, by derivation,
to increase productivity when an XoObject
implementation has no requirement
to derive from any specific Java object.
Field Summary | |
protected java.beans.PropertyChangeSupport |
propertyChangeSupport
property change event support object, usable by derived object from this |
protected java.beans.VetoableChangeSupport |
vetoableChangeSupport
vetoable change event support object, usable by derived object from this |
Constructor Summary | |
XoObjectSupport()
Empty param constructor, as required in JavaBeans specs. |
Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a listener of PropertyChangeEvent fired by this .
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener l)
Adds a VetoableChangeListener to the listener list. |
void |
checkXoValidity()
This method does nothing. |
java.lang.Object |
clone()
Returns a copy of this object only (not a deep copy). |
protected java.lang.Object |
clone(XoObjectSupport src)
Effective copy method of this object. |
boolean |
equalsXoObject(XoObject xo)
Checks whether or not this could be equal to xo . |
java.util.Locale |
getLocale()
Returns the currently selected locale, previously and directly set according to XML attribute xml:lang . |
java.lang.String |
getXmlLocalName()
Returns the XML local name of the element represented by this . |
java.lang.String |
getXmlNameSpace()
Returns the XML NameSpace of the element represented by this . |
byte |
getXmlWhiteSpace()
Returns the currently selected space management directive, previously and directly set according to XML attribute xml:space . |
XoDMInstance |
getXoDMInstance()
Returns the XO Data-Model instance owning this XO Object. |
XoContainer |
getXoParent()
Returns the XO Container parent of this . |
boolean |
isXoPropertyToWrite(java.lang.String pname)
Returns false, as there is no published property for this . |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a listener of PropertyChangeEvent previously registered
by corresponding add method. |
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener l)
Removes a VetoableChangeListener from the listener list. |
void |
setIntegrated(boolean integrated)
Does nothing. |
void |
setLocale(java.util.Locale locale)
This property is directly set according to XML attribute xml:lang . |
void |
setXmlLocalName(java.lang.String xmlLocalName)
Sets the XML local name used with this .
|
void |
setXmlNameSpace(java.lang.String xmlNameSpace)
Sets the XML local name used with this .
|
void |
setXmlWhiteSpace(byte wsd)
This property is directly set according to XML attribute xml:space . |
void |
setXoDMInstance(XoDMInstance xoDMInstance)
Sets the XO Data-Model instance owning this XO Object. |
void |
setXoParent(XoContainer parent)
Sets the XO Container parent of t this . |
java.lang.String |
toString()
Returns a default string version of this . |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.beans.PropertyChangeSupport propertyChangeSupport
protected java.beans.VetoableChangeSupport vetoableChangeSupport
Constructor Detail |
public XoObjectSupport()
Method Detail |
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
XoObject
PropertyChangeEvent
fired by this
.
PropertyChange events are fired (if necessary) when properties are changed.
addPropertyChangeListener
in interface XoObject
listener
- a PropertyChangeEvent
listenerXoObject.addPropertyChangeListener(java.beans.PropertyChangeListener)
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
XoObject
PropertyChangeEvent
previously registered
by corresponding add method.
removePropertyChangeListener
in interface XoObject
listener
- a PropertyChangeEvent
listener registeredXoObject.removePropertyChangeListener(java.beans.PropertyChangeListener)
public void addVetoableChangeListener(java.beans.VetoableChangeListener l)
XoObject
VetoableChangeListener
to the listener list.
addVetoableChangeListener
in interface XoObject
l
- The listener to add.XoObject.addVetoableChangeListener(java.beans.VetoableChangeListener)
public void removeVetoableChangeListener(java.beans.VetoableChangeListener l)
XoObject
VetoableChangeListener
from the listener list.
removeVetoableChangeListener
in interface XoObject
l
- The listener to remove.XoObject.removeVetoableChangeListener(java.beans.VetoableChangeListener)
public boolean equalsXoObject(XoObject xo)
this
could be equal to xo
. This method
compares name space and local name and returns true if both are equal.
equalsXoObject
in interface XoObject
xo
- an XO object to compare to this
public void checkXoValidity() throws XoValidityException
checkXoValidity
in interface XoObject
XoValidityException
XoObject.checkXoValidity()
public java.util.Locale getLocale()
XoObject
xml:lang
. If no value specified, can return null
.
getLocale
in interface XoObject
XoObject.getLocale()
public void setLocale(java.util.Locale locale) throws java.beans.PropertyVetoException
XoObject
xml:lang
.
setLocale
in interface XoObject
locale
- a Locale object holding xml:lang
value.
java.beans.PropertyVetoException
- if this
is in a DM instance in read-only modeXoObject.setLocale(java.util.Locale)
public byte getXmlWhiteSpace()
XoObject
xml:space
. By default, must return XoConstants.WS_COLLAPSE
which corresponds to xml:space=DEFAULT
.
getXmlWhiteSpace
in interface XoObject
XoConstants.WS_PRESERVE
or XoConstants.WS_COLLAPSE
(default).XoObject.getXmlWhiteSpace()
public void setXmlWhiteSpace(byte wsd) throws java.beans.PropertyVetoException
XoObject
xml:space
.
setXmlWhiteSpace
in interface XoObject
wsd
- either XoConstants.WS_PRESERVE
or XoConstants.WS_COLLAPSE
(xml:space=DEFAULT).
java.beans.PropertyVetoException
- if this
is in a DM instance in read-only modeXoObject.setXmlWhiteSpace(byte)
public boolean isXoPropertyToWrite(java.lang.String pname)
this
.
isXoPropertyToWrite
in interface XoObject
pname
- the name of a property of this
XoObject.isXoPropertyToWrite(java.lang.String)
public XoDMInstance getXoDMInstance()
XoObject
getXoDMInstance
in interface XoObject
XoObject.getXoDMInstance()
public void setXoDMInstance(XoDMInstance xoDMInstance)
XoObject
setXoDMInstance
in interface XoObject
xoDMInstance
- the Data-Model instance owner, or null if this object is not in
an XO Data-Model instance.XoObject.setXoDMInstance(com.virtualweaver.xotics.datamodel.XoDMInstance)
public java.lang.String getXmlNameSpace()
XoObject
this
.
getXmlNameSpace
in interface XoObject
XoObject.getXmlNameSpace()
public void setXmlNameSpace(java.lang.String xmlNameSpace)
XoObject
this
.
This method is useful only when this can serve as implementation of several elements, in multiple name spaces.
setXmlNameSpace
in interface XoObject
xmlNameSpace
- the XML name space.XoObject.setXmlNameSpace(java.lang.String)
public java.lang.String getXmlLocalName()
XoObject
this
.
getXmlLocalName
in interface XoObject
XoObject.getXmlLocalName()
public void setXmlLocalName(java.lang.String xmlLocalName)
XoObject
this
.
This method is useful only when this can serve as implementation of several elements.
setXmlLocalName
in interface XoObject
xmlLocalName
- the XML local nameXoObject.setXmlLocalName(java.lang.String)
public XoContainer getXoParent()
XoObject
this
. Only the root object has no parent.
getXoParent
in interface XoObject
this
, or null if this object
is not in a DM instanceXoObject.getXoParent()
public void setXoParent(XoContainer parent)
XoObject
this
. Only the root object has no parent.
setXoParent
in interface XoObject
parent
- XO Container parent of this, or null if this object
is not in a DM instance.XoObject.setXoParent(com.virtualweaver.xotics.datamodel.XoContainer)
public java.lang.Object clone()
clone
in interface XoObject
protected java.lang.Object clone(XoObjectSupport src)
public java.lang.String toString()
this
.
public void setIntegrated(boolean integrated)
setIntegrated
in interface XoObject
integrated
- true if integrated, false if completely removedXoObject.setIntegrated(boolean)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |