com.virtualweaver.xotics.datamodel
Class XoTextContainerSupport

java.lang.Object
  extended bycom.virtualweaver.xotics.datamodel.XoObjectSupport
      extended bycom.virtualweaver.xotics.datamodel.XoTextContainerSupport
All Implemented Interfaces:
java.lang.Cloneable, XoNode, XoObject, XoTextContainer

public abstract class XoTextContainerSupport
extends XoObjectSupport
implements XoTextContainer

This is a default XoTextContainer implementation developpers can use to increase productivity when an XoTextContainer implementation has no requirement to derive from any specific Java object. Note that this support object is abstract : to be completed, it must have accessor methods for xoTextContent property, of any type.

Version:
4.1

Field Summary
 
Fields inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport
propertyChangeSupport, vetoableChangeSupport
 
Constructor Summary
XoTextContainerSupport()
          Empty param constructor, as required in JavaBeans specs.
 
Method Summary
protected  java.lang.Object clone(XoTextContainerSupport src)
          Effective copy method of this object.
 boolean equalsXoObject(XoObject xo)
          Checks whether or not this could be equal to xo.
 boolean isCdataSection()
          Indicates whether this node is a CDATA Section.
 void setCdataSection(boolean iscdata)
          Sets this node as a CDATA Section or not.
 
Methods inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, clone, clone, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.virtualweaver.xotics.datamodel.XoObject
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, clone, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent
 

Constructor Detail

XoTextContainerSupport

public XoTextContainerSupport()
Empty param constructor, as required in JavaBeans specs.

Method Detail

equalsXoObject

public boolean equalsXoObject(XoObject xo)
Checks whether or not this could be equal to xo. When both name spaces and local names are equals this method returns true.

Specified by:
equalsXoObject in interface XoObject
Overrides:
equalsXoObject in class XoObjectSupport
Parameters:
xo - an XoTextContainer to compare to this
Returns:
true if both name spaces and local names are equals.

clone

protected java.lang.Object clone(XoTextContainerSupport src)
Effective copy method of this object. Useful for derived objects of this.

Parameters:
src - a source instance of XO Text to configure
Returns:
a new instance of this XO Text

isCdataSection

public boolean isCdataSection()
Description copied from interface: XoTextContainer
Indicates whether this node is a CDATA Section.

Specified by:
isCdataSection in interface XoTextContainer
Returns:
boolean to tell whether or not this node is a CDATA section.
See Also:
XoTextContainer.isCdataSection()

setCdataSection

public void setCdataSection(boolean iscdata)
                     throws java.beans.PropertyVetoException
Description copied from interface: XoTextContainer
Sets this node as a CDATA Section or not.

Specified by:
setCdataSection in interface XoTextContainer
Parameters:
iscdata - boolean to tell whether or not this node is a CDATA section.
Throws:
java.beans.PropertyVetoException
See Also:
XoTextContainer.setCdataSection(boolean)