Save This Page
Home » dom4j-1.6.1 » org.dom4j.tree » [javadoc | source]
org.dom4j.tree
public class: DefaultAttribute [javadoc | source]
java.lang.Object
   org.dom4j.tree.AbstractNode
      org.dom4j.tree.AbstractAttribute
         org.dom4j.tree.FlyweightAttribute
            org.dom4j.tree.DefaultAttribute

All Implemented Interfaces:
    Attribute, Cloneable, Node, Serializable

Direct Known Subclasses:
    DOMAttribute, UserDataAttribute

DefaultAttribute implements a doubly linked node which supports the parent relationship and is mutable.

Fields inherited from org.dom4j.tree.FlyweightAttribute:
value
Fields inherited from org.dom4j.tree.AbstractNode:
NODE_TYPE_NAMES
Constructor:
 public DefaultAttribute(QName qname) 
 public DefaultAttribute(QName qname,
    String value) 
 public DefaultAttribute(String name,
    String value) 
    Creates the Attribute with the specified local name and value.
    Parameters:
    name - is the name of the attribute
    value - is the value of the attribute
 public DefaultAttribute(Element parent,
    QName qname,
    String value) 
 public DefaultAttribute(String name,
    String value,
    Namespace namespace) 
    Creates the Attribute with the specified local name, value and Namespace.
    Parameters:
    name - is the name of the attribute
    value - is the value of the attribute
    namespace - is the namespace of the attribute
 public DefaultAttribute(Element parent,
    String name,
    String value,
    Namespace namespace) 
    Creates the Attribute with the specified local name, value and Namespace.
    Parameters:
    parent - is the parent element
    name - is the name of the attribute
    value - is the value of the attribute
    namespace - is the namespace of the attribute
Method from org.dom4j.tree.DefaultAttribute Summary:
getParent,   isReadOnly,   setParent,   setValue,   supportsParent
Methods from org.dom4j.tree.FlyweightAttribute:
getQName,   getValue
Methods from org.dom4j.tree.AbstractAttribute:
accept,   asXML,   createXPathResult,   getData,   getName,   getNamespace,   getNamespacePrefix,   getNamespaceURI,   getNodeType,   getPath,   getQualifiedName,   getText,   getUniquePath,   setData,   setNamespace,   setText,   setValue,   toString,   write
Methods from org.dom4j.tree.AbstractNode:
asXPathResult,   clone,   createPattern,   createXPath,   createXPathFilter,   createXPathResult,   detach,   getDocument,   getDocumentFactory,   getName,   getNodeType,   getNodeTypeName,   getParent,   getPath,   getStringValue,   getText,   getUniquePath,   hasContent,   isReadOnly,   matches,   numberValueOf,   selectNodes,   selectNodes,   selectNodes,   selectObject,   selectSingleNode,   setDocument,   setName,   setParent,   setText,   supportsParent,   valueOf,   write
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.dom4j.tree.DefaultAttribute Detail:
 public Element getParent() 
 public boolean isReadOnly() 
 public  void setParent(Element parent) 
 public  void setValue(String value) 
 public boolean supportsParent()