org.apache.batik.dom
Class AttrWrapper

java.lang.Object
  |
  +--org.apache.batik.dom.NodeWrapper
        |
        +--org.apache.batik.dom.AttrWrapper
All Implemented Interfaces:
Attr, EventTarget, Node

public class AttrWrapper
extends NodeWrapper
implements Attr

This class implements a wrapper for an Attr. All the methods of the underlying document are called in a single thread.


Fields inherited from class org.apache.batik.dom.NodeWrapper
bubblingListeners, capturingListeners, documentWrapper, node
 
Fields inherited from interface org.w3c.dom.Node
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, ENTITY_NODE, ENTITY_REFERENCE_NODE, NOTATION_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
AttrWrapper(DocumentWrapper dw, Attr a)
          Creates a new AttrWrapper object.
 
Method Summary
 java.lang.String getName()
          DOM: Implements Attr.getName().
 Element getOwnerElement()
          DOM: Implements Attr.getOwnerElement().
 boolean getSpecified()
          DOM: Implements Attr.getSpecified().
 java.lang.String getValue()
          DOM: Implements Attr.getValue().
 void setValue(java.lang.String value)
          DOM: Implements Attr.setValue(String).
 
Methods inherited from class org.apache.batik.dom.NodeWrapper
addEventListener, appendChild, cloneNode, createAttrWrapper, createElementWrapper, createNamedNodeMapWrapper, createNodeListWrapper, createNodeWrapper, createTextWrapper, dispatchEvent, finalize, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNode, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, invokeAndWait, invokeLater, isSupported, normalize, removeChild, removeEventListener, replaceChild, setNodeValue, setPrefix
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.Node
appendChild, cloneNode, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOwnerDocument, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, removeChild, replaceChild, setNodeValue, setPrefix
 

Constructor Detail

AttrWrapper

public AttrWrapper(DocumentWrapper dw,
                   Attr a)
Creates a new AttrWrapper object.
Method Detail

getName

public java.lang.String getName()
DOM: Implements Attr.getName().
Specified by:
getName in interface Attr

getSpecified

public boolean getSpecified()
DOM: Implements Attr.getSpecified().
Specified by:
getSpecified in interface Attr

getValue

public java.lang.String getValue()
DOM: Implements Attr.getValue().
Specified by:
getValue in interface Attr
Following copied from interface: org.w3c.dom.Attr
Throws:
DOMException - NO_MODIFICATION_ALLOWED_ERR: Raised when the node is readonly.

setValue

public void setValue(java.lang.String value)
              throws DOMException
DOM: Implements Attr.setValue(String).
Specified by:
setValue in interface Attr

getOwnerElement

public Element getOwnerElement()
DOM: Implements Attr.getOwnerElement().
Specified by:
getOwnerElement in interface Attr


Copyright © 2001 Apache Software Foundation. All Rights Reserved.