| java.lang.Object com.sun.xml.wss.impl.transform.NameSpaceSymbTable
NameSpaceSymbTable | public class NameSpaceSymbTable (Code) | | A stack based Symble 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.
author: Raul Benito |
level | List level(Code) | | The stacks for removing the definitions when doing pop.
|
nameSpaces | int nameSpaces(Code) | | The level of nameSpaces (for Inclusive visibility).
|
NameSpaceSymbTable | public NameSpaceSymbTable()(Code) | | Default constractor
|
addMapping | public boolean addMapping(String prefix, String uri, Attr n)(Code) | | Adds the mapping for a prefix.
Parameters: prefix - the prefix of definition Parameters: uri - the Uri of the definition Parameters: n - the attribute that have the definition true if there is already defined. |
addMappingAndRender | public Node addMappingAndRender(String prefix, String uri, Attr n)(Code) | | Adds a definition and mark it as render.
For inclusive c14n.
Parameters: prefix - the prefix of definition Parameters: uri - the Uri of the definition Parameters: n - the attribute that have the definition the attr to render, null if there is no need to render |
addMappingAndRenderXNodeSet | public Node addMappingAndRenderXNodeSet(String prefix, String uri, Attr n, boolean outputNode)(Code) | | Adds & gets(if needed) the attribute node that defines the binding for the prefix.
Take on account if the rules of rendering in the inclusive c14n.
For inclusive c14n.
Parameters: prefix - the prefix to obtain the attribute. Parameters: outputNode - the container element is an output element. Parameters: uri - the Uri of the definition Parameters: n - the attribute that have the definition null if there is no need to render the prefix. Otherwise the node ofdefinition. |
getMapping | public Attr getMapping(String prefix)(Code) | | Gets the attribute node that defines the binding for the prefix.
Parameters: prefix - the prefix to obtain the attribute. null if there is no need to render the prefix. Otherwise the node ofdefinition. |
getMappingWithoutRendered | public Attr getMappingWithoutRendered(String prefix)(Code) | | Gets a definition without mark it as render.
For render in exclusive c14n the namespaces in the include prefixes.
Parameters: prefix - The prefix whose definition is neaded. the attr to render, null if there is no need to render |
getUnrenderedNodes | public void getUnrenderedNodes(Collection result)(Code) | | Get all the unrendered nodes in the name space.
For Inclusive rendering
Parameters: result - the list where to fill the unrendered xmlns definitions. |
needsClone | final void needsClone()(Code) | | |
outputNodePop | public void outputNodePop()(Code) | | Pop a frame for visible namespace.
|
outputNodePush | public void outputNodePush()(Code) | | Push a frame for visible namespace.
For Inclusive rendering.
|
pop | public void pop()(Code) | | Pop a frame.
Inclusive or Exclusive.
|
push | public void push()(Code) | | Push a frame for a node.
Inclusive or Exclusive.
|
|
|