public abstract class AbstractMetatypeDataManager
extends java.lang.Object
ITransformationProperty
.Constructor and Description |
---|
AbstractMetatypeDataManager(ITransformationProperty transProperty)
Constructor
|
Modifier and Type | Method and Description |
---|---|
ITransformationProperty |
getProperty()
Returns this manager's transformation property.
|
abstract java.lang.Object |
getValidObject(java.lang.Object dataObject)
Returns a valid object based on the given object.
|
protected abstract void |
initialize()
Initializes this manager based on the given metatype data.
|
abstract org.eclipse.core.runtime.IStatus |
isValid(java.lang.Object dataObject)
Determines if the given object is a valid value for the given property
based on the metatype data.
|
protected java.util.Map |
parseMap()
This is a helper method for metatypes that store their metatype data as
a comma separated list of key/value pairs.
|
protected java.util.List |
resolveList(java.util.List propValue)
Returns a
List that with all proxies, if any, from the given
list resolved. |
public AbstractMetatypeDataManager(ITransformationProperty transProperty)
transProperty
- The transformation property that contains the
metatype data.java.lang.IllegalArgumentException
- if transProperty is null.public ITransformationProperty getProperty()
protected abstract void initialize()
public abstract org.eclipse.core.runtime.IStatus isValid(java.lang.Object dataObject)
dataObject
- The object to test.IStatus
with severity IStatus.OK
if the object is valid. Otherwise the severity will be
IStatus.ERROR
.public abstract java.lang.Object getValidObject(java.lang.Object dataObject)
dataObject
- The object to test.protected java.util.Map parseMap()
Map
of the data.Map
that contains the key/value pairs.protected java.util.List resolveList(java.util.List propValue)
List
that with all proxies, if any, from the given
list resolved.propValue
- The original list to copy from.