public class SchemaNamespaceSupport extends NamespaceSupport
NamespaceSupport.Prefixes
fContext, fCurrentContext, fNamespace, fNamespaceSize, fPrefixes
XML_URI, XMLNS_URI
Constructor and Description |
---|
SchemaNamespaceSupport(Element schemaRoot,
SymbolTable symbolTable) |
SchemaNamespaceSupport(SchemaNamespaceSupport nSupport) |
Modifier and Type | Method and Description |
---|---|
String[] |
getEffectiveLocalContext()
This method returns an array of Strings, as would be stored in
a NamespaceSupport object.
|
String |
getURI(String prefix)
Look up a prefix and get the currently-mapped Namespace URI.
|
void |
makeGlobal() |
void |
setEffectiveContext(String[] namespaceDecls)
This method takes a set of Strings, as stored in a
NamespaceSupport object, and "fools" the object into thinking
that this is one unified context.
|
containsPrefix, declarePrefix, getAllPrefixes, getDeclaredPrefixAt, getDeclaredPrefixCount, getPrefix, popContext, pushContext, reset
public SchemaNamespaceSupport(Element schemaRoot, SymbolTable symbolTable)
public SchemaNamespaceSupport(SchemaNamespaceSupport nSupport)
public void setEffectiveContext(String[] namespaceDecls)
public String[] getEffectiveLocalContext()
public void makeGlobal()
public String getURI(String prefix)
NamespaceContext
This method looks up the prefix in the current context. If no mapping is found, this methods will continue lookup in the parent context(s). Use the empty string ("") for the default Namespace.
getURI
in interface NamespaceContext
getURI
in class NamespaceSupport
prefix
- The prefix to look up.NamespaceContext.getURI(String)
Copyright © 2017 JBoss by Red Hat. All rights reserved.