Package org.xmlpull.v1.builder.adapter
Class XmlAttributeAdapter
- java.lang.Object
-
- org.xmlpull.v1.builder.adapter.XmlAttributeAdapter
-
- All Implemented Interfaces:
Cloneable,XmlAttribute
public class XmlAttributeAdapter extends Object implements XmlAttribute
Wraps XML attribute - allows overriding and other nice things.
-
-
Constructor Summary
Constructors Constructor Description XmlAttributeAdapter(XmlAttribute target)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Method cloneStringgetName()XML Infoset [local name] propertyXmlNamespacegetNamespace()Combination of XML Infoset [namespace name] and [prefix] propertiesStringgetNamespaceName()return XML Infoset [namespace name] property (namespaceName from getNamespace() or null if attribute has no namespaceXmlElementgetOwner()XML Infoset [owner element] propertyStringgetType()XML Infoset [attribute type]StringgetValue()XML Infoset [normalized value] propertybooleanisSpecified()XML Infoset [specified] flag
-
-
-
Constructor Detail
-
XmlAttributeAdapter
public XmlAttributeAdapter(XmlAttribute target)
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Description copied from interface:XmlAttributeMethod clone- Specified by:
clonein interfaceXmlAttribute- Overrides:
clonein classObject- Returns:
- an Object
- Throws:
CloneNotSupportedException
-
getOwner
public XmlElement getOwner()
Description copied from interface:XmlAttributeXML Infoset [owner element] property- Specified by:
getOwnerin interfaceXmlAttribute
-
getNamespaceName
public String getNamespaceName()
Description copied from interface:XmlAttributereturn XML Infoset [namespace name] property (namespaceName from getNamespace() or null if attribute has no namespace- Specified by:
getNamespaceNamein interfaceXmlAttribute
-
getNamespace
public XmlNamespace getNamespace()
Description copied from interface:XmlAttributeCombination of XML Infoset [namespace name] and [prefix] properties- Specified by:
getNamespacein interfaceXmlAttribute
-
getName
public String getName()
Description copied from interface:XmlAttributeXML Infoset [local name] property- Specified by:
getNamein interfaceXmlAttribute
-
getValue
public String getValue()
Description copied from interface:XmlAttributeXML Infoset [normalized value] property- Specified by:
getValuein interfaceXmlAttribute
-
getType
public String getType()
Description copied from interface:XmlAttributeXML Infoset [attribute type]- Specified by:
getTypein interfaceXmlAttribute
-
isSpecified
public boolean isSpecified()
Description copied from interface:XmlAttributeXML Infoset [specified] flag- Specified by:
isSpecifiedin interfaceXmlAttribute
-
-