com.virtualweaver.xotics.datamodel
Interface XoText

All Superinterfaces:
java.lang.Cloneable, XoNode, XoObject
All Known Implementing Classes:
XoTextSupport

public interface XoText
extends XoObject

Interface implemented by an XO object representing an XML text node. Classes implementing this interface must implement XoObject exactly the same way as any other XO object. This object is used to reflect Mixed content-models and to hold CDATA sections.

Version:
4.1

Method Summary
 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 text)
          Sets the text content.
 
Methods inherited from interface com.virtualweaver.xotics.datamodel.XoObject
addPropertyChangeListener, addVetoableChangeListener, checkXoValidity, clone, equalsXoObject, getLocale, getXmlLocalName, getXmlNameSpace, getXmlWhiteSpace, getXoDMInstance, getXoParent, isXoPropertyToWrite, removePropertyChangeListener, removeVetoableChangeListener, setIntegrated, setLocale, setXmlLocalName, setXmlNameSpace, setXmlWhiteSpace, setXoDMInstance, setXoParent
 

Method Detail

setXoTextContent

public void setXoTextContent(java.lang.String text)
                      throws java.beans.PropertyVetoException
Sets the text content. This method must be implemented as a constrained JavaBean property.

Parameters:
text - the text to hold
Throws:
java.beans.PropertyVetoException

getXoTextContent

public java.lang.String getXoTextContent()
Returns the text contained in this

Returns:
the text content

isCdataSection

public boolean isCdataSection()
Indicates whether this node is a CDATA Section.

Returns:
boolean to tell whether or not this node is a CDATA section.

setCdataSection

public void setCdataSection(boolean iscdata)
                     throws java.beans.PropertyVetoException
Sets this node as a CDATA Section or not.

Parameters:
iscdata - boolean to tell whether or not this node is a CDATA section.
Throws:
java.beans.PropertyVetoException