BEA Systems, Inc.

com.beasys.commerce.util.dom
Class AttrImpl

java.lang.Object
  |
  +--com.beasys.commerce.util.dom.DOMBase
        |
        +--com.beasys.commerce.util.dom.NodeImpl
              |
              +--com.beasys.commerce.util.dom.AttrImpl
All Implemented Interfaces:
org.w3c.dom.Attr, org.w3c.dom.Node, java.io.Serializable

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

An implementation of the W3C's DOM Attr object.

Version:
1.0
Author:
BEA Systems, Inc.
See Also:
Serialized Form

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(org.w3c.dom.Document doc, java.lang.String name, java.lang.String value, boolean specified)
          Constructor.
 
Method Summary
 org.w3c.dom.Node cloneNode()
          Clone this object.
protected  short[] getAllowableChildrenType()
          Get the children types that can added to an Attr.
 java.lang.String getName()
          Get the name of the attribute.
 java.lang.String getNodeName()
          Get the node name.
 short getNodeType()
          Return Node.ATTRIBUTE_NODE.
 java.lang.String getNodeValue()
          Get the node value.
 boolean getSpecified()
          Get the specified property of the attribute.
 java.lang.String getValue()
          Get the value of the attribute.
 void setName(java.lang.String name)
          Set the name of the attribute.
 void setNodeValue(java.lang.String value)
          Set the node value.
 void setSpecified(boolean specified)
          Set the specified property of the attribute.
 void setValue(java.lang.String value)
          Set the value of the attribute.
 
Methods inherited from class com.beasys.commerce.util.dom.NodeImpl
allowsChildren, appendChild, appendChildren, checkAllowChild, cloneNode, getAllowableChildrenTypes, getAttributes, getChildNodes, getFirstChild, getLastChild, getNextSibling, getNodeType, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, insertChildrenBefore, isAncestor, removeChild, replaceChild, setParentNode
 
Methods inherited from class com.beasys.commerce.util.dom.DOMBase
checkOwnerDocument, checkReadOnly, getOwnerDocument, isReadOnly, setReadOnly
 
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, getNextSibling, getOwnerDocument, getParentNode, getPreviousSibling, hasChildNodes, insertBefore, removeChild, replaceChild
 

Constructor Detail

AttrImpl

public AttrImpl(org.w3c.dom.Document doc,
                java.lang.String name,
                java.lang.String value,
                boolean specified)
Constructor.
Parameters:
doc - the document that contains this.
name - the name.
value - the value.
Method Detail

cloneNode

public org.w3c.dom.Node cloneNode()
Clone this object.
Overrides:
cloneNode in class NodeImpl

getNodeType

public short getNodeType()
Return Node.ATTRIBUTE_NODE.
Specified by:
getNodeType in interface org.w3c.dom.Node
Overrides:
getNodeType in class NodeImpl

getAllowableChildrenType

protected short[] getAllowableChildrenType()
Get the children types that can added to an Attr.

getNodeName

public java.lang.String getNodeName()
Get the node name.

For Attributes, the node name is the name of the attribute.

Specified by:
getNodeName in interface org.w3c.dom.Node
Overrides:
getNodeName in class NodeImpl
See Also:
getName()

getNodeValue

public java.lang.String getNodeValue()
Get the node value.

For Attributes, the node value is the value of the attribute.

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

setNodeValue

public void setNodeValue(java.lang.String value)
Set the node value.

For Attributes, the node value is the value of the attribute.

Specified by:
setNodeValue in interface org.w3c.dom.Node
Overrides:
setNodeValue in class NodeImpl
See Also:
setValue(java.lang.String)

getName

public java.lang.String getName()
Get the name of the attribute.
Specified by:
getName in interface org.w3c.dom.Attr

setName

public void setName(java.lang.String name)
Set the name of the attribute.

getValue

public java.lang.String getValue()
Get the value of the attribute.
Specified by:
getValue in interface org.w3c.dom.Attr

setValue

public void setValue(java.lang.String value)
Set the value of the attribute.
Specified by:
setValue in interface org.w3c.dom.Attr

getSpecified

public boolean getSpecified()
Get the specified property of the attribute.
Specified by:
getSpecified in interface org.w3c.dom.Attr

setSpecified

public void setSpecified(boolean specified)
Set the specified property of the attribute.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved