Package com.helger.xml.microdom
Interface IMicroQName
- All Superinterfaces:
Comparable<IMicroQName>,com.helger.commons.compare.IComparable<IMicroQName>
- All Known Implementing Classes:
MicroQName
@MustImplementEqualsAndHashcode
@MustImplementComparable
public interface IMicroQName
extends com.helger.commons.compare.IComparable<IMicroQName>
Represents a simple qualified name. A combination of namespace URI and local
name.
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptiondefault intdefault QNamedefault QNamegetAsXMLQName(String sPrefix) getName()Get the namespace URIdefault booleanCheck if a namespace URI is present.default booleanhasNamespaceURI(String sNamespaceURI) Check if the specified namespace URI is present.default booleanCheck if no namespace URI is present.Methods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNE
-
Method Details
-
getNamespaceURI
Get the namespace URI- Returns:
- May be
nullif no namespace URI is present.
-
hasNamespaceURI
default boolean hasNamespaceURI()Check if a namespace URI is present.- Returns:
trueif a specified namespace URI is present,falseotherwise
-
hasNoNamespaceURI
default boolean hasNoNamespaceURI()Check if no namespace URI is present.- Returns:
trueif no namespace URI is present,falseotherwise
-
hasNamespaceURI
Check if the specified namespace URI is present.- Parameters:
sNamespaceURI- The namespace URI to check. May not benull.- Returns:
trueif the specified namespace URI matches the URI of this name,falseotherwise
-
getName
- Returns:
- The local name without the namespace URI or the prefix. Never
null.
-
compareTo
- Specified by:
compareToin interfaceComparable<IMicroQName>
-
getAsXMLQName
- Returns:
- This micro QName as a regular XML QName using an empty prefix.
-
getAsXMLQName
- Parameters:
sPrefix- the namespace prefix to be used in the resulting object. May not benullbut maybe empty.- Returns:
- This micro QName as a regular XML QName using the provided prefix.
-