Package gnu.kawa.xml
Class KElement
- java.lang.Object
-
- gnu.lists.SeqPosition<Object,NodeTree>
-
- gnu.kawa.xml.KNode
-
- gnu.kawa.xml.KElement
-
- All Implemented Interfaces:
Consumable
,Enumeration<Object>
,Iterator<Object>
,ListIterator<Object>
,Element
,Node
public class KElement extends KNode implements Element
-
-
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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getAttribute(String name)
KAttr
getAttributeNode(String name)
KAttr
getAttributeNodeNS(String namespaceURI, String localName)
String
getAttributeNS(String namespaceURI, String localName)
NodeList
getElementsByTagNameNS(String namespaceURI, String localName)
short
getNodeType()
String
getNodeValue()
TypeInfo
getSchemaTypeInfo()
String
getTagName()
boolean
hasAttribute(String name)
Not implemented yet.boolean
hasAttributeNS(String namespaceURI, String localName)
boolean
hasAttributes()
void
removeAttribute(String name)
Not implemented.Attr
removeAttributeNode(Attr oldAttr)
Not implemented.void
removeAttributeNS(String namespaceURI, String localName)
Not implemented.void
setAttribute(String name, String value)
Not implemented.Attr
setAttributeNode(Attr newAttr)
Not implemented.Attr
setAttributeNodeNS(Attr newAttr)
Not implemented.void
setAttributeNS(String namespaceURI, String qualifiedName, String value)
Not implemented.void
setIdAttribute(String name, boolean isId)
Not implemented.void
setIdAttributeNode(Attr idAttr, boolean isId)
Not implemented.void
setIdAttributeNS(String namespaceURI, String localName, boolean isId)
Not implemented.-
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, getNodeName, getNodeNameObject, getNodeSymbol, getNodeValue, getNodeValue, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getTextContent, 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.Element
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, getNodeName, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
-
-
-
-
Constructor Detail
-
KElement
public KElement(NodeTree seq, int ipos)
-
-
Method Detail
-
getNodeType
public short getNodeType()
- Specified by:
getNodeType
in interfaceNode
- Specified by:
getNodeType
in classKNode
-
getTagName
public String getTagName()
- Specified by:
getTagName
in interfaceElement
-
getNodeValue
public String getNodeValue()
- Specified by:
getNodeValue
in interfaceNode
- Overrides:
getNodeValue
in classKNode
-
hasAttributes
public boolean hasAttributes()
- Specified by:
hasAttributes
in interfaceNode
- Overrides:
hasAttributes
in classKNode
-
getAttribute
public String getAttribute(String name)
- Specified by:
getAttribute
in interfaceElement
-
setAttribute
public void setAttribute(String name, String value) throws DOMException
Not implemented.- Specified by:
setAttribute
in interfaceElement
- Throws:
DOMException
-
setIdAttribute
public void setIdAttribute(String name, boolean isId) throws DOMException
Not implemented.- Specified by:
setIdAttribute
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNS
public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException
Not implemented.- Specified by:
setIdAttributeNS
in interfaceElement
- Throws:
DOMException
-
setIdAttributeNode
public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException
Not implemented.- Specified by:
setIdAttributeNode
in interfaceElement
- Throws:
DOMException
-
removeAttribute
public void removeAttribute(String name) throws DOMException
Not implemented.- Specified by:
removeAttribute
in interfaceElement
- Throws:
DOMException
-
getAttributeNode
public KAttr getAttributeNode(String name)
- Specified by:
getAttributeNode
in interfaceElement
-
setAttributeNode
public Attr setAttributeNode(Attr newAttr) throws DOMException
Not implemented.- Specified by:
setAttributeNode
in interfaceElement
- Throws:
DOMException
-
removeAttributeNode
public Attr removeAttributeNode(Attr oldAttr) throws DOMException
Not implemented.- Specified by:
removeAttributeNode
in interfaceElement
- Throws:
DOMException
-
getAttributeNS
public String getAttributeNS(String namespaceURI, String localName)
- Specified by:
getAttributeNS
in interfaceElement
-
setAttributeNS
public void setAttributeNS(String namespaceURI, String qualifiedName, String value) throws DOMException
Not implemented.- Specified by:
setAttributeNS
in interfaceElement
- Throws:
DOMException
-
removeAttributeNS
public void removeAttributeNS(String namespaceURI, String localName) throws DOMException
Not implemented.- Specified by:
removeAttributeNS
in interfaceElement
- Throws:
DOMException
-
getAttributeNodeNS
public KAttr getAttributeNodeNS(String namespaceURI, String localName)
- Specified by:
getAttributeNodeNS
in interfaceElement
-
setAttributeNodeNS
public Attr setAttributeNodeNS(Attr newAttr) throws DOMException
Not implemented.- Specified by:
setAttributeNodeNS
in interfaceElement
- Throws:
DOMException
-
getElementsByTagNameNS
public NodeList getElementsByTagNameNS(String namespaceURI, String localName)
- Specified by:
getElementsByTagNameNS
in interfaceElement
-
hasAttribute
public boolean hasAttribute(String name)
Not implemented yet.- Specified by:
hasAttribute
in interfaceElement
-
hasAttributeNS
public boolean hasAttributeNS(String namespaceURI, String localName)
- Specified by:
hasAttributeNS
in interfaceElement
-
getSchemaTypeInfo
public TypeInfo getSchemaTypeInfo()
- Specified by:
getSchemaTypeInfo
in interfaceElement
-
-