|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.pkg.OdfNamespace
public class OdfNamespace
Class wrapping the XML Namespace URI and XML Namespace prefix as a single entity.
| Method Summary | |
|---|---|
int |
compareTo(OdfNamespace namespace)
|
boolean |
equals(Object obj)
|
static String |
getLocalPart(String qname)
|
static OdfNamespace |
getNamespace(String uri)
Returns the namespace for the given uri. |
String |
getPrefix()
|
static String |
getPrefixPart(String qname)
|
String |
getUri()
|
int |
hashCode()
|
static OdfNamespace |
newNamespace(NamespaceName name)
Returns the OdfNamespace for the given name. |
static OdfNamespace |
newNamespace(String prefix,
String uri)
Returns the OdfNamespace for the given name. |
static String[] |
splitQName(String qname)
Splits the XML Qname into the local name and the prefix. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static OdfNamespace newNamespace(NamespaceName name)
name - represents a W3C Namespace Name. The interface NamespaceName is often implemented by an enum.
public static OdfNamespace newNamespace(String prefix,
String uri)
uri - identifying the namespace.
public static OdfNamespace getNamespace(String uri)
uri - identifying the namespace.
public String getPrefix()
getPrefix in interface NamespaceNamepublic String getUri()
getUri in interface NamespaceNamepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
public static String[] splitQName(String qname)
throws IllegalArgumentException
qname - is the qualified name to be splitted.
IllegalArgumentException - if no qualified name was given.public static String getPrefixPart(String qname)
qname - is the qualified name to be splitted.
IllegalArgumentException - if no qualified name was given.public static String getLocalPart(String qname)
qname - is the qualified name to be splitted.
IllegalArgumentException - if no qualified name was given.public int compareTo(OdfNamespace namespace)
compareTo in interface Comparable<OdfNamespace>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||