public class XmlName extends Object
Constructor and Description |
---|
XmlName(String localName,
String namespaceURI)
Instantiates a new instance of an XmlName.
|
Modifier and Type | Method and Description |
---|---|
static XmlName |
convertFrom(String name)
Factory method that creates a new XmlName for the given local name.
|
boolean |
equals(Object o) |
static boolean |
equals(String name,
XmlName xmlName)
Convenience method that compares a given (unqualified) name to the given XmlName.
|
static boolean |
equals(XmlName name,
XmlName name1)
Checks for equality of the two given XmlNames.
|
static XmlName |
get(String name,
String nameSpace)
Factory method that creates a new XmlName from the given arguments.
|
String |
getLocalName()
Returns the local (unqualified) name of this
XmlName . |
String |
getNamespaceName()
Returns the URI of the namespace of this
XmlName . |
int |
hashCode() |
String |
toString() |
public static XmlName convertFrom(String name)
null
.name
- the local name of an XML element or attribute.public static boolean equals(String name, XmlName xmlName)
name
- The name to match.xmlName
- The XmlName to match.public static boolean equals(XmlName name, XmlName name1)
equals(Object)
name
- The first XmlName.name1
- The second XmlName.public static XmlName get(String name, String nameSpace)
name
- the local (unqualified) name of an XML element or attribute.nameSpace
- the namespace of the XML element or attribute.public String getLocalName()
XmlName
.public String getNamespaceName()
XmlName
.