Package java.util

Examples of java.util.Vector.lastElement()


                     
            // get all catalogs objects used for the "catalog path"
            Vector catalogPath = this.getCmsManager().getCatalogs(fromcatalogName, tocatalogName);
           
            // get the catalog selected in the velocity template
            Catalog catalog = (Catalog) catalogPath.lastElement();
            // Retrieve catalog items
            this.getCmsManager().populateCatalog(catalog,true,true,1);
                                   
            // Store the cataloPath collection and the catalog into the portlet session for performance reason
            // (can be used by the customizer without a second retrieve in the cms repository          
View Full Code Here


        }

        // Assume that the last element is the page name
        if (tokens.size() > 0)
        {
            result.setName((String) tokens.lastElement());
        }

        // Based on the number of path elements set the other profile attributes
        switch (tokens.size())
        {
View Full Code Here

        }

        // Assume that the last element is the page name
        if (tokens.size() > 0)
        {
            result.setName((String) tokens.lastElement());
        }

        // Based on the number of path elements set the other profile attributes
        switch (tokens.size())
        {
View Full Code Here

        }

        // Assume that the last element is the page name
        if (tokens.size() > 0)
        {
            result.setName((String) tokens.lastElement());
        }

        // Based on the number of path elements set the other profile attributes
        switch (tokens.size())
        {
View Full Code Here

        }

        // Assume that the last element is the page name
        if (tokens.size() > 0)
        {
            result.setName((String) tokens.lastElement());
        }

        // Based on the number of path elements set the other profile attributes
        switch (tokens.size())
        {
View Full Code Here

        }

        // Assume that the last element is the page name
        if (tokens.size() > 0)
        {
            result.setName((String) tokens.lastElement());
        }

        // Based on the number of path elements set the other profile attributes
        switch (tokens.size())
        {
View Full Code Here

                    // The above chars can be part of a URL.  For example
                    // perl scripts use &.  However, we cannot include
                    // them in the wordChars() range of chars, since
                    // the single quote is between them and the rest of the
                    // chars. So we have to process them by hand.
                    partialarg = ((String) argvector.lastElement()) + (char) c;
                    argvector.removeElementAt(argvector.size() - 1);
                    break;

                case '"':
                case '\'':
View Full Code Here

        for ( int p=0; p<pseudoVector.size(); p++ )
        {
          pseudoNode.addChild((PQNode)pseudoVector.elementAt(p), false);
        }
        pseudoNode.getEndMostChildren().addPQNode((PQNode)pseudoVector.firstElement());
        pseudoNode.getEndMostChildren().addPQNode((PQNode)pseudoVector.lastElement());
      }
      else
      {
        throw new Exception("*** ERROR no starting blocked node could be found to add to a new pseudonode!");
      }
View Full Code Here

        stNode = (STNodeEx)nodesInStOrder.elementAt(i);
        ((PQNodeEx)stNode.getRef().getExtender()).setStNumber(stNode.getStNumber());
        nodesInStOrder.setElementAt(stNode.getRef().getExtender(), i);
      }

      tNode = (PQNodeEx)nodesInStOrder.lastElement();
      PQNodeEx currentNode = (PQNodeEx)nodesInStOrder.firstElement();
      upwardEdges.addElement(new Vector());
      enumEdges = currentNode.incidentEdges().elements();
      while ( enumEdges.hasMoreElements() )
      {
View Full Code Here

                    rpmCommandArray[3] = "%{RELEASE}\\n";                   
                }

                Vector releaseVector = new Vector();
                returnValue = ExecuteProcess.executeProcessReturnVector(rpmCommandArray, releaseVector, returnErrorVector);
                String release = (String) releaseVector.lastElement();

                log = rpmCommand + "<br><b>Returns: " + release + "</b><br>";
                LogManager.addCommandsLogfileComment(log);

                isOlder = helper.compareVersionAndRelease(version, release, packageData, checkIfInstalledIsOlder);
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.