Package gnu.kawa.xml
Class KNode
- All Implemented Interfaces:
Consumable,Enumeration<Object>,Iterator<Object>,ListIterator<Object>,Node
- Direct Known Subclasses:
KAttr,KCharacterData,KDocument,KElement,KProcessingInstruction
-
Field Summary
Fields inherited from class gnu.lists.SeqPosition
ipos, sequenceFields 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 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendChild(Node newChild) Not implemented.static ObjectatomicValue(Object value) gnu.kawa.io.PathbaseURI()cloneNode(boolean deep) Only implemented if deep is true.static KNodeConvert value to a KNode, returning null if it isn't a node.shortcompareDocumentPosition(Node other) voidcopy()getElementsByTagName(String tagname) Not implemented yet.getFeature(String feature, String version) Get the raw "type object" of a node.The Data Model's node-name accessor.abstract shortstatic StringgetNodeValue(NodeTree seq, int ipos) static voidgetNodeValue(NodeTree seq, int ipos, StringBuffer sbuf) voidgetNodeValue(StringBuffer sbuf) protected voidgetTextContent(StringBuffer sbuf) getUserData(String key) booleanbooleaninsertBefore(Node newChild, Node refChild) Not implemented.booleanisDefaultNamespace(String namespaceURI) booleanisEqualNode(Node node) booleanisSameNode(Node node) booleanisSupported(String feature, String version) lookupNamespaceURI(String prefix) lookupPrefix(String namespaceURI) static KNodestatic KNodevoidremoveChild(Node oldChild) Not implemented.replaceChild(Node newChild, Node oldChild) Not implemented.voidsetNodeValue(String nodeValue) Not implemented.voidNot implemented.voidsetTextContent(String textContent) Not implemented.setUserData(String key, Object data, UserDataHandler handler) 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, toInfoMethods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Enumeration
asIteratorMethods inherited from interface java.util.Iterator
forEachRemaining
-
Constructor Details
-
KNode
-
-
Method Details
-
atomicValue
-
coerce
Convert value to a KNode, returning null if it isn't a node. -
make
-
copy
- Overrides:
copyin classSeqPosition<Object,NodeTree>
-
make
-
isSupported
- Specified by:
isSupportedin interfaceNode
-
getNodeType
public abstract short getNodeType()- Specified by:
getNodeTypein interfaceNode
-
getNodeName
- Specified by:
getNodeNamein interfaceNode
-
getNodeSymbol
The Data Model's node-name accessor. Return the node's name as a SSymbol (QName) or null if there is none. -
getNodeNameObject
Get the raw "type object" of a node. -
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNode
-
getPrefix
-
getLocalName
- Specified by:
getLocalNamein interfaceNode
-
getNodeValue
-
getNodeValue
-
getNodeValue
- Specified by:
getNodeValuein interfaceNode
-
getNodeValue
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodesin interfaceNode
-
getTextContent
- Specified by:
getTextContentin interfaceNode
-
getTextContent
-
getParentNode
- Specified by:
getParentNodein interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSiblingin interfaceNode
-
getNextSibling
- Specified by:
getNextSiblingin interfaceNode
-
getFirstChild
- Specified by:
getFirstChildin interfaceNode
-
getLastChild
- Specified by:
getLastChildin interfaceNode
-
getChildNodes
- Specified by:
getChildNodesin interfaceNode
-
getElementsByTagName
Not implemented yet. -
setNodeValue
Not implemented.- Specified by:
setNodeValuein interfaceNode- Throws:
DOMException
-
setPrefix
Not implemented.- Specified by:
setPrefixin interfaceNode- Throws:
DOMException
-
insertBefore
Not implemented.- Specified by:
insertBeforein interfaceNode- Throws:
DOMException
-
replaceChild
Not implemented.- Specified by:
replaceChildin interfaceNode- Throws:
DOMException
-
removeChild
Not implemented.- Specified by:
removeChildin interfaceNode- Throws:
DOMException
-
appendChild
Not implemented.- Specified by:
appendChildin interfaceNode- Throws:
DOMException
-
setTextContent
Not implemented.- Specified by:
setTextContentin interfaceNode- Throws:
DOMException
-
cloneNode
Only implemented if deep is true. -
getOwnerDocument
- Specified by:
getOwnerDocumentin interfaceNode
-
getAttributes
- Specified by:
getAttributesin interfaceNode
-
normalize
public void normalize() -
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributesin interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespacein interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURIin interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefixin interfaceNode
-
getBaseURI
- Specified by:
getBaseURIin interfaceNode
-
baseURI
public gnu.kawa.io.Path baseURI() -
compareDocumentPosition
- Specified by:
compareDocumentPositionin interfaceNode- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNodein interfaceNode
-
isEqualNode
- Specified by:
isEqualNodein interfaceNode
-
toString
- Overrides:
toStringin classSeqPosition<Object,NodeTree>
-
getFeature
- Specified by:
getFeaturein interfaceNode
-
consume
- Specified by:
consumein interfaceConsumable
-
setUserData
- Specified by:
setUserDatain interfaceNode
-
getUserData
- Specified by:
getUserDatain interfaceNode
-