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, 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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionappendChild
(Node newChild) Not implemented.static Object
atomicValue
(Object value) gnu.kawa.io.Path
baseURI()
cloneNode
(boolean deep) Only implemented if deep is true.static KNode
Convert value to a KNode, returning null if it isn't a node.short
compareDocumentPosition
(Node other) void
copy()
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 short
static String
getNodeValue
(NodeTree seq, int ipos) static void
getNodeValue
(NodeTree seq, int ipos, StringBuffer sbuf) void
getNodeValue
(StringBuffer sbuf) protected void
getTextContent
(StringBuffer sbuf) getUserData
(String key) boolean
boolean
insertBefore
(Node newChild, Node refChild) Not implemented.boolean
isDefaultNamespace
(String namespaceURI) boolean
isEqualNode
(Node node) boolean
isSameNode
(Node node) boolean
isSupported
(String feature, String version) lookupNamespaceURI
(String prefix) lookupPrefix
(String namespaceURI) static KNode
static KNode
void
removeChild
(Node oldChild) Not implemented.replaceChild
(Node newChild, Node oldChild) Not implemented.void
setNodeValue
(String nodeValue) Not implemented.void
Not implemented.void
setTextContent
(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, toInfo
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Enumeration
asIterator
Methods 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:
copy
in classSeqPosition<Object,
NodeTree>
-
make
-
isSupported
- Specified by:
isSupported
in interfaceNode
-
getNodeType
public abstract short getNodeType()- Specified by:
getNodeType
in interfaceNode
-
getNodeName
- Specified by:
getNodeName
in 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:
getNamespaceURI
in interfaceNode
-
getPrefix
-
getLocalName
- Specified by:
getLocalName
in interfaceNode
-
getNodeValue
-
getNodeValue
-
getNodeValue
- Specified by:
getNodeValue
in interfaceNode
-
getNodeValue
-
hasChildNodes
public boolean hasChildNodes()- Specified by:
hasChildNodes
in interfaceNode
-
getTextContent
- Specified by:
getTextContent
in interfaceNode
-
getTextContent
-
getParentNode
- Specified by:
getParentNode
in interfaceNode
-
getPreviousSibling
- Specified by:
getPreviousSibling
in interfaceNode
-
getNextSibling
- Specified by:
getNextSibling
in interfaceNode
-
getFirstChild
- Specified by:
getFirstChild
in interfaceNode
-
getLastChild
- Specified by:
getLastChild
in interfaceNode
-
getChildNodes
- Specified by:
getChildNodes
in interfaceNode
-
getElementsByTagName
Not implemented yet. -
setNodeValue
Not implemented.- Specified by:
setNodeValue
in interfaceNode
- Throws:
DOMException
-
setPrefix
Not implemented.- Specified by:
setPrefix
in interfaceNode
- Throws:
DOMException
-
insertBefore
Not implemented.- Specified by:
insertBefore
in interfaceNode
- Throws:
DOMException
-
replaceChild
Not implemented.- Specified by:
replaceChild
in interfaceNode
- Throws:
DOMException
-
removeChild
Not implemented.- Specified by:
removeChild
in interfaceNode
- Throws:
DOMException
-
appendChild
Not implemented.- Specified by:
appendChild
in interfaceNode
- Throws:
DOMException
-
setTextContent
Not implemented.- Specified by:
setTextContent
in interfaceNode
- Throws:
DOMException
-
cloneNode
Only implemented if deep is true. -
getOwnerDocument
- Specified by:
getOwnerDocument
in interfaceNode
-
getAttributes
- Specified by:
getAttributes
in interfaceNode
-
normalize
public void normalize() -
hasAttributes
public boolean hasAttributes()- Specified by:
hasAttributes
in interfaceNode
-
isDefaultNamespace
- Specified by:
isDefaultNamespace
in interfaceNode
-
lookupNamespaceURI
- Specified by:
lookupNamespaceURI
in interfaceNode
-
lookupPrefix
- Specified by:
lookupPrefix
in interfaceNode
-
getBaseURI
- Specified by:
getBaseURI
in interfaceNode
-
baseURI
public gnu.kawa.io.Path baseURI() -
compareDocumentPosition
- Specified by:
compareDocumentPosition
in interfaceNode
- Throws:
DOMException
-
isSameNode
- Specified by:
isSameNode
in interfaceNode
-
isEqualNode
- Specified by:
isEqualNode
in interfaceNode
-
toString
- Overrides:
toString
in classSeqPosition<Object,
NodeTree>
-
getFeature
- Specified by:
getFeature
in interfaceNode
-
consume
- Specified by:
consume
in interfaceConsumable
-
setUserData
- Specified by:
setUserData
in interfaceNode
-
getUserData
- Specified by:
getUserData
in interfaceNode
-