org.enhydra.xml.xmlc.dom.generic
Class GenericLinkedDocument
java.lang.Object
|
+--org.enhydra.xml.xmlc.dom.generic.GenericLinkedDocument
- All Implemented Interfaces:
- org.w3c.dom.Document, org.w3c.dom.Node, XMLObjectLink
- Direct Known Subclasses:
- GenericLinkedHTMLDocument
- public class GenericLinkedDocument
- extends java.lang.Object
- implements org.w3c.dom.Document, XMLObjectLink
This is a generic wrapper around Document
that adds XMLObjectLink
functionality.
Field Summary |
protected org.w3c.dom.Document |
DELEGATE
Delegate document |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DELEGATE
protected final org.w3c.dom.Document DELEGATE
- Delegate document
GenericLinkedDocument
public GenericLinkedDocument(org.w3c.dom.Document inner)
- Constructor.
- Parameters:
inner
- the document to be wrapped.
setXMLObject
public void setXMLObject(XMLObject xmlObject)
- Description copied from interface:
XMLObjectLink
- Set the XMLC XMLObject that contains this document.
- Specified by:
setXMLObject
in interface XMLObjectLink
- See Also:
XMLObjectLink.setXMLObject(org.enhydra.xml.xmlc.XMLObject)
getXMLObject
public XMLObject getXMLObject()
- Description copied from interface:
XMLObjectLink
- Get the XMLC XMLObject that contains this document, or null
it it's not associated with a XMLObject.
- Specified by:
getXMLObject
in interface XMLObjectLink
- See Also:
XMLObjectLink.getXMLObject()
cloneNode
public org.w3c.dom.Node cloneNode(boolean deep)
- Specified by:
cloneNode
in interface org.w3c.dom.Node
- See Also:
Node.cloneNode(boolean)
getDoctype
public org.w3c.dom.DocumentType getDoctype()
- Specified by:
getDoctype
in interface org.w3c.dom.Document
getImplementation
public org.w3c.dom.DOMImplementation getImplementation()
- Specified by:
getImplementation
in interface org.w3c.dom.Document
getDocumentElement
public org.w3c.dom.Element getDocumentElement()
- Specified by:
getDocumentElement
in interface org.w3c.dom.Document
createElement
public org.w3c.dom.Element createElement(java.lang.String tagName)
throws org.w3c.dom.DOMException
- Specified by:
createElement
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createDocumentFragment
public org.w3c.dom.DocumentFragment createDocumentFragment()
- Specified by:
createDocumentFragment
in interface org.w3c.dom.Document
createTextNode
public org.w3c.dom.Text createTextNode(java.lang.String data)
- Specified by:
createTextNode
in interface org.w3c.dom.Document
createComment
public org.w3c.dom.Comment createComment(java.lang.String data)
- Specified by:
createComment
in interface org.w3c.dom.Document
createCDATASection
public org.w3c.dom.CDATASection createCDATASection(java.lang.String data)
throws org.w3c.dom.DOMException
- Specified by:
createCDATASection
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createProcessingInstruction
public org.w3c.dom.ProcessingInstruction createProcessingInstruction(java.lang.String target,
java.lang.String data)
throws org.w3c.dom.DOMException
- Specified by:
createProcessingInstruction
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createAttribute
public org.w3c.dom.Attr createAttribute(java.lang.String name)
throws org.w3c.dom.DOMException
- Specified by:
createAttribute
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createEntityReference
public org.w3c.dom.EntityReference createEntityReference(java.lang.String name)
throws org.w3c.dom.DOMException
- Specified by:
createEntityReference
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
getElementsByTagName
public org.w3c.dom.NodeList getElementsByTagName(java.lang.String tagname)
- Specified by:
getElementsByTagName
in interface org.w3c.dom.Document
importNode
public org.w3c.dom.Node importNode(org.w3c.dom.Node importedNode,
boolean deep)
throws org.w3c.dom.DOMException
- Specified by:
importNode
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createElementNS
public org.w3c.dom.Element createElementNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- Specified by:
createElementNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
createAttributeNS
public org.w3c.dom.Attr createAttributeNS(java.lang.String namespaceURI,
java.lang.String qualifiedName)
throws org.w3c.dom.DOMException
- Specified by:
createAttributeNS
in interface org.w3c.dom.Document
org.w3c.dom.DOMException
getElementsByTagNameNS
public org.w3c.dom.NodeList getElementsByTagNameNS(java.lang.String namespaceURI,
java.lang.String localName)
- Specified by:
getElementsByTagNameNS
in interface org.w3c.dom.Document
getElementById
public org.w3c.dom.Element getElementById(java.lang.String elementId)
- Specified by:
getElementById
in interface org.w3c.dom.Document
getNodeName
public java.lang.String getNodeName()
- Specified by:
getNodeName
in interface org.w3c.dom.Node
getNodeValue
public java.lang.String getNodeValue()
throws org.w3c.dom.DOMException
- Specified by:
getNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
setNodeValue
public void setNodeValue(java.lang.String nodeValue)
throws org.w3c.dom.DOMException
- Specified by:
setNodeValue
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interface org.w3c.dom.Node
getParentNode
public org.w3c.dom.Node getParentNode()
- Specified by:
getParentNode
in interface org.w3c.dom.Node
getChildNodes
public org.w3c.dom.NodeList getChildNodes()
- Specified by:
getChildNodes
in interface org.w3c.dom.Node
getFirstChild
public org.w3c.dom.Node getFirstChild()
- Specified by:
getFirstChild
in interface org.w3c.dom.Node
getLastChild
public org.w3c.dom.Node getLastChild()
- Specified by:
getLastChild
in interface org.w3c.dom.Node
getPreviousSibling
public org.w3c.dom.Node getPreviousSibling()
- Specified by:
getPreviousSibling
in interface org.w3c.dom.Node
getNextSibling
public org.w3c.dom.Node getNextSibling()
- Specified by:
getNextSibling
in interface org.w3c.dom.Node
getAttributes
public org.w3c.dom.NamedNodeMap getAttributes()
- Specified by:
getAttributes
in interface org.w3c.dom.Node
getOwnerDocument
public org.w3c.dom.Document getOwnerDocument()
- Specified by:
getOwnerDocument
in interface org.w3c.dom.Node
insertBefore
public org.w3c.dom.Node insertBefore(org.w3c.dom.Node newChild,
org.w3c.dom.Node refChild)
throws org.w3c.dom.DOMException
- Specified by:
insertBefore
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
replaceChild
public org.w3c.dom.Node replaceChild(org.w3c.dom.Node newChild,
org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- Specified by:
replaceChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
removeChild
public org.w3c.dom.Node removeChild(org.w3c.dom.Node oldChild)
throws org.w3c.dom.DOMException
- Specified by:
removeChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
appendChild
public org.w3c.dom.Node appendChild(org.w3c.dom.Node newChild)
throws org.w3c.dom.DOMException
- Specified by:
appendChild
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
hasChildNodes
public boolean hasChildNodes()
- Specified by:
hasChildNodes
in interface org.w3c.dom.Node
normalize
public void normalize()
- Specified by:
normalize
in interface org.w3c.dom.Node
isSupported
public boolean isSupported(java.lang.String feature,
java.lang.String version)
- Specified by:
isSupported
in interface org.w3c.dom.Node
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI
in interface org.w3c.dom.Node
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix
in interface org.w3c.dom.Node
setPrefix
public void setPrefix(java.lang.String prefix)
throws org.w3c.dom.DOMException
- Specified by:
setPrefix
in interface org.w3c.dom.Node
org.w3c.dom.DOMException
getLocalName
public java.lang.String getLocalName()
- Specified by:
getLocalName
in interface org.w3c.dom.Node
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interface org.w3c.dom.Node
getEncoding
public java.lang.String getEncoding()
setEncoding
public void setEncoding(java.lang.String encoding)
getStandalone
public boolean getStandalone()
setStandalone
public void setStandalone(boolean standalone)
getStrictErrorChecking
public boolean getStrictErrorChecking()
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
getVersion
public java.lang.String getVersion()
setVersion
public void setVersion(java.lang.String version)
adoptNode
public org.w3c.dom.Node adoptNode(org.w3c.dom.Node source)
throws org.w3c.dom.DOMException
org.w3c.dom.DOMException
Copyright © 1999-2002 enhydra.org (Mark Diekhans, David Li, Richard Kunze). All Rights reserved.