Examples of firstElement()


Examples of java.util.Vector.firstElement()

        Vector nestedRows = (Vector) fieldValue;
        if (nestedRows.isEmpty()) {
            return getObjectBuilder().createRecord(null);
        } else {
            // BUG#2667762 - If the tag was empty this could be a string of whitespace.
            if (!(nestedRows.firstElement() instanceof AbstractRecord)) {
                return getObjectBuilder().createRecord(null);
            }
            return (XMLRecord) nestedRows.firstElement();
        }
    }
View Full Code Here

Examples of java.util.Vector.firstElement()

        } else {
            // BUG#2667762 - If the tag was empty this could be a string of whitespace.
            if (!(nestedRows.firstElement() instanceof AbstractRecord)) {
                return getObjectBuilder().createRecord(null);
            }
            return (XMLRecord) nestedRows.firstElement();
        }
    }

    /**
    * INTERNAL:
 
View Full Code Here

Examples of java.util.Vector.firstElement()

     *
     * @param name The name of the required child <code>Configuration</code>.
     */
    public Configuration getConfiguration(String name) {
      Vector v=(Vector)this.children.get(name);
        if ((v!=null) && (v.size()>0)) return((Configuration)v.firstElement());
        return(null);
  }

    /**
     * Return an <code>Enumeration</code> of <code>Configuration</code> objects
View Full Code Here

Examples of java.util.Vector.firstElement()

      }

      if (pce.size() == 0)
         return;

      String encoding = ((HttpHeaderElement)pce.firstElement()).getName();
      if (encoding.equalsIgnoreCase("gzip") || encoding.equalsIgnoreCase("x-gzip"))
      {
         if (log.isDebugEnabled())
            log.debug("Pushing gzip-input-stream");
View Full Code Here

Examples of java.util.Vector.firstElement()

                lTable.repaint();
                trace("Select correct Catalog");
            } else {
                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = (String) result.firstElement();
                        sSourceSchemas = null;
                    } else {
                        sDestCatalog = (String) result.firstElement();
                        sDestSchema  = null;
                    }
View Full Code Here

Examples of java.util.Vector.firstElement()

                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = (String) result.firstElement();
                        sSourceSchemas = null;
                    } else {
                        sDestCatalog = (String) result.firstElement();
                        sDestSchema  = null;
                    }
                } else {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_CATALOG) {
                        sSourceCatalog = null;
View Full Code Here

Examples of javax.swing.DefaultListModel.firstElement()

    harness.checkPoint("firstElement()");
    DefaultListModel m1 = new DefaultListModel();
    m1.addElement("A");
    m1.addElement("B");
    m1.addElement("C");
    harness.check(m1.firstElement(), "A");

    m1.add(0, null);
    harness.check(m1.firstElement(), null);
   
    m1.clear();
View Full Code Here

Examples of javax.swing.DefaultListModel.firstElement()

    m1.addElement("B");
    m1.addElement("C");
    harness.check(m1.firstElement(), "A");

    m1.add(0, null);
    harness.check(m1.firstElement(), null);
   
    m1.clear();
    boolean pass = false;
    try
    {
View Full Code Here

Examples of javax.swing.DefaultListModel.firstElement()

   
    m1.clear();
    boolean pass = false;
    try
    {
      /* Object o = */ m1.firstElement();
    }
    catch (NoSuchElementException e)
    {
      pass = true;
    }
View Full Code Here

Examples of org.antlr.works.visualization.graphics.path.GPath.firstElement()

                    path.lastElement();
                    pathCurrentElementDidChange();
                    e.consume();
                    break;
                case KeyEvent.VK_DOWN:
                    path.firstElement();
                    pathCurrentElementDidChange();
                    e.consume();
                    break;

                case KeyEvent.VK_A:
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.