Package org.jboss.metatype.api.values

Examples of org.jboss.metatype.api.values.SimpleValueSupport


     */
    protected static Map<String, String> formatPropertiesMap(Map<String, MetaValue> propertiesMap) {
        Map<String, String> formattedPropertiesMap = new HashMap<String, String>();
       
        for(String propertyName : propertiesMap.keySet()) {
            SimpleValueSupport propertyMetaValue = (SimpleValueSupport)propertiesMap.get(propertyName);
            String propertyStringValue = propertyMetaValue.getValue().toString();
            formattedPropertiesMap.put(propertyName, propertyStringValue);
        }
       
        return formattedPropertiesMap;
    }
View Full Code Here


         else
         {
            converted = convert2Type(metaType.getTypeName(), elementValue);
         }
      }
      return new SimpleValueSupport(metaType, converted);
   }
View Full Code Here

   public static SimpleValue createSimpleValue(SimpleMetaType type, Serializable value)
   {
      if (value == null)
         return null;

      return new SimpleValueSupport(type, value);
   }
View Full Code Here

/*      */   public static <T extends Serializable> SimpleValue<T> createSimpleValue(SimpleMetaType<T> type, T value)
/*      */   {
/*  164 */     if (value == null) {
/*  165 */       return null;
/*      */     }
/*  167 */     return new SimpleValueSupport(type, value);
/*      */   }
View Full Code Here

TOP

Related Classes of org.jboss.metatype.api.values.SimpleValueSupport

Copyright © 2018 www.massapicom. 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.