org.odftoolkit.odfdom.pkg
public class OdfName extends Object implements Comparable<OdfName>
Modifier and Type | Method and Description |
---|---|
int |
compareTo(OdfName o)
Compares the by parameter given OdfName with this OdfName
|
boolean |
equals(Object obj) |
boolean |
equals(String namespaceUri,
String name) |
String |
getLocalName() |
String |
getPrefix() |
String |
getQName() |
String |
getUri() |
int |
hashCode() |
static OdfName |
newName(NamespaceName namespaceNamed,
String name)
Returns the OdfName for the given namespace and name.
|
static OdfName |
newName(OdfNamespace odfNamespace,
String name)
Returns the OdfName for the given namespace and name.
|
static OdfName |
newName(String name)
Returns the OdfName for the given namespace and name.
|
static OdfName |
newName(String uri,
String qname) |
String |
toString() |
public static OdfName newName(String name)
name
- of the XML nodepublic static OdfName newName(OdfNamespace odfNamespace, String name)
odfNamespace
- the namespace of the name to be createdname
- of the XML node. Can be both local or qualified name.public static OdfName newName(NamespaceName namespaceNamed, String name)
namespaceNamed
- represents a W3C Namespace Name. The interface NamespaceName
is often implemented by an enum.name
- of the XML node. Can be both local or qualified name.public String getUri()
public String getLocalName()
public String getPrefix()
public String getQName()
public String toString()
public boolean equals(String namespaceUri, String name)
namespaceUri
- of the XML node to be compared.name
- of the XML node to be compared. Can be qualifed name or localname.public int compareTo(OdfName o)
compareTo
in interface Comparable<OdfName>
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.