Package com.helger.xml.microdom
Class MicroQName
- java.lang.Object
-
- com.helger.xml.microdom.MicroQName
-
- All Implemented Interfaces:
com.helger.commons.compare.IComparable<IMicroQName>,IMicroQName,Serializable,Comparable<IMicroQName>
@Immutable public final class MicroQName extends Object implements IMicroQName
Represents a simple qualified name. A combination of namespace URI and local name.- Author:
- Philip Helger
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MicroQName(String sName)MicroQName(String sNamespaceURI, String sName)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)StringgetName()StringgetNamespaceURI()Get the namespace URIinthashCode()StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.helger.commons.compare.IComparable
isEQ, isGE, isGT, isLE, isLT, isNE
-
Methods inherited from interface com.helger.xml.microdom.IMicroQName
compareTo, getAsXMLQName, getAsXMLQName, hasNamespaceURI, hasNamespaceURI, hasNoNamespaceURI
-
-
-
-
Method Detail
-
getNamespaceURI
@Nullable public String getNamespaceURI()
Description copied from interface:IMicroQNameGet the namespace URI- Specified by:
getNamespaceURIin interfaceIMicroQName- Returns:
- May be
nullif no namespace URI is present.
-
getName
@Nonnull @Nonempty public String getName()
- Specified by:
getNamein interfaceIMicroQName- Returns:
- The local name without the namespace URI or the prefix. Never
null.
-
-