com.plumtree.openfoundation.xml.dom
Class XPAttr

java.lang.Object
  extended bycom.plumtree.openfoundation.xml.dom.XPNode
      extended bycom.plumtree.openfoundation.xml.dom.XPAttr

public class XPAttr
extends XPNode

The XPAttr class is a wrapper for objects implementing org.w3c.dom.Attr interface. Please refer to Attr (Java 2 Platform SE v1.4.2) for detail information.

Author:
djc

Field Summary
 
Fields inherited from class com.plumtree.openfoundation.xml.dom.XPNode
ATTRIBUTE_NODE, CDATA_SECTION_NODE, COMMENT_NODE, DOCUMENT_FRAGMENT_NODE, DOCUMENT_NODE, DOCUMENT_TYPE_NODE, ELEMENT_NODE, PROCESSING_INSTRUCTION_NODE, TEXT_NODE
 
Constructor Summary
protected XPAttr(org.w3c.dom.Attr currAttr)
          Creates a new XPAttr object.
 
Method Summary
 java.lang.String GetName()
          Returns the name of this attribute.
 XPElement GetOwnerElement()
          The XPElement node this attribute is attached to or null if this attribute is not in use.
 boolean GetSpecified()
          If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.
 org.w3c.dom.Node GetUnderlyingObject()
          Retrieve the underlying Node object.
 java.lang.String GetValue()
          Return the attribute's value as a string.
 void SetValue(java.lang.String newValue)
          Set new attribute value.
 
Methods inherited from class com.plumtree.openfoundation.xml.dom.XPNode
AppendChild, CloneNode, GetAttributes, GetChildNodes, GetFirstChild, GetLastChild, GetLocalName, GetNamespaceURI, GetNextSibling, GetNodeName, GetNodeType, GetNodeValue, GetOwnerDocument, GetParentNode, GetPrefix, GetPreviousSibling, HasAttributes, HasChildNodes, InsertBefore, IsAttributeNode, IsCDATASectionNode, IsCommentNode, IsDocumentFragmentNode, IsDocumentNode, IsDocumentTypeNode, IsElementNode, IsProcessingInstructionNode, IsSupported, IsTextNode, Normalize, RemoveChild, ReplaceChild, SetNodeValue, SetPrefix, StoreNode
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPAttr

protected XPAttr(org.w3c.dom.Attr currAttr)
Creates a new XPAttr object.

Parameters:
currAttr - - underlying attribute for XPAttr
Method Detail

GetName

public java.lang.String GetName()
Returns the name of this attribute.

Returns:
Attribute name

GetOwnerElement

public XPElement GetOwnerElement()
The XPElement node this attribute is attached to or null if this attribute is not in use.

Returns:
Attribute's element owner

GetSpecified

public boolean GetSpecified()
If this attribute was explicitly given a value in the original document, this is true; otherwise, it is false.

Returns:
Attribute originally had a value

GetUnderlyingObject

public org.w3c.dom.Node GetUnderlyingObject()
Retrieve the underlying Node object.

Overrides:
GetUnderlyingObject in class XPNode
Returns:
Attribute

GetValue

public java.lang.String GetValue()
Return the attribute's value as a string.

Returns:
Attribute value

SetValue

public void SetValue(java.lang.String newValue)
Set new attribute value.

Parameters:
newValue - - new attribute value


Copyright © 2002, 2003, 2004 Plumtree Software Inc. All Rights Reserved.