public class NameSpaceSymbTable
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) boolean |
cloned |
(package private) static SymbMap |
initialMap |
(package private) java.util.List |
level
The stacks for removing the definitions when doing pop.
|
(package private) int |
nameSpaces
The level of nameSpaces (for Inclusive visibility).
|
(package private) SymbMap |
symb
The map betwen prefix-> entry table.
|
(package private) static java.lang.String |
XMLNS |
| Constructor and Description |
|---|
NameSpaceSymbTable()
Default constractor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMapping(java.lang.String prefix,
java.lang.String uri,
Attr n)
Adds the mapping for a prefix.
|
Node |
addMappingAndRender(java.lang.String prefix,
java.lang.String uri,
Attr n)
Adds a definition and mark it as render.
|
int |
getLevel() |
Attr |
getMapping(java.lang.String prefix)
Gets the attribute node that defines the binding for the prefix.
|
Attr |
getMappingWithoutRendered(java.lang.String prefix)
Gets a definition without mark it as render.
|
void |
getUnrenderedNodes(java.util.Collection result)
Get all the unrendered nodes in the name space.
|
(package private) void |
needsClone() |
void |
outputNodePop()
Pop a frame for visible namespace.
|
void |
outputNodePush()
Push a frame for visible namespace.
|
void |
pop()
Pop a frame.
|
void |
push()
Push a frame for a node.
|
void |
removeMapping(java.lang.String prefix) |
void |
removeMappingIfNotRender(java.lang.String prefix) |
boolean |
removeMappingIfRender(java.lang.String prefix) |
SymbMap symb
int nameSpaces
java.util.List level
boolean cloned
static final java.lang.String XMLNS
static final SymbMap initialMap
public void getUnrenderedNodes(java.util.Collection result)
result - the list where to fill the unrendered xmlns definitions.public void outputNodePush()
public void outputNodePop()
public void push()
public void pop()
final void needsClone()
public Attr getMapping(java.lang.String prefix)
prefix - the prefix to obtain the attribute.public Attr getMappingWithoutRendered(java.lang.String prefix)
prefix - The prefix whose definition is neaded.public boolean addMapping(java.lang.String prefix,
java.lang.String uri,
Attr n)
prefix - the prefix of definitionuri - the Uri of the definitionn - the attribute that have the definitionpublic Node addMappingAndRender(java.lang.String prefix, java.lang.String uri, Attr n)
prefix - the prefix of definitionuri - the Uri of the definitionn - the attribute that have the definitionpublic int getLevel()
public void removeMapping(java.lang.String prefix)
public void removeMappingIfNotRender(java.lang.String prefix)
public boolean removeMappingIfRender(java.lang.String prefix)