Package java.util

Examples of java.util.Stack.elementAt()


            Stack webflowStack = navigationManager.getWebflowStack();

            log.debug("***** Webflow stack: START *****");

            for (int i = 0; i < webflowStack.size(); i++) {
                Webflow webflow = (Webflow) webflowStack.elementAt(i);
                log.debug("Webflow " + webflow.getName() + " owns " + webflow.getOwnedObjectSet());
                sessionSet.removeAll(webflow.getOwnedObjectSet());

                Stack pageStack = webflow.getPageStack();

View Full Code Here


            Stack webflowStack = manager.getWebflowStack();

            for (int i = webflowStack.size() - 1; i >= 0; i--) {
                count++;

                Webflow webflow = (Webflow) webflowStack.elementAt(i);
                String wfBgColor = getColor(webflow.getName(), i);

                buffer2.append("<tr valign='bottom'><td>\n");
                buffer2.append("<table bgcolor='");
                buffer2.append(wfBgColor);
View Full Code Here

                Stack pageStack = webflow.getPageStack();

                for (int j = pageStack.size() - 1; j >= 0; j--) {
                    count++;

                    Page page = (Page) pageStack.elementAt(j);

                    buffer2.append("<tr><td align='center' bgcolor='");
                    buffer2.append(pageColor);
                    buffer2.append("' bordercolor='#000000' >\n");
                    buffer2.append("Page <b>");
View Full Code Here

   *
   */
  private short registerPrefix(String prefix) {
      Stack stack = (Stack)_nsPrefixes.get(prefix);
      if (stack != null) {
    Integer obj = (Integer)stack.elementAt(0);
    return (short)obj.intValue();
      }
      return 0;
  }

View Full Code Here

      _prefixArray = new String[_prefixCount];
      Enumeration p = _nsPrefixes.keys();
      while (p.hasMoreElements()) {
    final String prefix = (String)p.nextElement();
    final Stack stack = (Stack)_nsPrefixes.get(prefix);
    final Integer I = (Integer)stack.elementAt(0);
    _prefixArray[I.shortValue()] = prefix;
      }
  }
 
  /**
 
View Full Code Here

      }
      else {
    _nextSibling2[attr-1] = attr;
      }
      _nextSibling2[attr] = DOM.NULL;
      _prefix2[attr] = ((Integer) stack.elementAt(0)).shortValue();
  }

  private Stack definePrefixAndUri(String prefix, String uri)
      throws SAXException
  {
View Full Code Here

    Hashtable attributes = new Hashtable(17);

    String victimXID = null;

    for (int i = 0; i < chain.size(); i++) {
      Object space = chain.elementAt(i);
      if (space instanceof List) {
        List grants = (List) space;

        if (grants.size() != 0) {
View Full Code Here

            if (i > 1) {
                // not before the filesystem root and not after it, since root
                // already contains one
                sb.append(File.separatorChar);
            }
            sb.append(s.elementAt(i));
        }
        return new File(sb.toString());
    }

    /**
 
View Full Code Here

    Hashtable attributes = new Hashtable(17);

    String victimXID = null;

    for (int i = 0; i < chain.size(); i++) {
      Object space = chain.elementAt(i);
      if (space instanceof List) {
        List grants = (List) space;

        if (grants.size() != 0) {
View Full Code Here

        m_formatSpecification = new PatternRun[ elementCount ];

        for( int i = 0; i < elementCount; i++ )
        {
            m_formatSpecification[ i ] = (PatternRun) stack.elementAt( i );
        }
    }

    /**
     * Set the string description that the format is extracted from.
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.