uk.ac.starlink.votable.dom
Class DelegatingAttr

java.lang.Object
  extended byuk.ac.starlink.votable.dom.DelegatingNode
      extended byuk.ac.starlink.votable.dom.DelegatingAttr
All Implemented Interfaces:
Attr, Node

public class DelegatingAttr
extends DelegatingNode
implements Attr


Field Summary
 
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
protected DelegatingAttr(Attr base, DelegatingDocument doc)
          Constructor.
protected DelegatingAttr(Attr base, DelegatingDocument doc, boolean isId)
          Constructs a DelegatingAttr with information about whether it is an ID-type attribute or not.
 
Method Summary
 String getName()
           
 Element getOwnerElement()
           
 boolean getSpecified()
           
 String getValue()
           
 void setValue(String value)
           
 
Methods inherited from class uk.ac.starlink.votable.dom.DelegatingNode
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
 
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, 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

DelegatingAttr

protected DelegatingAttr(Attr base,
                         DelegatingDocument doc)
Constructor.

Parameters:
base - base node
doc - owner document

DelegatingAttr

protected DelegatingAttr(Attr base,
                         DelegatingDocument doc,
                         boolean isId)
Constructs a DelegatingAttr with information about whether it is an ID-type attribute or not. This information is only used at DOM Level 3 (J2SE1.5), when it is used as the result of the isId() method.

Parameters:
base - base node
doc - owner document
isId - whether it will be an ID type attribute
Method Detail

getName

public String getName()
Specified by:
getName in interface Attr

getSpecified

public boolean getSpecified()
Specified by:
getSpecified in interface Attr

getValue

public String getValue()
Specified by:
getValue in interface Attr

setValue

public void setValue(String value)
Specified by:
setValue in interface Attr

getOwnerElement

public Element getOwnerElement()
Specified by:
getOwnerElement in interface Attr

Copyright © 2004 CLRC: Central Laboratory of the Research Councils. All rights reserved.