org.apache.axis2.saaj
Class AttrImpl

java.lang.Object
  extended byorg.apache.axis2.saaj.NodeImpl
      extended byorg.apache.axis2.saaj.AttrImpl
All Implemented Interfaces:
org.w3c.dom.Attr, org.w3c.dom.Node, javax.xml.soap.Node

public class AttrImpl
extends NodeImpl
implements org.w3c.dom.Attr


Field Summary
 
Fields inherited from class org.apache.axis2.saaj.NodeImpl
document, omNode
 
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
AttrImpl()
           
AttrImpl(OMAttribute attrib, org.w3c.dom.Element owner)
           
 
Method Summary
 java.lang.String getName()
          Method getName returns the localName of the attribute
 org.w3c.dom.Element getOwnerElement()
          Method getOwnerElement returns the Element object to which this attribute is attached
 boolean getSpecified()
          Method getSpecified Returns true if this attribute value is set by user in the original document, if so far user didn't set some value to this OR if the user removed this attribute (may be by calling removeAttribute() on owner element) the specified value returned should be false
 java.lang.String getValue()
          Method getValue returns the value of this attribute
 boolean setSpecified(boolean val)
          Method setSpecified This method sets the value of the private datamember specified equals to that of the passed input parameter val and returns the final value of specified flag
 void setValue(java.lang.String value)
          Method setValue This method sets the value of this attribute to the provided input value
 
Methods inherited from class org.apache.axis2.saaj.NodeImpl
appendChild, cloneNode, detachNode, equals, getAttributes, getChildNodes, getFirstChild, getLastChild, getLocalName, getNamespaceURI, getNextSibling, getNodeName, getNodeType, getNodeValue, getOMNode, getOwnerDocument, getParentElement, getParentNode, getPrefix, getPreviousSibling, hasAttributes, hasChildNodes, insertBefore, isSupported, normalize, recycleNode, removeChild, replaceChild, setNodeValue, setOwnerDocument, setParentElement, setPrefix
 
Methods inherited from class java.lang.Object
clone, 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

AttrImpl

public AttrImpl()

AttrImpl

public AttrImpl(OMAttribute attrib,
                org.w3c.dom.Element owner)
Parameters:
attrib -
Method Detail

getSpecified

public boolean getSpecified()
Method getSpecified Returns true if this attribute value is set by user in the original document, if so far user didn't set some value to this OR if the user removed this attribute (may be by calling removeAttribute() on owner element) the specified value returned should be false

Specified by:
getSpecified in interface org.w3c.dom.Attr
See Also:
Attr.getSpecified()

setSpecified

public boolean setSpecified(boolean val)
Method setSpecified This method sets the value of the private datamember specified equals to that of the passed input parameter val and returns the final value of specified flag

Parameters:
val -
Returns:
boolean

getName

public java.lang.String getName()
Method getName returns the localName of the attribute

Specified by:
getName in interface org.w3c.dom.Attr
Returns:
String
See Also:
Attr.getName()

getOwnerElement

public org.w3c.dom.Element getOwnerElement()
Method getOwnerElement returns the Element object to which this attribute is attached

Specified by:
getOwnerElement in interface org.w3c.dom.Attr
Returns:
Element
See Also:
Attr.getOwnerElement()

getValue

public java.lang.String getValue()
Method getValue returns the value of this attribute

Specified by:
getValue in interface org.w3c.dom.Attr
Overrides:
getValue in class NodeImpl
Returns:
String
See Also:
Node.getValue()

setValue

public void setValue(java.lang.String value)
Method setValue This method sets the value of this attribute to the provided input value

Specified by:
setValue in interface org.w3c.dom.Attr
Overrides:
setValue in class NodeImpl
Parameters:
value -
Returns:
See Also:
Node.setValue(java.lang.String)