public static interface DynamicPropertyDefinition.IDynamicPropertyResolver
Usage :
MMetamodelFragment#addDynamicBehavior(String, Object)pdef.setProperty(DynamicPropertyDefinition.PROPERTY_RESOLVER_TABLE, DynamicPropertyDefinition.PROPERTY_RESOLVER_KEY, resolver)
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
convertToObject(DynamicPropertyDefinition pdef,
java.lang.String value,
ModelElement element)
Convert a value from a string, using the property definition's base type.
|
java.lang.String |
convertToString(DynamicPropertyDefinition pdef,
java.lang.Object value,
ModelElement object)
Convert an object value to string, according to the property definition's base type.
|
java.lang.Object convertToObject(DynamicPropertyDefinition pdef, java.lang.String value, ModelElement element)
Used after reading a persisted string value in a property table.
pdef - definition of the property being edited.value - the initial string value. Might be null.element - the element this conversion is done for.null.java.lang.String convertToString(DynamicPropertyDefinition pdef, java.lang.Object value, ModelElement object)
Used before writing a persisted string value in a property table.
pdef - definition of the property being edited.value - a value. Might be null.object - the element this conversion is done for.