oracle.cabo.share.xml
Class NamespaceURI
java.lang.Object
|
+--oracle.cabo.share.xml.NamespaceURI
- public final class NamespaceURI
- extends java.lang.Object
Utility class to parse a string of the form
namespacePrefix:name
Constructor Summary |
NamespaceURI(java.lang.String namespace,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
NamespaceURI
public NamespaceURI(java.lang.String namespace,
java.lang.String name)
getNamespace
public java.lang.String getNamespace()
- Returns:
- the namespace of this URI
getName
public java.lang.String getName()
- Returns:
- the name portion of this URI
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
create
public static NamespaceURI create(ExpressionContext context,
java.lang.String qname,
java.lang.String defaultURI)
- Create a NamespaceURI instance from a qualified name of the form
prefix:name
, using a default namespace uri for the
cases when no prefix is specified.
- Parameters:
pmapper
- the prefix to namespace mapperqname
- the qualified namedefaultURI
- the default namespace uri- Returns:
- a NamespaceURI instance
- Throws:
java.lang.IllegalArgumentException
- when prefix is not declared
create
public static NamespaceURI create(ParseContext context,
java.lang.String qname,
java.lang.String defaultURI)
- Deprecated. since 2.2.0. use
create(ExpressionContext,String,String)
- convinience for creating NamspaceURIs. this method calls
create(ExpressionContext, String,String)