|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
oracle.xml.classgen.CGNode
Serves as the base class for nodes generated by the DTD compiler
Field Summary | |
protected boolean |
isValidating |
Constructor Summary | |
protected |
CGNode(java.lang.String elementName) Constructor for the Elements of the DOM Tree |
Method Summary | |
protected void |
addCDATASection(java.lang.String theData) Adds CDATA Section to the Element |
protected void |
addData(java.lang.String theData) Adds PCDATA to the XMLElement theElement |
protected void |
addNode(CGNode theNode) Adds a node as a child to the element |
protected void |
deleteData(java.lang.String theData) Deletes PCDATA from the XMLElement theElement |
protected java.lang.String |
getAttribute(java.lang.String attName) Gets the value of the Attribute |
protected CGDocument |
getCGDocument() Gets the base document (root Element) |
protected java.lang.String |
getData() Gets the PCDATA of the Element |
protected abstract DTD |
getDTDNode() Gets the static DTD from the base document |
protected XMLElement |
getElementNode() Get the XMLElement node corresponding to this CGNode. |
protected java.lang.Object |
getNode(java.lang.String theNode) Gets the CGNode which is one of the children of the element 'theElemnt' corresponding to this node whose name matches the input string. |
protected void |
readExternal(oracle.xml.io.XMLObjectInput in, oracle.xml.comp.CXMLContext cxmlContext) Reads the compressed stream and instantiate the corresponding node |
protected void |
setAttribute(java.lang.String attName, java.lang.String value) Sets the value of the Attribute |
void |
setDocument(CGDocument d) Sets the base document (root Element) |
protected void |
setElementNode(XMLElement node) Set the XMLElement node corresponding to this CGNode. |
protected void |
storeID(java.lang.String attName, java.lang.String id) Store this value for an ID identifier, so that we can later verify IDREF values |
protected void |
storeIDREF(java.lang.String attName, java.lang.String idref) Store this value for an IDREF identifier, so that we can later verify, if an corresponding ID was defined. |
protected void |
validateContent() Checks if the content of the element is valid as per the Content Model specified in DTD |
protected boolean |
validEntity(java.lang.String entity) Checks if the ENTITY identifier is valid |
protected boolean |
validID(java.lang.String name) Checks if the ID identifier is valid |
protected boolean |
validNMTOKEN(java.lang.String name) Checks if the NMTOKEN identifier is valid |
protected void |
writeExternal(oracle.xml.io.XMLObjectOutput out, oracle.xml.comp.CXMLContext cxmlContext) Writes the compressed stream corresponding to this node. |
Field Detail |
protected boolean isValidating
Constructor Detail |
protected CGNode(java.lang.String elementName)
elementName
- Name of the elementMethod Detail |
protected void setElementNode(XMLElement node)
node
- The XMLElementprotected XMLElement getElementNode()
protected void addData(java.lang.String theData) throws InvalidContentException
theData
- Text to be added to the elementtheData
has illegal characters (validation must be set to TRUE)DTDClassGenerator.setValidationMode(boolean)
protected void deleteData(java.lang.String theData) throws InvalidContentException
theData
- Text to be deleted from an elementprotected java.lang.String getData() throws InvalidContentException
protected void addCDATASection(java.lang.String theData) throws InvalidContentException
theData
- Text to be added as CDATA Section to the elementtheData
has illegal characters (validation must be set to TRUE)DTDClassGenerator.setValidationMode(boolean)
protected void addNode(CGNode theNode) throws InvalidContentException
theNode
- The node to be added as childDTDClassGenerator.setValidationMode(boolean)
protected java.lang.Object getNode(java.lang.String theNode) throws InvalidContentException
theNode
- The name of the string corresponding to which the CGNode is returnedpublic void setDocument(CGDocument d)
d
- Base CGDocumentprotected CGDocument getCGDocument()
protected abstract DTD getDTDNode()
protected void setAttribute(java.lang.String attName, java.lang.String value)
attName
- Name of the attributevalue
- Value of the attributeprotected java.lang.String getAttribute(java.lang.String attName)
attName
- Name of the attributeprotected void storeID(java.lang.String attName, java.lang.String id)
attName
- Name of the ID Attributeid
- Value of the IDprotected void storeIDREF(java.lang.String attName, java.lang.String idref)
attName
- Name of the IDREF Attributeidref
- Value of the IDREFprotected boolean validID(java.lang.String name)
name
- value of the ID Attributeprotected boolean validEntity(java.lang.String entity)
name
- value of the Entity Attributeprotected boolean validNMTOKEN(java.lang.String name)
name
- value of the Nmtoken Attributeprotected void validateContent() throws InvalidContentException
protected void writeExternal(oracle.xml.io.XMLObjectOutput out, oracle.xml.comp.CXMLContext cxmlContext) throws java.io.IOException
out
- ObjectOutput stream to write the compressed datacxmlContext
- The context of the compressed streamprotected void readExternal(oracle.xml.io.XMLObjectInput in, oracle.xml.comp.CXMLContext cxmlContext) throws java.io.IOException, java.lang.ClassNotFoundException
in
- The ObjectInput stream that is used to read the compressed stream.cxmlContext
- The context of the compresses stream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2004, Oracle. All rights reserved.