public class StringMetatypeDataManager extends AbstractMetatypeDataManager
| Constructor and Description |
|---|
StringMetatypeDataManager(ITransformationProperty property)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getMaximumLength()
Returns the maximum length of the string.
|
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 StringMetatypeDataManager(ITransformationProperty property)
property - The transformation property that contains the
metatype data.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 int getMaximumLength()