adapforms.runtime.state.dom
Class AbstractAttr

java.lang.Object
  extended by adapforms.runtime.state.dom.AbstractNode
      extended by adapforms.runtime.state.dom.AbstractAttr
All Implemented Interfaces:
org.w3c.dom.Attr, org.w3c.dom.Node

public abstract class AbstractAttr
extends AbstractNode
implements org.w3c.dom.Attr

Abstract class for creating simple DOM Attr instances, allowing subclasses to overwrite only those methods they need. All methods simply throw an UnsupportedOperationException when invoked.

Author:
Henrik Gammelmark, geemark@cs.au.dk

Field Summary
 
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
AbstractAttr()
           
 
Method Summary
abstract  java.lang.String getName()
           
 java.lang.String getNodeName()
           
 short getNodeType()
           
 java.lang.String getNodeValue()
           
 org.w3c.dom.Element getOwnerElement()
           
 org.w3c.dom.TypeInfo getSchemaTypeInfo()
           
 boolean getSpecified()
           
abstract  java.lang.String getValue()
           
 boolean isId()
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class adapforms.runtime.state.dom.AbstractNode
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, compareDocumentPosition, getAttributes, getBaseURI, getChildNodes, getFeature, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, getTextContent, getUserData, hasAttributes, hasChildNodes, insertBefore, isDefaultNamespace, isEqualNode, isSameNode, isSupported, lookupNamespaceURI, lookupPrefix, normalize, removeChild, replaceChild, setNodeValue, setPrefix, setTextContent, setUserData
 

Constructor Detail

AbstractAttr

public AbstractAttr()
Method Detail

getName

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

getOwnerElement

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

getSchemaTypeInfo

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

getSpecified

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

getValue

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

getNodeName

public final java.lang.String getNodeName()
Specified by:
getNodeName in interface org.w3c.dom.Node
Overrides:
getNodeName in class AbstractNode

getNodeValue

public final java.lang.String getNodeValue()
                                    throws org.w3c.dom.DOMException
Specified by:
getNodeValue in interface org.w3c.dom.Node
Overrides:
getNodeValue in class AbstractNode
Throws:
org.w3c.dom.DOMException

isId

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

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

getNodeType

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