org.xmlpull.v1.builder.adapter
Class XmlAttributeAdapter

java.lang.Object
  extended by org.xmlpull.v1.builder.adapter.XmlAttributeAdapter
All Implemented Interfaces:
java.lang.Cloneable, XmlAttribute

public class XmlAttributeAdapter
extends java.lang.Object
implements XmlAttribute

Wraps XML attribute - allows overriding and other nice things.


Constructor Summary
XmlAttributeAdapter(XmlAttribute target)
           
 
Method Summary
 java.lang.Object clone()
          Method clone
 java.lang.String getName()
          XML Infoset [local name] property
 XmlNamespace getNamespace()
          Combination of XML Infoset [namespace name] and [prefix] properties
 java.lang.String getNamespaceName()
          return XML Infoset [namespace name] property (namespaceName from getNamespace() or null if attribute has no namespace
 XmlElement getOwner()
          XML Infoset [owner element] property
 java.lang.String getType()
          XML Infoset [attribute type]
 java.lang.String getValue()
          XML Infoset [normalized value] property
 boolean isSpecified()
          XML Infoset [specified] flag
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlAttributeAdapter

public XmlAttributeAdapter(XmlAttribute target)
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: XmlAttribute
Method clone

Specified by:
clone in interface XmlAttribute
Overrides:
clone in class java.lang.Object
Returns:
an Object
Throws:
java.lang.CloneNotSupportedException

getOwner

public XmlElement getOwner()
Description copied from interface: XmlAttribute
XML Infoset [owner element] property

Specified by:
getOwner in interface XmlAttribute

getNamespaceName

public java.lang.String getNamespaceName()
Description copied from interface: XmlAttribute
return XML Infoset [namespace name] property (namespaceName from getNamespace() or null if attribute has no namespace

Specified by:
getNamespaceName in interface XmlAttribute

getNamespace

public XmlNamespace getNamespace()
Description copied from interface: XmlAttribute
Combination of XML Infoset [namespace name] and [prefix] properties

Specified by:
getNamespace in interface XmlAttribute

getName

public java.lang.String getName()
Description copied from interface: XmlAttribute
XML Infoset [local name] property

Specified by:
getName in interface XmlAttribute

getValue

public java.lang.String getValue()
Description copied from interface: XmlAttribute
XML Infoset [normalized value] property

Specified by:
getValue in interface XmlAttribute

getType

public java.lang.String getType()
Description copied from interface: XmlAttribute
XML Infoset [attribute type]

Specified by:
getType in interface XmlAttribute

isSpecified

public boolean isSpecified()
Description copied from interface: XmlAttribute
XML Infoset [specified] flag

Specified by:
isSpecified in interface XmlAttribute