Class NameSpaceSymbTable
java.lang.Object
org.apache.xml.security.c14n.implementations.NameSpaceSymbTable
A stack based Symbol Table.
For speed reasons all the symbols are introduced in the same map, and at the same time in a list so it can be removed when the frame is pop back.
For speed reasons all the symbols are introduced in the same map, and at the same time in a list so it can be removed when the frame is pop back.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddMapping(String prefix, String uri, Attr n) Adds the mapping for a prefix.addMappingAndRender(String prefix, String uri, Attr n) Adds a definition and mark it as render.intgetLevel()getMapping(String prefix) Gets the attribute node that defines the binding for the prefix.getMappingWithoutRendered(String prefix) Gets a definition without mark it as render.voidgetUnrenderedNodes(Collection<Attr> result) Get all the unrendered nodes in the name space.(package private) final voidvoidPop a frame for visible namespace.voidPush a frame for visible namespace.voidpop()Pop a frame.voidpush()Push a frame for a node.voidremoveMapping(String prefix) voidremoveMappingIfNotRender(String prefix) booleanremoveMappingIfRender(String prefix)
-
Field Details
-
XMLNS
- See Also:
-
initialMap
-
symb
The map betwen prefix-> entry table. -
level
-
cloned
private boolean cloned
-
-
Constructor Details
-
NameSpaceSymbTable
public NameSpaceSymbTable()Default constractor
-
-
Method Details
-
getUnrenderedNodes
Get all the unrendered nodes in the name space. For Inclusive rendering- Parameters:
result- the list where to fill the unrendered xmlns definitions.
-
outputNodePush
public void outputNodePush()Push a frame for visible namespace. For Inclusive rendering. -
outputNodePop
public void outputNodePop()Pop a frame for visible namespace. -
push
public void push()Push a frame for a node. Inclusive or Exclusive. -
pop
public void pop()Pop a frame. Inclusive or Exclusive. -
needsClone
final void needsClone() -
getMapping
-
getMappingWithoutRendered
-
addMapping
-
addMappingAndRender
Adds a definition and mark it as render. For inclusive c14n.- Parameters:
prefix- the prefix of definitionuri- the Uri of the definitionn- the attribute that have the definition- Returns:
- the attr to render, null if there is no need to render
-
getLevel
public int getLevel() -
removeMapping
-
removeMappingIfNotRender
-
removeMappingIfRender
-