Home | History | Annotate | Download | only in serializer

Lines Matching defs:Stack

31  * prefix/uri/depth triplets are pushed on a stack pushed on a stack. The depth
47 * "def" is pushed on the stack with depth 1.
52 * stack. Of course popNamespaces(2) would pop anything with depth 2 or
55 * So prefix/uri pairs are pushed and poped off the stack as elements are
57 * are on the stack and a prefix can be found given a uri, or a uri can be found
73 * Each entry (prefix) in this hashtable points to a Stack of URIs
74 * This table maps a prefix (String) to a Stack of NamespaceNodes.
75 * All Namespace nodes in that retrieved stack have the same prefix,
76 * though possibly different URI's or depths. Such a stack must have
77 * mappings at deeper depths push later on such a stack. Mappings pushed
78 * earlier on the stack will have smaller values for MappingRecord.m_declarationDepth.
83 * This stack is used as a convenience.
89 * can be removed from the appropriate prefix stack.
92 * removed at the same time by using this stack to
95 private Stack m_nodeStack = new Stack();
119 Stack stack;
122 stack = createPrefixStack(EMPTYSTRING);
123 stack.push(nn);
127 stack = createPrefixStack(XML_PREFIX);
128 stack.push(nn);
141 final Stack stack = getPrefixStack(prefix);
142 if (stack != null && !stack.isEmpty()) {
143 uri = ((MappingRecord) stack.peek()).m_uri;
152 final Stack stack = (Stack) m_namespaces.get(prefix);
153 return stack != null && !stack.isEmpty() ?
154 ((MappingRecord) stack.peek()) : null;
210 Stack stack;
211 if ((stack = getPrefixStack(prefix)) != null)
213 stack.pop();
233 Stack stack;
234 // Get the stack that contains URIs for the specified prefix
235 if ((stack = (Stack) m_namespaces.get(prefix)) == null)
237 m_namespaces.put(prefix, stack = new Stack());
240 if (!stack.empty())
242 MappingRecord mr = (MappingRecord)stack.peek();
244 // If the same prefix/uri mapping is already on the stack
252 stack.push(map);
280 // pop the node from the stack
283 Stack prefixStack = getPrefixStack(prefix);
288 // need to check that the prefix stack still has
333 clone.m_nodeStack = (NamespaceMappings.Stack) m_nodeStack.clone();
355 * one stack rather than on 3 separate stacks.
370 * Rather than using java.util.Stack, this private class
374 private class Stack {
380 NamespaceMappings.Stack clone = new NamespaceMappings.Stack();
392 public Stack()
453 * A more type-safe way to get a stack of prefix mappings
458 private Stack getPrefixStack(String prefix) {
459 Stack fs = (Stack) m_namespaces.get(prefix);
467 private Stack createPrefixStack(String prefix)
469 Stack fs = new Stack();