Package com.helger.xml.microdom
Interface IMicroAttribute
- All Superinterfaces:
com.helger.commons.lang.ICloneable<IMicroAttribute>
- All Known Implementing Classes:
MicroAttribute
Represents a single attribute within an element (=tag).
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault QNamedefault QNamegetAsXMLQName(String sPrefix) default StringGet the (local) name of the attribute.Get the qualified name of the attribute.getClone()default StringGet the namespace URI of this attributedefault booleanCheck if this attribute has a specified namespace URI.default booleanhasNamespaceURI(String sNamespaceURI) Check if this attribute has the specified namespace URI.default booleanCheck if this attribute has no namespace URI.com.helger.commons.state.EChangesetAttributeValue(String sAttributeValue) Set the value of the attribute.
-
Method Details
-
getNamespaceURI
Get the namespace URI of this attribute- Returns:
- May be
nullif this attribute has no namespace URI.
-
hasNamespaceURI
default boolean hasNamespaceURI()Check if this attribute has a specified namespace URI.- Returns:
trueif this attribute has a specified namespace URI,falseotherwise
-
hasNoNamespaceURI
default boolean hasNoNamespaceURI()Check if this attribute has no namespace URI.- Returns:
trueif this attribute has no namespace URI,falseotherwise
-
hasNamespaceURI
Check if this attribute has the specified namespace URI.- Parameters:
sNamespaceURI- The namespace URI to check. May not benull.- Returns:
trueif this attribute has the specified namespace URI,falseotherwise
-
getAttributeName
Get the (local) name of the attribute. It never contains XML schema prefixes or the like.- Returns:
- The name of the attribute and never
null.
-
getAttributeQName
Get the qualified name of the attribute. It never contains XML schema prefixes or the like.- Returns:
- The qualified name (namespace URI + local name) of the attribute
and never
null.
-
getAsXMLQName
- Returns:
- The regular XML QName of this attribute using an empty prefix.
-
getAsXMLQName
- Parameters:
sPrefix- the namespace prefix to be used in the resulting object. May not benullbut maybe empty.- Returns:
- The regular XML QName of this attribute using the provided prefix.
-
getAttributeValue
- Returns:
- The value associated with this attribute. Never
null.
-
setAttributeValue
Set the value of the attribute.- Parameters:
sAttributeValue- The new value to be set. May not benull.- Returns:
EChange.
-
getClone
- Specified by:
getClonein interfacecom.helger.commons.lang.ICloneable<IMicroAttribute>
-