| java.lang.Object com.sun.xml.bind.v2.runtime.output.NamespaceContextImpl
NamespaceContextImpl | final public class NamespaceContextImpl implements NamespaceContext2(Code) | | Keeps track of in-scope namespace bindings for the marshaller.
This class is also used to keep track of tag names for each element
for the marshaller (for the performance reason.)
author: Kohsuke Kawaguchi |
Inner Class :final public class Element | |
Field Summary | |
public boolean | collectionMode True to allow new URIs to be declared. |
collectionMode | public boolean collectionMode(Code) | | True to allow new URIs to be declared. False otherwise.
|
count | public int count()(Code) | | Number of total bindings declared.
|
declareNsUri | public int declareNsUri(String uri, String preferedPrefix, boolean requirePrefix)(Code) | | Returns the prefix index to the specified URI.
This method allocates a new URI if necessary.
|
getCurrent | public Element getCurrent()(Code) | | |
getNamespaceURI | public String getNamespaceURI(int prefixIndex)(Code) | | |
getNamespaceURI | public String getNamespaceURI(String prefix)(Code) | | Gets the namespace URI that is bound to the specified prefix.
nullif the prefix is unbound. |
getPrefix | public String getPrefix(int prefixIndex)(Code) | | Gets the prefix from a prefix index.
The behavior is undefined if the index is out of range.
|
getPrefix | public String getPrefix(String uri)(Code) | | Returns the prefix of the specified URI,
or null if none exists.
|
getPrefixIndex | public int getPrefixIndex(String uri)(Code) | | Returns the prefix index of the specified URI.
It is an error if the URI is not declared.
|
reset | public void reset()(Code) | | |
|
|