|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.xml.xmlc.XMLObjectImpl
Base class for all compiled XML objects.
XMLObject
Field Summary |
Fields inherited from interface org.enhydra.xml.xmlc.XMLObject |
XMLC_GENERATED_CLASS_FIELD_NAME, XMLC_SOURCE_FILE_FIELD_NAME |
Fields inherited from interface org.w3c.dom.Node |
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE |
Constructor Summary | |
protected |
XMLObjectImpl()
Constructor. |
Method Summary | |
org.w3c.dom.Node |
adoptNode(org.w3c.dom.Node source)
|
org.w3c.dom.Node |
appendChild(org.w3c.dom.Node newChild)
|
protected void |
cloneDeepCheck(boolean deep)
Check that cloneNode on an entire document is done with the deep option. |
abstract org.w3c.dom.Node |
cloneNode(boolean deep)
Clone the entire document. |
org.w3c.dom.Attr |
createAttribute(java.lang.String qualifiedName)
|
org.w3c.dom.Attr |
createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.CDATASection |
createCDATASection(java.lang.String data)
|
org.w3c.dom.Comment |
createComment(java.lang.String data)
|
org.w3c.dom.DocumentFragment |
createDocumentFragment()
|
org.w3c.dom.Element |
createElement(java.lang.String tagName)
|
org.w3c.dom.Element |
createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
|
org.w3c.dom.EntityReference |
createEntityReference(java.lang.String name)
|
org.w3c.dom.ProcessingInstruction |
createProcessingInstruction(java.lang.String target,
java.lang.String data)
|
org.w3c.dom.Text |
createTextNode(java.lang.String data)
|
protected void |
doSetText(org.w3c.dom.Element element,
java.lang.String text)
Used internally to implement a setTextXXX() method. |
org.w3c.dom.NamedNodeMap |
getAttributes()
|
org.w3c.dom.NodeList |
getChildNodes()
|
XMLObject |
getDelegate()
Get the delegate. |
org.w3c.dom.DocumentType |
getDoctype()
|
org.w3c.dom.Document |
getDocument()
Get the actual document object. |
org.w3c.dom.Element |
getDocumentElement()
|
protected abstract XMLCDomFactory |
getDomFactory()
Get the XMLC DOM Factory associated with this document type and DOM implementation. |
org.w3c.dom.Element |
getElementById(java.lang.String elementId)
|
org.w3c.dom.NodeList |
getElementsByTagName(java.lang.String tagname)
|
org.w3c.dom.NodeList |
getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
|
java.lang.String |
getEncoding()
Get the encoding specified in the document. |
org.w3c.dom.Node |
getFirstChild()
|
org.w3c.dom.DOMImplementation |
getImplementation()
|
org.w3c.dom.Node |
getLastChild()
|
java.lang.String |
getLocalName()
|
java.lang.String |
getMIMEType()
Get the MIME type associated with the document, or null if none was associated. |
java.lang.String |
getNamespaceURI()
|
org.w3c.dom.Node |
getNextSibling()
|
java.lang.String |
getNodeName()
|
short |
getNodeType()
|
java.lang.String |
getNodeValue()
|
org.w3c.dom.Document |
getOwnerDocument()
|
org.w3c.dom.Node |
getParentNode()
|
java.lang.String |
getPrefix()
|
org.w3c.dom.Node |
getPreviousSibling()
|
boolean |
getStandalone()
|
boolean |
getStrictErrorChecking()
|
java.lang.String |
getVersion()
|
boolean |
hasAttributes()
|
boolean |
hasChildNodes()
|
org.w3c.dom.Node |
importNode(org.w3c.dom.Node importedNode,
boolean deep)
|
void |
initFields()
Deprecated. Use syncAccessMethods() instead. |
org.w3c.dom.Node |
insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
|
boolean |
isSupported(java.lang.String feature,
java.lang.String version)
|
boolean |
isURLAttribute(org.w3c.dom.Element element,
java.lang.String attrName)
Determine if an attribute of an element can contain a URL. |
void |
normalize()
|
org.w3c.dom.Node |
removeChild(org.w3c.dom.Node oldChild)
|
org.w3c.dom.Node |
replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
|
void |
setDelegate(XMLObject delegate)
Set the delegate object. |
protected void |
setDocument(org.w3c.dom.Document document,
java.lang.String mimeType,
java.lang.String encoding)
Set the DOM document associated with this object and optional encoding. |
void |
setEncoding(java.lang.String encoding)
|
void |
setNodeValue(java.lang.String nodeValue)
|
void |
setPrefix(java.lang.String prefix)
|
void |
setStandalone(boolean standalone)
|
void |
setStrictErrorChecking(boolean strictErrorChecking)
|
void |
setVersion(java.lang.String version)
|
void |
syncAccessMethods()
Initialize the fields used by the generated access methods from the current state of the document. |
protected abstract void |
syncWithDocument(org.w3c.dom.Node node)
Generated function to synchronize the fields used by the access methods. |
java.lang.String |
toDocument()
Convert the document to a string representation of the document, that is a string containing XML. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.enhydra.xml.xmlc.XMLObject |
buildDocument |
Constructor Detail |
protected XMLObjectImpl()
Method Detail |
protected void setDocument(org.w3c.dom.Document document, java.lang.String mimeType, java.lang.String encoding)
protected abstract XMLCDomFactory getDomFactory()
public org.w3c.dom.Document getDocument()
XMLObject
getDocument
in interface XMLObject
XMLObject.getDocument()
public java.lang.String getMIMEType()
XMLObject
getMIMEType
in interface XMLObject
XMLObject.getMIMEType()
public void setDelegate(XMLObject delegate)
XMLObject
setDelegate
in interface XMLObject
delegate
- The delegate object, or null to remove delegation.
The delegate must implement the same interface as the derived, generate
object.XMLObject.setDelegate(org.enhydra.xml.xmlc.XMLObject)
public XMLObject getDelegate()
XMLObject
getDelegate
in interface XMLObject
XMLObject.getDelegate()
protected void cloneDeepCheck(boolean deep)
public abstract org.w3c.dom.Node cloneNode(boolean deep)
cloneNode
in interface org.w3c.dom.Node
Node.cloneNode(boolean)
public org.w3c.dom.DocumentType getDoctype()
getDoctype
in interface org.w3c.dom.Document
Document.getDoctype()
public org.w3c.dom.DOMImplementation getImplementation()
getImplementation
in interface org.w3c.dom.Document
Document.getImplementation()
public org.w3c.dom.Element getDocumentElement()
getDocumentElement
in interface org.w3c.dom.Document
Document.getDocumentElement()
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode, boolean deep) throws org.w3c.dom.DOMException
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.importNode(org.w3c.dom.Node, boolean)
public org.w3c.dom.Element createElement(java.lang.String tagName) throws org.w3c.dom.DOMException
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createElement(java.lang.String)
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createElementNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createElementNS(java.lang.String, java.lang.String)
public org.w3c.dom.DocumentFragment createDocumentFragment()
createDocumentFragment
in interface org.w3c.dom.Document
Document.createDocumentFragment()
public org.w3c.dom.Text createTextNode(java.lang.String data)
createTextNode
in interface org.w3c.dom.Document
Document.createTextNode(java.lang.String)
public org.w3c.dom.Comment createComment(java.lang.String data)
createComment
in interface org.w3c.dom.Document
Document.createComment(java.lang.String)
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data) throws org.w3c.dom.DOMException
createCDATASection
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createCDATASection(java.lang.String)
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target, java.lang.String data) throws org.w3c.dom.DOMException
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createProcessingInstruction(java.lang.String, java.lang.String)
public org.w3c.dom.Attr createAttribute(java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createAttribute(java.lang.String)
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI, java.lang.String qualifiedName) throws org.w3c.dom.DOMException
createAttributeNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createAttributeNS(java.lang.String, java.lang.String)
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name) throws org.w3c.dom.DOMException
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
Document.createEntityReference(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
getElementsByTagName
in interface org.w3c.dom.Document
Document.getElementsByTagName(java.lang.String)
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI, java.lang.String localName)
getElementsByTagNameNS
in interface org.w3c.dom.Document
Document.getElementsByTagNameNS(java.lang.String, java.lang.String)
public org.w3c.dom.Element getElementById(java.lang.String elementId)
getElementById
in interface org.w3c.dom.Document
Document.getElementById(java.lang.String)
public java.lang.String getEncoding()
XMLObject
getEncoding
in interface XMLObject
org.w3c.dom.Document#getEncoding
public void setEncoding(java.lang.String encoding)
setEncoding
in interface XMLObject
org.w3c.dom.Document#setEncoding
public boolean getStandalone()
getStandalone
in interface XMLObject
org.w3c.dom.Document#getStandalone
public void setStandalone(boolean standalone)
setStandalone
in interface XMLObject
org.w3c.dom.Document#setStandalone
public boolean getStrictErrorChecking()
getStrictErrorChecking
in interface XMLObject
org.w3c.dom.Document#getStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
setStrictErrorChecking
in interface XMLObject
org.w3c.dom.Document#setStrictErrorChecking
public java.lang.String getVersion()
getVersion
in interface XMLObject
org.w3c.dom.Document#getVersion()
public void setVersion(java.lang.String version)
setVersion
in interface XMLObject
org.w3c.dom.Document#setVersion
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source) throws org.w3c.dom.DOMException
adoptNode
in interface XMLObject
org.w3c.dom.DOMException
org.w3c.dom.Document#adoptNode
public java.lang.String getNodeName()
getNodeName
in interface org.w3c.dom.Node
Node.getNodeName()
public java.lang.String getNodeValue() throws org.w3c.dom.DOMException
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.getNodeValue()
public void setNodeValue(java.lang.String nodeValue) throws org.w3c.dom.DOMException
setNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.setNodeValue(java.lang.String)
public short getNodeType()
getNodeType
in interface org.w3c.dom.Node
Node.getNodeType()
public org.w3c.dom.Node getParentNode()
getParentNode
in interface org.w3c.dom.Node
Node.getParentNode()
public org.w3c.dom.NodeList getChildNodes()
getChildNodes
in interface org.w3c.dom.Node
Node.getChildNodes()
public org.w3c.dom.Node getFirstChild()
getFirstChild
in interface org.w3c.dom.Node
Node.getFirstChild()
public org.w3c.dom.Node getLastChild()
getLastChild
in interface org.w3c.dom.Node
Node.getLastChild()
public org.w3c.dom.Node getPreviousSibling()
getPreviousSibling
in interface org.w3c.dom.Node
Node.getPreviousSibling()
public org.w3c.dom.Node getNextSibling()
getNextSibling
in interface org.w3c.dom.Node
Node.getNextSibling()
public org.w3c.dom.NamedNodeMap getAttributes()
getAttributes
in interface org.w3c.dom.Node
Node.getAttributes()
public org.w3c.dom.Document getOwnerDocument()
getOwnerDocument
in interface org.w3c.dom.Node
Node.getOwnerDocument()
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild, org.w3c.dom.Node refChild) throws org.w3c.dom.DOMException
insertBefore
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.insertBefore(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild, org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
replaceChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.replaceChild(org.w3c.dom.Node, org.w3c.dom.Node)
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild) throws org.w3c.dom.DOMException
removeChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.removeChild(org.w3c.dom.Node)
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild) throws org.w3c.dom.DOMException
appendChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
Node.appendChild(org.w3c.dom.Node)
public void normalize()
normalize
in interface org.w3c.dom.Node
Node.normalize()
public boolean isSupported(java.lang.String feature, java.lang.String version)
isSupported
in interface org.w3c.dom.Node
Node.isSupported(String, String)
public java.lang.String getNamespaceURI()
getNamespaceURI
in interface org.w3c.dom.Node
Node.getNamespaceURI()
public java.lang.String getPrefix()
getPrefix
in interface org.w3c.dom.Node
Node.getPrefix()
public void setPrefix(java.lang.String prefix)
setPrefix
in interface org.w3c.dom.Node
Node.setPrefix(java.lang.String)
public java.lang.String getLocalName()
getLocalName
in interface org.w3c.dom.Node
Node.getLocalName()
public boolean hasChildNodes()
hasChildNodes
in interface org.w3c.dom.Node
Node.hasChildNodes()
public boolean hasAttributes()
hasAttributes
in interface org.w3c.dom.Node
Node.hasAttributes()
public java.lang.String toDocument()
XMLObject
DOMFormatter
class if
more options are required.
toDocument
in interface XMLObject
XMLObject.toDocument()
protected abstract void syncWithDocument(org.w3c.dom.Node node)
public void syncAccessMethods()
XMLObject
null
.
syncAccessMethods
in interface XMLObject
XMLObject.syncAccessMethods()
public void initFields()
syncAccessMethods()
instead.
syncAccessMethods
public boolean isURLAttribute(org.w3c.dom.Element element, java.lang.String attrName)
DocumentInfo
isURLAttribute
in interface DocumentInfo
DocumentInfo.isURLAttribute(org.w3c.dom.Element, java.lang.String)
protected final void doSetText(org.w3c.dom.Element element, java.lang.String text)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |