Package java.util

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


                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

                trace("Select correct Schema or load Settings file");
            } else {
                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
                        sSourceSchemas    = new String[1];
                        sSourceSchemas[0] = (String) result.firstElement();
                    } else {
                        sDestSchema = (String) result.firstElement();
                    }
                } else {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
View Full Code Here

                if (result.size() == 1) {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
                        sSourceSchemas    = new String[1];
                        sSourceSchemas[0] = (String) result.firstElement();
                    } else {
                        sDestSchema = (String) result.firstElement();
                    }
                } else {
                    if (iSelectionStep == Transfer.SELECT_SOURCE_SCHEMA) {
                        sSourceSchemas = null;
                    } else {
View Full Code Here

        } else {
            Vector cnValues = xname.getValues(X509Name.CN);
            if (cnValues.size() == 0) {
              log.info("No CN in DN: "+xname.toString());
            } else {
                ret = cnValues.firstElement().toString();          
                // If we have a CN with a normal name like "Test Testsson" we only want to
                // use the first part as the username
              int index = ret.indexOf(' ');
              if (index > 0) {
                ret = ret.substring(0, index);
View Full Code Here

 
  protected void writeSimpleTypeWithEnumerations() throws WrapperFault{
    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 ");
      if ("string".equals(baseType.getLocalPart())){
View Full Code Here

         * @return The value of the header.
         */
        public String getHeader(String name) {
            Vector values = (Vector)headers.get(name);
            if (values != null) {
                return (String)values.firstElement();
            }
            return null;
        }
       
        /**
 
View Full Code Here

                findJavaFileWithName(javaFileName, awlFileName,
                                    rootDirectories[index], components);
            }
            if (!components.isEmpty()) {
                // open the first one by default
                VirtualFile javaFile = (VirtualFile)components.firstElement();
                OpenFileDescriptor fd = new OpenFileDescriptor(project,javaFile);
                Editor newEditor = FileEditorManager.getInstance(project).
                                                     openTextEditor(fd,true);
                if (newEditor == null) {
                    showError("Can't open editor", project);
View Full Code Here

            Vector restrictionData = type.getEnumerationdata();
            if (restrictionData == null)
            {
                return;
            }
            TypeEntry baseEType = (TypeEntry) restrictionData.firstElement();
            QName baseType = baseEType.getQName();
            if (!CUtils.isSimpleType(baseType))
            {
                return;
            }
View Full Code Here

    }

    Vector events = decodeEvents(document);

    if (events.size() > 0) {
      return (LoggingEvent) events.firstElement();
    }

    return 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.