com.virtualweaver.xotics.datamodel
Class XoTextSupport

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

public class XoTextSupport
extends XoObjectSupport
implements XoText

This is a default XoText implementation developpers can use to increase productivity when an XoText implementation has no requirement to derive from any specific Java object.

Version:
4.1

Field Summary
 
Fields inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport
propertyChangeSupport, vetoableChangeSupport
 
Constructor Summary
XoTextSupport()
          Empty param constructor, as required in JavaBeans specs.
 
Method Summary
 java.lang.Object clone()
          Updated from super.clone() to clone this Text object
protected  java.lang.Object clone(XoTextSupport src)
          Effective copy method of this object.
 boolean equalsXoObject(XoObject xo)
          Checks whether or not this could be equal to xo.
 java.lang.String getXoTextContent()
          Returns the text contained in this
 boolean isCdataSection()
          Indicates whether this node is a CDATA Section.
 void setCdataSection(boolean iscdata)
          Sets this node as a CDATA Section or not.
 void setXoTextContent(java.lang.String xoTextContent)
          Sets the text content.
 
Methods inherited from class com.virtualweaver.xotics.datamodel.XoObjectSupport
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, 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, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent
 

Constructor Detail

XoTextSupport

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

Method Detail

clone

public java.lang.Object clone()
Updated from super.clone() to clone this Text object

Specified by:
clone in interface XoObject
Overrides:
clone in class XoObjectSupport
Returns:
a new instance of this XO Text node

equalsXoObject

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

Specified by:
equalsXoObject in interface XoObject
Overrides:
equalsXoObject in class XoObjectSupport
Parameters:
xo - an XoText to compare to this
Returns:
true if both name space and text content are equals.

clone

protected java.lang.Object clone(XoTextSupport 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

getXoTextContent

public java.lang.String getXoTextContent()
Description copied from interface: XoText
Returns the text contained in this

Specified by:
getXoTextContent in interface XoText
Returns:
the text content
See Also:
XoText.getXoTextContent()

setXoTextContent

public void setXoTextContent(java.lang.String xoTextContent)
                      throws java.beans.PropertyVetoException
Description copied from interface: XoText
Sets the text content. This method must be implemented as a constrained JavaBean property.

Specified by:
setXoTextContent in interface XoText
Parameters:
xoTextContent - the text to hold
Throws:
java.beans.PropertyVetoException
See Also:
XoText.setXoTextContent(java.lang.String)

isCdataSection

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

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

setCdataSection

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

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