Package org.xmlpull.v1.builder.impl
Class XmlAttributeImpl
- java.lang.Object
-
- org.xmlpull.v1.builder.impl.XmlAttributeImpl
-
- All Implemented Interfaces:
Cloneable,XmlAttribute
public class XmlAttributeImpl extends Object implements XmlAttribute
Simple implementation.- Author:
- Aleksander Slominski
-
-
Constructor Summary
Constructors Constructor Description XmlAttributeImpl(XmlElement owner, String name, String value)XmlAttributeImpl(XmlElement owner, String type, XmlNamespace namespace, String name, String value)XmlAttributeImpl(XmlElement owner, String type, XmlNamespace namespace, String name, String value, boolean specified)XmlAttributeImpl(XmlElement owner, XmlNamespace namespace, String name, String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Method clonebooleanequals(Object other)StringgetName()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] flagStringtoString()
-
-
-
Constructor Detail
-
XmlAttributeImpl
XmlAttributeImpl(XmlElement owner, String name, String value)
-
XmlAttributeImpl
XmlAttributeImpl(XmlElement owner, XmlNamespace namespace, String name, String value)
-
XmlAttributeImpl
XmlAttributeImpl(XmlElement owner, String type, XmlNamespace namespace, String name, String value)
-
XmlAttributeImpl
XmlAttributeImpl(XmlElement owner, String type, XmlNamespace namespace, String name, String value, boolean specified)
-
-
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
-
getNamespace
public XmlNamespace getNamespace()
Description copied from interface:XmlAttributeCombination of XML Infoset [namespace name] and [prefix] properties- Specified by:
getNamespacein 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
-
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
-
-