public class ResourceMetatypeDataManager extends AbstractMetatypeDataManager
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DO_EXISTS_CHECK
The parameter id used in the metatype data to specify that the metatype
converter should not ensure the specified resource exists.
|
| Constructor and Description |
|---|
ResourceMetatypeDataManager(ITransformationProperty transProperty)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
doExistsCheck()
Returns a boolean indicating if the metatype converter should ensure the
specified resource exists.
|
java.lang.Object |
getValidObject(java.lang.Object dataObject)
Returns a valid object based on the given object.
|
protected void |
initialize()
Initializes this manager based on the given metatype data.
|
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.
|
getProperty, parseMap, resolveListpublic static final java.lang.String DO_EXISTS_CHECK
public ResourceMetatypeDataManager(ITransformationProperty transProperty)
transProperty - The transformation property that contains the
metatype data.java.lang.IllegalArgumentException - if transProperty is null.public java.lang.Object getValidObject(java.lang.Object dataObject)
AbstractMetatypeDataManagergetValidObject in class AbstractMetatypeDataManagerdataObject - The object to test.protected void initialize()
AbstractMetatypeDataManagerinitialize in class AbstractMetatypeDataManagerpublic org.eclipse.core.runtime.IStatus isValid(java.lang.Object dataObject)
AbstractMetatypeDataManagerisValid in class AbstractMetatypeDataManagerdataObject - The object to test.IStatus with severity IStatus.OK
if the object is valid. Otherwise the severity will be
IStatus.ERROR.public boolean doExistsCheck()