Examples of eSet()


Examples of org.eclipse.emf.ecore.EObject.eSet()

            } else if (className.equals("java.lang.String")) {
              logger.debug("{} found String value", LoggerConstants.CONFIG);
              tfConfig.eSet(feature, deviceConfig.get(property));
            } else if (className.equals("java.math.BigDecimal")) {
              logger.debug("{} found BigDecimal value", LoggerConstants.CONFIG);
              tfConfig.eSet(feature, new BigDecimal(deviceConfig.get(property)));
              // } else if (feature.getEType().getInstanceClassName().equals("EList")){
              // logger.debug("{} found EList value", LoggerConstants.CONFIG);
              // List<String> strings = new
              // ArrayList<String>(Arrays.asList(deviceConfig.get(property).trim().split("\\s+")));
              // tfConfig.eSet(feature, strings);
View Full Code Here

Examples of org.eclipse.emf.ecore.EObject.eSet()

          if (nextToken == JsonToken.START_ARRAY) {
            EList values = new BasicEList();
            while (jp.nextToken() != JsonToken.END_ARRAY) {
              values.add(parseValueForDataType(jp, dataType));
            }
            result.eSet(feature, values);
          }
        }
        else {
          result.eSet(feature, parseValueForDataType(jp, dataType));
        }
View Full Code Here

Examples of org.eclipse.emf.ecore.xml.type.AnyType.eSet()

    // create extension attribute meta object
    EStructuralFeature originalAttributeFeature = extendedMetaData.demandFeature(null, "original", false);
    // create extension attribute
    AnyType originalAttribute = XMLTypeFactory.eINSTANCE.createAnyType();
    // set extension attribute value
    originalAttribute.eSet(originalAttributeFeature, original.getURI().toString());
    // add attribute to root object
    extensions.put(copy.getContents().get(0), originalAttribute);
  }
 
  public void save(Map saveOptions) throws IOException {
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.