@Immutable public final class MicroQName extends Object implements IMicroQName, com.helger.commons.compare.IComparable<MicroQName>
| Constructor and Description |
|---|
MicroQName(String sName) |
MicroQName(String sNamespaceURI,
String sName) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MicroQName o) |
boolean |
equals(Object o) |
QName |
getAsXMLQName() |
QName |
getAsXMLQName(String sPrefix) |
String |
getName() |
String |
getNamespaceURI()
Get the namespace URI
|
int |
hashCode() |
boolean |
hasNamespaceURI()
Check if a namespace URI is present.
|
boolean |
hasNamespaceURI(String sNamespaceURI)
Check if the specified namespace URI is present.
|
boolean |
hasNoNamespaceURI()
Check if no namespace URI is present.
|
String |
toString() |
@Nullable public String getNamespaceURI()
IMicroQNamegetNamespaceURI in interface IMicroQNamenull if no namespace URI is present.public boolean hasNamespaceURI()
IMicroQNamehasNamespaceURI in interface IMicroQNametrue if a specified namespace URI is present,
false otherwisepublic boolean hasNoNamespaceURI()
IMicroQNamehasNoNamespaceURI in interface IMicroQNametrue if no namespace URI is present,
false otherwisepublic boolean hasNamespaceURI(@Nullable String sNamespaceURI)
IMicroQNamehasNamespaceURI in interface IMicroQNamesNamespaceURI - The namespace URI to check. May not be null.true if the specified namespace URI matches the URI of
this name, false otherwise@Nonnull @Nonempty public String getName()
getName in interface IMicroQNamenull.@Nonnull public QName getAsXMLQName()
getAsXMLQName in interface IMicroQName@Nonnull public QName getAsXMLQName(@Nonnull String sPrefix)
getAsXMLQName in interface IMicroQNamesPrefix - the namespace prefix to be used in the resulting object. May not be
null but maybe empty.public int compareTo(@Nonnull MicroQName o)
compareTo in interface Comparable<MicroQName>Copyright © 2014–2018 Philip Helger. All rights reserved.