Package com.helger.xml.microdom
Interface IMicroQName
-
- All Superinterfaces:
Comparable<IMicroQName>,com.helger.commons.compare.IComparable<IMicroQName>,Serializable
- 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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default intcompareTo(IMicroQName o)default QNamegetAsXMLQName()default QNamegetAsXMLQName(String sPrefix)StringgetName()StringgetNamespaceURI()Get the namespace URIdefault booleanhasNamespaceURI()Check if a namespace URI is present.default booleanhasNamespaceURI(String sNamespaceURI)Check if the specified namespace URI is present.default booleanhasNoNamespaceURI()Check if no namespace URI is present.
-
-
-
Method Detail
-
getNamespaceURI
@Nullable String 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
default boolean hasNamespaceURI(@Nullable String sNamespaceURI)
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
@Nonnull @Nonempty String getName()
- Returns:
- The local name without the namespace URI or the prefix. Never
null.
-
compareTo
default int compareTo(@Nonnull IMicroQName o)
- Specified by:
compareToin interfaceComparable<IMicroQName>
-
getAsXMLQName
@Nonnull default QName getAsXMLQName()
- Returns:
- This micro QName as a regular XML QName using an empty prefix.
-
-