|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.pkg.OdfName
public class OdfName
The class provides a simplified interface for XML names. The class defines a name for an XML node. It embraces XML NamespaceURI, XML prefix and XML localname.
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static OdfName newName(String name)
name
- of the XML node
public 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 static OdfName newName(String uri, String qname)
public String getUri()
public String getLocalName()
public String getPrefix()
public String getQName()
public String toString()
toString
in class Object
public boolean equals(Object obj)
equals
in class Object
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 hashCode()
hashCode
in class Object
public int compareTo(OdfName o)
compareTo
in interface Comparable<OdfName>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |