Package java.util

Examples of java.util.Hashtable.elements()


      return;
   
   
    Hashtable hpps = getClassesFromProperties();
    HierarchyPropertyParser hpp = null;
    Enumeration enm = hpps.elements();
   
    try{
      while (enm.hasMoreElements()) {
        hpp = (HierarchyPropertyParser) enm.nextElement();
        if(hpp.depth() > 0) {   
View Full Code Here


          if(composite_context.containsKey(cn)){
            NamingContext nc  =(NamingContext)composite_context.get(cn);
            ((ContextRecord)recor).setId(nc.getId());
          }       
        }
        Enumeration enumContext = composite_context.elements();
        while(enumContext.hasMoreElements()) {
          NamingContext nc  =(NamingContext)enumContext.nextElement();
          getServerImpl().storeNamingContext(nc);
        }
      }
View Full Code Here

                + cat.getCoverageTopologyLevel(covname));
        CoverageTable ct = cat.getCoverageTable(covname);
        print(prefix, "FeatureClassNames: ");
        println("");
        Hashtable info = ct.getFeatureTypeInfo();
        for (Enumeration enumerator = info.elements(); enumerator.hasMoreElements();) {
            CoverageTable.FeatureClassRec fcr = (CoverageTable.FeatureClassRec) enumerator.nextElement();

            String tstring = "[unknown] ";
            if (fcr.type == CoverageTable.TEXT_FEATURETYPE) {
                tstring = "[text feature] ";
View Full Code Here

    private boolean addFeatureNodes(DefaultMutableTreeNode coverageNode,
                                    CoverageTable ct) {
        int numFeatures = 0;
        Hashtable info = ct.getFeatureTypeInfo();
        for (Enumeration enumeration = info.elements(); enumeration.hasMoreElements();) {
            CoverageTable.FeatureClassRec fcr = (CoverageTable.FeatureClassRec) enumeration.nextElement();

            if (fcr.type == CoverageTable.SKIP_FEATURETYPE) {
                continue;
            }
View Full Code Here

                } else {
                    if (DEBUG)
                        Debug.output("   Checking in coverage table " + covname);
                    CoverageTable ct = cat.getCoverageTable(covname);
                    Hashtable info = ct.getFeatureTypeInfo();
                    for (Enumeration enumeration = info.elements(); enumeration.hasMoreElements();) {
                        CoverageTable.FeatureClassRec fcr = (CoverageTable.FeatureClassRec) enumeration.nextElement();
                        String name = fcr.feature_class;
                        if (coverageOrFeatureType.equalsIgnoreCase(name)) {
                            if (DEBUG)
                                Debug.output("** Found feature " + name);
View Full Code Here

    for (Enumeration chapters = cache.elements(); chapters
        .hasMoreElements();)
    {
      Hashtable chapter = (Hashtable) chapters.nextElement();
      for (Enumeration sections = chapter.elements(); sections
          .hasMoreElements();)
      {
        Hashtable section = (Hashtable) sections.nextElement();
        for (Enumeration keys = section.keys(); keys.hasMoreElements();)
        {
View Full Code Here

  // Get permClass
  permClass = (Class) gfields.get("permClass", null);

  if (permClass == null) {
      // set permClass
      Enumeration e = permissions.elements();
      if (e.hasMoreElements()) {
    Permission p = (Permission)e.nextElement();
    permClass = p.getClass();
      }
  }
View Full Code Here

    return disabledIdentities;
  }
 
  private ContactList cleanEMailList(ContactList emailList) {
    Hashtable identityEmails = emailList.getIdentiEmails();
    Enumeration enumeration = identityEmails.elements();
    String value = "";
    while (enumeration.hasMoreElements()) {
      Identity identity = (Identity) enumeration.nextElement();
      List<Identity> singleIdentityList = new ArrayList<Identity>();
      singleIdentityList.add(identity);
View Full Code Here

        this.tagFiles = new TagFileInfo[tagFileVector.size()];
        tagFileVector.copyInto(this.tagFiles);

        this.functions = new FunctionInfo[functionTable.size()];
        int i = 0;
        Enumeration enumeration = functionTable.elements();
        while (enumeration.hasMoreElements()) {
            this.functions[i++] = (FunctionInfo) enumeration.nextElement();
        }
    }
View Full Code Here

              }
            } else if (sl.tpContext.ignoreCase) {
              // This has to be explicit.  A warning needs to be given with respect
              // to all previous strings.
              String pos = ""; int count = 0;
              for (Enumeration enum2 = table2.elements(); enum2.hasMoreElements();) {
                RegularExpression rexp = (RegularExpression)(enum2.nextElement());
                if (count != 0) pos += ",";
                pos += " line " + rexp.getLine();
                count++;
              }
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.