| org.netbeans.modules.xslt.tmap.model.api.ExNamespaceContext
All known Subclasses: org.netbeans.modules.xslt.tmap.model.impl.ExNamespaceContextImpl,
ExNamespaceContext | public interface ExNamespaceContext extends NamespaceContext(Code) | | author: ads author: Vitaly Bychkov version: 1.0 |
addNamespace | String addNamespace(String uri) throws InvalidNamespaceException(Code) | | Adds new namespace to the context. If namesapce already exists then
nothing will happen. One of its prefix will be return. If namespace
doesn't exist then it will be added with generated automatically prefix
and this prefix will be return. This namespace could be added at any
scope that contains current element. This is up to implementation to
determine place where namespace will be added.
Parameters: uri - Uri of namespace. Prefix for added namespace. throws: InvalidNamespaceException - Will be thrown if uri is not acceptable for namespace. |
addNamespace | void addNamespace(String prefix, String uri) throws InvalidNamespaceException(Code) | | Adds new namespace to the context. Prefix passed as argument will be used
for namespace. If such prefix already exist with other uri then
InvalidNamespaceException will be thrown. If namespace declaration with
specified prefix already exists then nothing will happen. If such prefix
doesn't exist then new namespace declaration will be added. See previus
method about scope for adding namespace.
Parameters: prefix - Prefix that suppose to be set for namespace uri. Parameters: uri - Namespace uri that will be added in to namespaces declaration. throws: InvalidNamespaceException - Will be thrown if uri is not acceptable for namespace, badprefix is specified or prefix already exist. |
|
|