gnu.kawa.xml
Class KAttr

java.lang.Object
  extended by gnu.lists.SeqPosition
      extended by gnu.kawa.xml.KNode
          extended by gnu.kawa.xml.KAttr
All Implemented Interfaces:
Consumable, java.util.Enumeration, java.util.Iterator, java.util.ListIterator, org.w3c.dom.Attr, org.w3c.dom.Node

public class KAttr
extends KNode
implements org.w3c.dom.Attr


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
KAttr(NodeTree seq, int ipos)
           
 
Method Summary
 java.lang.String getName()
           
 short getNodeType()
           
 java.lang.Object getObjectValue()
          Get attribute value as (typed) Object, rather than string.
static java.lang.Object getObjectValue(NodeTree sequence, int ipos)
           
 org.w3c.dom.Element getOwnerElement()
           
 org.w3c.dom.Node getParentNode()
           
 org.w3c.dom.TypeInfo getSchemaTypeInfo()
           
 boolean getSpecified()
           
 java.lang.String getValue()
           
 boolean isId()
           
 void setValue(java.lang.String value)
           
 
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, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getTextContent, getTextContent, getUserData, hasAttributes, 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.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeValue, getOwnerDocument, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

KAttr

public KAttr(NodeTree seq,
             int ipos)
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface org.w3c.dom.Attr

getNodeType

public short getNodeType()
Specified by:
getNodeType in interface org.w3c.dom.Node
Specified by:
getNodeType in class KNode

getValue

public java.lang.String getValue()
Specified by:
getValue in interface org.w3c.dom.Attr

getObjectValue

public static java.lang.Object getObjectValue(NodeTree sequence,
                                              int ipos)

getObjectValue

public java.lang.Object getObjectValue()
Get attribute value as (typed) Object, rather than string.


setValue

public void setValue(java.lang.String value)
              throws org.w3c.dom.DOMException
Specified by:
setValue in interface org.w3c.dom.Attr
Throws:
org.w3c.dom.DOMException

getParentNode

public org.w3c.dom.Node getParentNode()
Specified by:
getParentNode in interface org.w3c.dom.Node
Overrides:
getParentNode in class KNode

getOwnerElement

public org.w3c.dom.Element getOwnerElement()
Specified by:
getOwnerElement in interface org.w3c.dom.Attr

getSpecified

public boolean getSpecified()
Specified by:
getSpecified in interface org.w3c.dom.Attr

getSchemaTypeInfo

public org.w3c.dom.TypeInfo getSchemaTypeInfo()
Specified by:
getSchemaTypeInfo in interface org.w3c.dom.Attr

isId

public boolean isId()
Specified by:
isId in interface org.w3c.dom.Attr