Package gnu.kawa.xml
Class KDocument
- java.lang.Object
-
- gnu.lists.SeqPosition<Object,NodeTree>
-
- gnu.kawa.xml.KNode
-
- gnu.kawa.xml.KDocument
-
- All Implemented Interfaces:
Consumable
,Enumeration<Object>
,Iterator<Object>
,ListIterator<Object>
,Document
,Node
public class KDocument extends KNode implements Document
-
-
Field Summary
-
Fields inherited from class gnu.lists.SeqPosition
ipos, sequence
-
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_POSITION_CONTAINED_BY, DOCUMENT_POSITION_CONTAINS, DOCUMENT_POSITION_DISCONNECTED, DOCUMENT_POSITION_FOLLOWING, DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC, DOCUMENT_POSITION_PRECEDING, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
-
-
Method Summary
-
Methods inherited from class gnu.kawa.xml.KNode
appendChild, atomicValue, baseURI, cloneNode, coerce, compareDocumentPosition, consume, copy, getAttributes, getBaseURI, getChildNodes, getElementsByTagName, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeNameObject, getNodeSymbol, getNodeValue, getNodeValue, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, make, make, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData, toString
-
Methods inherited from class gnu.lists.SeqPosition
add, finalize, fromEndIndex, getContainingSequenceSize, getNext, getNextKind, getNextTypeName, getNextTypeObject, getPos, getPrevious, gotoChildrenStart, gotoEnd, gotoNext, gotoPrevious, gotoStart, hasMoreElements, hasNext, hasPrevious, isAfter, make, next, nextElement, nextIndex, previous, previousIndex, release, remove, set, set, set, setNext, setPos, setPos, setPrevious, toInfo
-
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.w3c.dom.Document
getElementsByTagName
-
Methods inherited from interface java.util.Enumeration
asIterator
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getPrefix, getPreviousSibling, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
KDocument
public KDocument(NodeTree seq, int ipos)
-
-
Method Detail
-
getNodeName
public String getNodeName()
- Specified by:
getNodeName
in interfaceNode
- Overrides:
getNodeName
in classKNode
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementation
in interfaceDocument
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctype
in interfaceDocument
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNode
in interfaceNode
- Overrides:
getParentNode
in classKNode
-
getDocumentElement
public KElement getDocumentElement()
- Specified by:
getDocumentElement
in interfaceDocument
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceNode
- Specified by:
getNodeType
in classKNode
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classKNode
-
getTextContent
public String getTextContent()
- Specified by:
getTextContent
in interfaceNode
- Overrides:
getTextContent
in classKNode
-
getTextContent
protected void getTextContent(StringBuffer sbuf)
- Overrides:
getTextContent
in classKNode
-
createElement
public Element createElement(String tagName)
Not implemented.- Specified by:
createElement
in interfaceDocument
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
Not implemented.- Specified by:
createDocumentFragment
in interfaceDocument
-
createTextNode
public Text createTextNode(String data)
Not implemented.- Specified by:
createTextNode
in interfaceDocument
-
createComment
public Comment createComment(String data)
Not implemented.- Specified by:
createComment
in interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data)
Not implemented.- Specified by:
createCDATASection
in interfaceDocument
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data)
Not implemented.- Specified by:
createProcessingInstruction
in interfaceDocument
-
createAttribute
public Attr createAttribute(String name)
Not implemented.- Specified by:
createAttribute
in interfaceDocument
-
createEntityReference
public EntityReference createEntityReference(String name)
Not implemented.- Specified by:
createEntityReference
in interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep)
Not implemented.- Specified by:
importNode
in interfaceDocument
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName)
Not implemented.- Specified by:
createElementNS
in interfaceDocument
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName)
Not implemented.- Specified by:
createAttributeNS
in interfaceDocument
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
Not implemented yet.- Specified by:
getElementsByTagNameNS
in interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementById
in interfaceDocument
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
- Overrides:
hasAttributes
in classKNode
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncoding
in interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
- Specified by:
getXmlEncoding
in interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalone
in interfaceDocument
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone)
- Specified by:
setXmlStandalone
in interfaceDocument
-
getXmlVersion
public String getXmlVersion()
- Specified by:
getXmlVersion
in interfaceDocument
-
setXmlVersion
public void setXmlVersion(String xmlVersion)
- Specified by:
setXmlVersion
in interfaceDocument
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorChecking
in interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorChecking
in interfaceDocument
-
getDocumentURI
public String getDocumentURI()
- Specified by:
getDocumentURI
in interfaceDocument
-
setDocumentURI
public void setDocumentURI(String documentURI)
- Specified by:
setDocumentURI
in interfaceDocument
-
renameNode
public Node renameNode(Node n, String namespaceURI, String qualifiedname) throws DOMException
- Specified by:
renameNode
in interfaceDocument
- Throws:
DOMException
-
adoptNode
public Node adoptNode(Node source) throws DOMException
- Specified by:
adoptNode
in interfaceDocument
- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocument
in interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
- Specified by:
getDomConfig
in interfaceDocument
-
-