Package java.util

Examples of java.util.Properties.values()


                .currentThread().getContextClassLoader());
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }

        for (Iterator it = initialExtensions.values().iterator(); it.hasNext();) {
            String validatorClass = (String)it.next();
            try {
                if (LOG.isLoggable(Level.FINE)) {
                    LOG.fine("Found service validator : " + validatorClass);
                }
View Full Code Here


  private final Random rnd;
  private final int size;
 
  public RandomNameLoader(String propFileName){
    Properties prop = PropertyLoader.loadProperties(propFileName);
    for (Object value : prop.values()) {
      names.add((String) value);
    }
    size = names.size();
    rnd = new Random(getClass().hashCode()+System.nanoTime());
  }
View Full Code Here

      throw new ConfigurationException("Can not find model property file on classpath: " + "/ca/uhn/fhir/model/dstu/model.properties");
    }
    Properties prop = new Properties();
    try {
      prop.load(str);
      for (Object nextValue : prop.values()) {
        try {
          @SuppressWarnings("unchecked")
          Class<? extends IElement> nextClass = (Class<? extends IElement>) Class.forName((String) nextValue);
          if (!IElement.class.isAssignableFrom(nextClass)) {
            ourLog.warn("Class is not assignable from " + IElement.class.getSimpleName() + ": " + nextValue);
View Full Code Here

    try{
          Properties props = validate(queryOrcommand);

          if(props != null){
            status = this.getResult((String)props.values().iterator().next(),
              (String)props.keys().nextElement());
          }

        if(queryOrcommand.startsWith("occ:")){
          status = this.getOcc();
View Full Code Here

        if (mySimulation != null) {
          existingMoteTypes = mySimulation.getMoteTypes();
        }
        ArrayList<Object> reserved = new ArrayList<Object>();
        reserved.addAll(moteTypeIDMappings.keySet());
        reserved.addAll(moteTypeIDMappings.values());
        String newID = ContikiMoteType.generateUniqueMoteTypeID(existingMoteTypes, reserved);
        moteTypeIDMappings.setProperty(existingIdentifier, newID);
      }

      /* Create new config */
 
View Full Code Here

        if (mySimulation != null) {
          existingMoteTypes = mySimulation.getMoteTypes();
        }
        ArrayList<Object> reserved = new ArrayList<Object>();
        reserved.addAll(moteTypeIDMappings.keySet());
        reserved.addAll(moteTypeIDMappings.values());
        String newID = ContikiMoteType.generateUniqueMoteTypeID(existingMoteTypes, reserved);
        moteTypeIDMappings.setProperty(existingIdentifier, newID);
      }

      /* Create new config */
 
View Full Code Here

        threadMap.clear();

        if (HostManager.isVirtualHostEnabled()) {
            // find all profiles and start threads
            Properties profiles = DynamicDataSourceManager.getProfileProperties();
            Set<String> profileSet = new HashSet(profiles.values());
            for (String profile : profileSet) {
                HostManager.setCurrentProfile(profile);
                workflowManager.internalUpdateDeadlineChecker();
            }
            HostManager.setCurrentProfile(null);
View Full Code Here

                .currentThread().getContextClassLoader());
        } catch (IOException ex) {
            throw new RuntimeException(ex);
        }

        for (Object element : initialExtensions.values()) {
            String validatorClass = (String)element;
            try {
                if (LOG.isLoggable(Level.FINE)) {
                    LOG.fine("Found service validator : " + validatorClass);
                }
View Full Code Here

        if (mySimulation != null) {
          existingMoteTypes = mySimulation.getMoteTypes();
        }
        ArrayList<Object> reserved = new ArrayList<Object>();
        reserved.addAll(moteTypeIDMappings.keySet());
        reserved.addAll(moteTypeIDMappings.values());
        String newID = ContikiMoteType.generateUniqueMoteTypeID(existingMoteTypes, reserved);
        moteTypeIDMappings.setProperty(existingIdentifier, newID);
      }

      /* Create new config */
 
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.