All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class oracle.xml.classgen.CGNode

java.lang.Object
   |
   +----oracle.xml.classgen.CGNode

public abstract class CGNode
extends Object
Serves as the base class for nodes generated by the XML Class Generator


Variable Index

 o isValidating
Boolean to indicate the validating mode

Constructor Index

 o CGNode(String)
Constructor for the Elements of the DOM Tree

Method Index

 o addData(String)
Adds PCDATA to the Element
 o addNode(CGNode)
Adds a node as a child to the element
 o getCGDocument()
Gets the base document (root Element)
 o getDTDNode()
Gets the static DTD from the base document
 o setAttribute(String, String)
Sets the value of the Attribute
 o setDocument(CGDocument)
Sets the base document (root Element)
 o storeID(String, String)
Store this value for an ID identifier, so that we can later verify IDREF values
 o storeIDREF(String, String)
Store this value for an IDREF identifier, so that we can later verify, if an corresponding ID was defined.
 o validateContent()
Checks if the content of the element is valid as per the Content Model specified in DTD
 o validEntity(String)
Checks if the ENTITY identifier is valid
 o validID(String)
Checks if the ID identifier is valid
 o validNMTOKEN(String)
Checks if the NMTOKEN identifier is valid

Variables

 o isValidating
 protected boolean isValidating
Boolean to indicate the validating mode

Constructors

 o CGNode
 protected CGNode(String elementName)
Constructor for the Elements of the DOM Tree

Parameters:
elementName - Name of the element

Methods

 o addData
 protected void addData(String theData) throws InvalidContentException
Adds PCDATA to the Element

Parameters:
theData - Text to be added to the element
Throws: InvalidContentException
Thrown if theData has illegal characters (validation must be set to TRUE)
See Also:
setValidationMode
 o addNode
 protected void addNode(CGNode theNode) throws InvalidContentException
Adds a node as a child to the element

Parameters:
theNode - The node to be added as child
Throws: InvalidContentException
Thrown if the Node cannot be added as child as per Content Model of the element (validation must be set to TRUE)
See Also:
setValidationMode
 o setDocument
 public void setDocument(CGDocument d)
Sets the base document (root Element)

Parameters:
d - Base CGDocument
 o getCGDocument
 protected CGDocument getCGDocument()
Gets the base document (root Element)

Returns:
The base CGDocument
 o getDTDNode
 protected abstract DTD getDTDNode()
Gets the static DTD from the base document

Returns:
DTD stored in base CGDocument
 o setAttribute
 protected void setAttribute(String attName,
                             String value)
Sets the value of the Attribute

Parameters:
attName - Name of the attribute
value - Value of the attribute
 o storeID
 protected void storeID(String attName,
                        String id)
Store this value for an ID identifier, so that we can later verify IDREF values

Parameters:
attName - Name of the ID Attribute
id - Value of the ID
 o storeIDREF
 protected void storeIDREF(String attName,
                           String idref)
Store this value for an IDREF identifier, so that we can later verify, if an corresponding ID was defined.

Parameters:
attName - Name of the IDREF Attribute
idref - Value of the IDREF
 o validID
 protected boolean validID(String name)
Checks if the ID identifier is valid

Parameters:
name - value of the ID Attribute
Returns:
True if ID is valid, else false
 o validEntity
 protected boolean validEntity(String entity)
Checks if the ENTITY identifier is valid

Parameters:
name - value of the Entity Attribute
Returns:
True if Entity is valid, else false
 o validNMTOKEN
 protected boolean validNMTOKEN(String name)
Checks if the NMTOKEN identifier is valid

Parameters:
name - value of the Nmtoken Attribute
Returns:
True if Nmtoken is valid, else false
 o validateContent
 protected boolean validateContent()
Checks if the content of the element is valid as per the Content Model specified in DTD

Returns:
True if content is valid, else false

All Packages  Class Hierarchy  This Package  Previous  Next  Index