Package java.util

Examples of java.util.Stack.empty()


                stk.push(bItem);
              }
              iLoop_RowsDone++;
            }

            while (stk.empty() == false) {
              bItem = (OQItem) stk.pop();
              topicItems.addElement (bItem);
            }

          }
View Full Code Here


        StringBuffer buff = new StringBuffer();
        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
View Full Code Here

        // is a depth-first traversal.
           
        Stack schemasToProcess = new Stack();
        schemasToProcess.push(fRoot);
      
        while (!schemasToProcess.empty()) {           
            XSDocumentInfo currSchemaDoc =
                (XSDocumentInfo)schemasToProcess.pop();
            Element currDoc = currSchemaDoc.fSchemaElement;
            if(DOMUtil.isHidden(currDoc, fHiddenNodes)){
                // must have processed this already!
View Full Code Here

        // hidden for a second time; so make them all visible again
        // first!
        setSchemasVisible(fRoot);
        Stack schemasToProcess = new Stack();
        schemasToProcess.push(fRoot);
        while (!schemasToProcess.empty()) {
            XSDocumentInfo currSchemaDoc =
                (XSDocumentInfo)schemasToProcess.pop();
            Element currDoc = currSchemaDoc.fSchemaElement;
      
            SchemaGrammar currSG = fGrammarBucket.getGrammar(currSchemaDoc.fTargetNamespace);
View Full Code Here

        StringBuffer buff = new StringBuffer();
        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
View Full Code Here

        StringBuffer buff = new StringBuffer();
        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
View Full Code Here

        StringBuffer buff = new StringBuffer();
        while (parent != null) {
            stk.push(parent.getName());
            parent = parent.getParent();
        }
        while (!stk.empty()) {
            buff.append("/" + stk.pop());
        }
        buff.append(getName());
        namingContextName = buff.toString();
        }
View Full Code Here

                final StringWriter s0 = new StringWriter();
                final StringWriter s1 = new StringWriter();
                final PrintWriter p0 = new PrintWriter(s0);
                final PrintWriter p1 = new PrintWriter(s1);
                int j = 0;
                while (!msg.empty()) {
                    p0.println("    <<< " + pad(j) + msg.pop());
                    p1.println("    >>> " + pad(j) + msg.pop());
                    j += 4;
                }
                out.println(s0.toString());
View Full Code Here

  if ((stack = (Stack)_namespaces.get(prefix)) == null) {
      stack = new Stack();
      _namespaces.put(prefix, stack);
  }
  // Quit now if the URI the prefix currently maps to is the same as this
  if (!stack.empty() && uri.equals(stack.peek())) return;
  // Put this URI on top of the stack for this prefix
  stack.push(uri);

  _prefixStack.push(prefix);
  _nodeStack.push(new Integer(_depth));
View Full Code Here

  // Get the stack that contains URIs for the specified prefix
  if ((stack = (Stack)_namespaces.get(prefix)) == null) {
      _namespaces.put(prefix, stack = new Stack());
  }

  if (!stack.empty() && uri.equals(stack.peek())) {
      return false;
  }

  stack.push(uri);
  _prefixStack.push(prefix);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.