@ParametersAreNonnullByDefault public class AttributeConverter extends Object implements BiConverter<Object,org.eclipse.emf.ecore.EAttribute,Object>
BiConverter that transforms the value of EAttribute instances.| Constructor and Description |
|---|
AttributeConverter(FeatureMapConverter featureMapConverter)
Constructs a new
AttributeConverter for the given store. |
| Modifier and Type | Method and Description |
|---|---|
Object |
convert(Object value,
org.eclipse.emf.ecore.EAttribute attribute)
Converts an instance of the
attribute to a string literal representation. |
Object |
revert(Object value,
org.eclipse.emf.ecore.EAttribute attribute)
Creates an instance of the
attribute from a string literal representation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapply, from, identity, reverseandThenpublic AttributeConverter(FeatureMapConverter featureMapConverter)
AttributeConverter for the given store.featureMapConverter - the converter for FeatureMap.Entry instancespublic Object convert(@Nullable Object value, org.eclipse.emf.ecore.EAttribute attribute)
Converts an instance of the attribute to a string literal representation.
convert in interface BiConverter<Object,org.eclipse.emf.ecore.EAttribute,Object>value - the value of the attributeattribute - the attribute to instantiatenull if the value is nullrevert(Object, EAttribute),
EcoreUtil.convertToString(EDataType, Object)public Object revert(@Nullable Object value, org.eclipse.emf.ecore.EAttribute attribute)
Creates an instance of the attribute from a string literal representation.
revert in interface BiConverter<Object,org.eclipse.emf.ecore.EAttribute,Object>value - the string literal representation of the valueattribute - the attribute to instantiatenull if the value is nullconvert(Object, EAttribute),
EcoreUtil.createFromString(EDataType, String)Copyright © 2013–2019 Atlanmod. All rights reserved.