Examples of PropertyMetaData


Examples of org.teiid.adminapi.impl.PropertyMetadata

      MapCompositeValueSupport mapValue = (MapCompositeValueSupport) value;

      List<PropertyMetadata> list = new ArrayList<PropertyMetadata>();
      for (String name : mapValue.getMetaType().keySet()) {
        list.add(new PropertyMetadata(name, (String) getMetaValueFactory().unwrap(mapValue.get(name))));
      }
      unwrapValue = list;
    } else {
      unwrapValue = super.unwrapValue(beanInfo, property, value);
    }
View Full Code Here

Examples of org.teiid.adminapi.impl.PropertyMetadata

              HashMap<String, String> myValue = (HashMap<String, String>)MetaValueFactory.getInstance().unwrap(value);
             
              if (mp.getMappedName().equals("JAXBProperties")) { //$NON-NLS-1$
                List<PropertyMetadata> props = new ArrayList<PropertyMetadata>();
                for (String key:myValue.keySet()) {
                  props.add(new PropertyMetadata(key, myValue.get(key)));
                }
                PropertiesUtils.setBeanProperty(t, mp.getMappedName(), props);
              }
              else {
                PropertiesUtils.setBeanProperty(t, mp.getMappedName(), myValue);
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.