|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1XmlNamespaceCtxt
public class Asn1XmlNamespaceCtxt
Represents a mapping between namespaces and prefixes. A prefix may map only to a single namespace. A namespace may be bound to multiple prefixes. The default namespace is mapped by DEFAULT_NS_PREFIX. By default, the default namespace is NULL_NS_URI.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_NS_PREFIX
|
static java.lang.String |
NULL_NS_URI
|
Constructor Summary | |
---|---|
Asn1XmlNamespaceCtxt()
|
Method Summary | |
---|---|
java.lang.String |
addNamespace(java.lang.String namespaceURI,
java.lang.String prefix)
Add (or replace) a namespace mapping. |
java.lang.String |
addUniquePrefix(java.lang.String namespaceURI)
Map a unique prefix for the given namespace. |
java.lang.String |
getExistingPrefix(java.lang.String namespaceURI)
Return a prefix for the given namespace URI. |
java.lang.String |
getNamespaceURI(java.lang.String prefix)
Return the namespace URI that the given prefix is mapped to. |
java.lang.String |
getPrefix(java.lang.String namespaceURI)
Return a prefix for the given namespace URI. |
boolean |
isDefaultNamespaceURI(java.lang.String namespaceURI)
Return true if the given namespace is currently the default namespace (ie, DEFAULT_NS_PREFIX is mapped to this URI) |
java.util.Set |
prefixes()
Return an unmodifiable Set of all mapped prefixes |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String DEFAULT_NS_PREFIX
public static final java.lang.String NULL_NS_URI
Constructor Detail |
---|
public Asn1XmlNamespaceCtxt()
Method Detail |
---|
public java.lang.String addNamespace(java.lang.String namespaceURI, java.lang.String prefix)
namespaceURI
- prefix
- public java.lang.String addUniquePrefix(java.lang.String namespaceURI)
public java.lang.String getExistingPrefix(java.lang.String namespaceURI)
namespaceURI
-
public java.lang.String getNamespaceURI(java.lang.String prefix)
prefix
- public java.lang.String getPrefix(java.lang.String namespaceURI)
namespaceURI
-
public boolean isDefaultNamespaceURI(java.lang.String namespaceURI)
namespaceURI
-
public java.util.Set prefixes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |