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
-
isValidating
- Boolean to indicate the validating mode
-
CGNode(String)
-
Constructor for the Elements of the DOM Tree
-
addData(String)
- Adds PCDATA to the Element
-
addNode(CGNode)
- Adds a node as a child to the element
-
getCGDocument()
- Gets the base document (root Element)
-
getDTDNode()
- Gets the static DTD from the base document
-
setAttribute(String,
String)
- Sets the value of the Attribute
-
setDocument(CGDocument)
- Sets the base document (root Element)
-
storeID(String,
String)
- Store this value for an ID identifier, so that we can later
verify IDREF values
-
storeIDREF(String,
String)
- Store this value for an IDREF identifier, so that we can later
verify, if an corresponding ID was defined.
-
validateContent()
- Checks if the content of the element is valid as per the Content Model
specified in DTD
-
validEntity(String)
- Checks if the ENTITY identifier is valid
-
validID(String)
- Checks if the ID identifier is valid
-
validNMTOKEN(String)
- Checks if the NMTOKEN identifier is valid
isValidating
protected boolean isValidating
- Boolean to indicate the validating mode
CGNode
protected CGNode(String elementName)
- Constructor for the Elements of the DOM Tree
- Parameters:
- elementName - Name of the element
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
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
setDocument
public void setDocument(CGDocument d)
- Sets the base document (root Element)
- Parameters:
- d - Base CGDocument
getCGDocument
protected CGDocument getCGDocument()
- Gets the base document (root Element)
- Returns:
- The base CGDocument
getDTDNode
protected abstract DTD getDTDNode()
- Gets the static DTD from the base document
- Returns:
- DTD stored in base CGDocument
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
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
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
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
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
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
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