Package java.util

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


                  if (! isAscending[i])
                    ascIndex = false;
                  break;
                }
              }
              FromBaseTable fbt = (FromBaseTable)tableVector.firstElement();
              MaxMinAggregateDefinition temp = (MaxMinAggregateDefinition)ad;

              /*  MAX   ASC      NULLABLE
                             *  ----  ----------
               *  TRUE  TRUE      TRUE/FALSE  =  Special Last Key Scan (ASC Index Last key with null skips)
View Full Code Here

  public void test_ConstructorLjava_lang_String() {
    // Test for method java.util.NoSuchElementException(java.lang.String)

    try {
      Vector v = new Vector();
      v.firstElement();
    } catch (NoSuchElementException e) {
      return;
    }
    // if we make it to here, assert a fail
    fail("Failed to catch Exception");
View Full Code Here

        if ( "Vector".equals( arg.getClass().getSimpleName() ) ) {

            Vector vctr = (Vector) arg;

            String className = vctr.firstElement().getClass().getSimpleName();

            System.out.println( "Got a Vector of: " + vctr.firstElement().getClass().getSimpleName() );

            if ( ( "ChineseCharacterProperties".equals( className) )
                            ||
View Full Code Here

            Vector vctr = (Vector) arg;

            String className = vctr.firstElement().getClass().getSimpleName();

            System.out.println( "Got a Vector of: " + vctr.firstElement().getClass().getSimpleName() );

            if ( ( "ChineseCharacterProperties".equals( className) )
                            ||
                 ( "ChineseWordProperties".equals( className) ) ) {
View Full Code Here

            if ( ( "ChineseCharacterProperties".equals( className) )
                            ||
                 ( "ChineseWordProperties".equals( className) ) ) {

                System.out.println( "Got a: " + vctr.firstElement().getClass().getSimpleName() );

                Vector<ChineseElementProperties> chineseElementPropertiesGroup
                    = (Vector<ChineseElementProperties>) arg;

                init( chineseElementPropertiesGroup );
View Full Code Here

        if ( "Vector".equals( arg.getClass().getSimpleName() ) ) {

            Vector vctr = (Vector) arg;

            String className = vctr.firstElement().getClass().getSimpleName();

            System.out.println( "  (2) Got a Vector of: " + className );

            if ( "CharacterWordXRF".equals( className ) ) {
View Full Code Here

        try
        {
            Vector restrictionData = type.getEnumerationdata();
            if (restrictionData == null)
                return;
            TypeEntry baseEType = (TypeEntry) restrictionData.firstElement();
            QName baseType = baseEType.getQName();
            if (!CUtils.isSimpleType(baseType))
                return;
            String langTypeName = CUtils.getclass4qname(baseType);
            writer.write("typedef ");
View Full Code Here

                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

                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

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.