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:
getNodeNamein interfaceNode- Overrides:
getNodeNamein classKNode
-
getImplementation
public DOMImplementation getImplementation()
- Specified by:
getImplementationin interfaceDocument
-
getDoctype
public DocumentType getDoctype()
- Specified by:
getDoctypein interfaceDocument
-
getParentNode
public Node getParentNode()
- Specified by:
getParentNodein interfaceNode- Overrides:
getParentNodein classKNode
-
getDocumentElement
public KElement getDocumentElement()
- Specified by:
getDocumentElementin interfaceDocument
-
getNodeType
public short getNodeType()
- Specified by:
getNodeTypein interfaceNode- Specified by:
getNodeTypein classKNode
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValuein interfaceNode- Overrides:
getNodeValuein classKNode
-
getTextContent
public String getTextContent()
- Specified by:
getTextContentin interfaceNode- Overrides:
getTextContentin classKNode
-
getTextContent
protected void getTextContent(StringBuffer sbuf)
- Overrides:
getTextContentin classKNode
-
createElement
public Element createElement(String tagName)
Not implemented.- Specified by:
createElementin interfaceDocument
-
createDocumentFragment
public DocumentFragment createDocumentFragment()
Not implemented.- Specified by:
createDocumentFragmentin interfaceDocument
-
createTextNode
public Text createTextNode(String data)
Not implemented.- Specified by:
createTextNodein interfaceDocument
-
createComment
public Comment createComment(String data)
Not implemented.- Specified by:
createCommentin interfaceDocument
-
createCDATASection
public CDATASection createCDATASection(String data)
Not implemented.- Specified by:
createCDATASectionin interfaceDocument
-
createProcessingInstruction
public ProcessingInstruction createProcessingInstruction(String target, String data)
Not implemented.- Specified by:
createProcessingInstructionin interfaceDocument
-
createAttribute
public Attr createAttribute(String name)
Not implemented.- Specified by:
createAttributein interfaceDocument
-
createEntityReference
public EntityReference createEntityReference(String name)
Not implemented.- Specified by:
createEntityReferencein interfaceDocument
-
importNode
public Node importNode(Node importedNode, boolean deep)
Not implemented.- Specified by:
importNodein interfaceDocument
-
createElementNS
public Element createElementNS(String namespaceURI, String qualifiedName)
Not implemented.- Specified by:
createElementNSin interfaceDocument
-
createAttributeNS
public Attr createAttributeNS(String namespaceURI, String qualifiedName)
Not implemented.- Specified by:
createAttributeNSin interfaceDocument
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
Not implemented yet.- Specified by:
getElementsByTagNameNSin interfaceDocument
-
getElementById
public Element getElementById(String elementId)
- Specified by:
getElementByIdin interfaceDocument
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributesin interfaceNode- Overrides:
hasAttributesin classKNode
-
getInputEncoding
public String getInputEncoding()
- Specified by:
getInputEncodingin interfaceDocument
-
getXmlEncoding
public String getXmlEncoding()
- Specified by:
getXmlEncodingin interfaceDocument
-
getXmlStandalone
public boolean getXmlStandalone()
- Specified by:
getXmlStandalonein interfaceDocument
-
setXmlStandalone
public void setXmlStandalone(boolean xmlStandalone)
- Specified by:
setXmlStandalonein interfaceDocument
-
getXmlVersion
public String getXmlVersion()
- Specified by:
getXmlVersionin interfaceDocument
-
setXmlVersion
public void setXmlVersion(String xmlVersion)
- Specified by:
setXmlVersionin interfaceDocument
-
getStrictErrorChecking
public boolean getStrictErrorChecking()
- Specified by:
getStrictErrorCheckingin interfaceDocument
-
setStrictErrorChecking
public void setStrictErrorChecking(boolean strictErrorChecking)
- Specified by:
setStrictErrorCheckingin interfaceDocument
-
getDocumentURI
public String getDocumentURI()
- Specified by:
getDocumentURIin interfaceDocument
-
setDocumentURI
public void setDocumentURI(String documentURI)
- Specified by:
setDocumentURIin interfaceDocument
-
renameNode
public Node renameNode(Node n, String namespaceURI, String qualifiedname) throws DOMException
- Specified by:
renameNodein interfaceDocument- Throws:
DOMException
-
adoptNode
public Node adoptNode(Node source) throws DOMException
- Specified by:
adoptNodein interfaceDocument- Throws:
DOMException
-
normalizeDocument
public void normalizeDocument()
- Specified by:
normalizeDocumentin interfaceDocument
-
getDomConfig
public DOMConfiguration getDomConfig()
- Specified by:
getDomConfigin interfaceDocument
-
-