public class NameSpaceSymbTable
extends java.lang.Object
Constructor and Description |
---|
NameSpaceSymbTable()
Default constractor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addMapping(java.lang.String prefix,
java.lang.String uri,
org.w3c.dom.Attr n)
Adds the mapping for a prefix.
|
org.w3c.dom.Node |
addMappingAndRender(java.lang.String prefix,
java.lang.String uri,
org.w3c.dom.Attr n)
Adds a definition and mark it as render.
|
int |
getLevel() |
org.w3c.dom.Attr |
getMapping(java.lang.String prefix)
Gets the attribute node that defines the binding for the prefix.
|
org.w3c.dom.Attr |
getMappingWithoutRendered(java.lang.String prefix)
Gets a definition without mark it as render.
|
void |
getUnrenderedNodes(java.util.Collection<org.w3c.dom.Attr> result)
Get all the unrendered nodes in the name space.
|
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) |
public void getUnrenderedNodes(java.util.Collection<org.w3c.dom.Attr> result)
result
- the list where to fill the unrendered xmlns definitions.public void outputNodePush()
public void outputNodePop()
public void push()
public void pop()
public org.w3c.dom.Attr getMapping(java.lang.String prefix)
prefix
- the prefix to obtain the attribute.public org.w3c.dom.Attr getMappingWithoutRendered(java.lang.String prefix)
prefix
- The prefix whose definition is neaded.public boolean addMapping(java.lang.String prefix, java.lang.String uri, org.w3c.dom.Attr n)
prefix
- the prefix of definitionuri
- the Uri of the definitionn
- the attribute that have the definitionpublic org.w3c.dom.Node addMappingAndRender(java.lang.String prefix, java.lang.String uri, org.w3c.dom.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)