Package java.util

Examples of java.util.Properties.clone()


          bean.set_owner(parent.get_owner());
         
          // set default namespace (of parent)
          Properties p = parent._xmlns;
          if (p==null) Gloze.logger.warn("parent has no default ns:" +parent);
          else bean._xmlns = (Properties) p.clone();
         
          //String xmlns = p!=null? (String)p.get(""):null;
          //if (xmlns!=null) bean._xmlns.put("", xmlns);
       
          ContentIFace content = bean.getContentModel();
View Full Code Here


          bean.set_owner(parent.get_owner());
         
          // set default namespace (of parent)
          Properties p = parent._xmlns;
          if (p==null) Gloze.logger.warn("parent has no default ns:" +parent);
          else bean._xmlns = (Properties) p.clone();
         
          ContentIFace content = bean.getContentModel();
          // add attributes (xmlns properties overrides default from parent)
          content.addAttributes(bean, element.getAttributes());
         
View Full Code Here

    // this code should be revisited and cleaned up to use
    // an Iterator which may (or may not) alleviate the need for
    // the clone.  Many thanks to Padraig O'hIceadha
    // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

    Enumeration keys = ((Properties) props.clone()).keys();
    while(keys.hasMoreElements())
    {
      String key = (String)keys.nextElement();
      // Now check if the given key was specified as a
      // System property. If so, the system property
View Full Code Here

        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
View Full Code Here

            for (int j = 0; j < map[i].length; j++) {
                Properties p = getTileInstancePropertiesAt(i, j);

                if (p != null) {
                    Integer key = i + j * bounds.width;
                    clone.tileInstanceProperties.put(key, (Properties) p.clone());
                }
            }
        }

        return clone;
View Full Code Here

    // this code should be revisited and cleaned up to use
    // an Iterator which may (or may not) alleviate the need for
    // the clone.  Many thanks to Padraig O'hIceadha
    // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

    Enumeration keys = ((Properties) props.clone()).keys();
    while(keys.hasMoreElements())
    {
      String key = (String)keys.nextElement();
      // Now check if the given key was specified as a
      // System property. If so, the system property
View Full Code Here

        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
View Full Code Here

        RemoteWsdlLoader loader;

        try {
            Properties httpClientProperties = getHttpClientProperties();

            httpClientProperties = (Properties) httpClientProperties.clone();
            if(!httpClientProperties.containsKey(HttpClientFactory.TARGET_HOST_URL)) {
                httpClientProperties.setProperty(HttpClientFactory.TARGET_HOST_URL, wsdlAddress);
            }

            loader = new RemoteWsdlLoader(httpClientProperties);
View Full Code Here

   * @param index The index of the atom set whose properties are to be cloned.
   */
  void cloneAtomSetProperties(int index) {
    Properties p = (Properties) getAtomSetAuxiliaryInfo(index, "modelProperties");
    if (p != null)
      setAtomSetAuxiliaryInfo("modelProperties", p.clone(), currentAtomSetIndex);
  }

  int getAtomSetNumber(int atomSetIndex) {
    return atomSetNumbers[atomSetIndex >= atomSetCount ? 0 : atomSetIndex];
  }
View Full Code Here

        // this code should be revisited and cleaned up to use
        // an Iterator which may (or may not) alleviate the need for
        // the clone.  Many thanks to Padraig O'hIceadha
        // <padraig@gradient.ie> for finding this problem.  Bugzilla 2000.

        Enumeration keys = ((Properties) props.clone()).keys();
        while (keys.hasMoreElements())
        {
            String key = (String) keys.nextElement();
            // Now check if the given key was specified as a
            // System property. If so, the system property
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.