public class NameSpaceSymbTable extends Object
| Constructor and Description |
|---|
NameSpaceSymbTable()
Default constractor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addMapping(String prefix,
String uri,
Attr n)
Adds the mapping for a prefix.
|
Node |
addMappingAndRender(String prefix,
String uri,
Attr n)
Adds a definition and mark it as render.
|
Node |
addMappingAndRenderXNodeSet(String prefix,
String uri,
Attr n,
boolean outputNode)
Adds & gets(if needed) the attribute node that defines the binding for the prefix.
|
Attr |
getMapping(String prefix)
Gets the attribute node that defines the binding for the prefix.
|
Attr |
getMappingWithoutRendered(String prefix)
Gets a definition without mark it as render.
|
void |
getUnrenderedNodes(Collection 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.
|
public void getUnrenderedNodes(Collection result)
result - the list where to fill the unrendered xmlns definitions.public void outputNodePush()
public void outputNodePop()
public void push()
public void pop()
public Attr getMapping(String prefix)
prefix - the prefix to obtain the attribute.public Attr getMappingWithoutRendered(String prefix)
prefix - The prefix whose definition is neaded.public boolean addMapping(String prefix, String uri, Attr n)
prefix - the prefix of definitionuri - the Uri of the definitionn - the attribute that have the definitionpublic Node addMappingAndRender(String prefix, String uri, Attr n)
prefix - the prefix of definitionuri - the Uri of the definitionn - the attribute that have the definitionpublic Node addMappingAndRenderXNodeSet(String prefix, String uri, Attr n, boolean outputNode)
prefix - the prefix to obtain the attribute.outputNode - the container element is an output element.uri - the Uri of the definitionn - the attribute that have the definitionCopyright © 2005–2018 Oracle Corporation. All rights reserved.