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, resolveList
public StringMetatypeDataManager(ITransformationProperty property)
property
- The transformation property that contains the
metatype data.public java.lang.Object getValidObject(java.lang.Object dataObject)
AbstractMetatypeDataManager
getValidObject
in class AbstractMetatypeDataManager
dataObject
- The object to test.protected void initialize()
AbstractMetatypeDataManager
initialize
in class AbstractMetatypeDataManager
public org.eclipse.core.runtime.IStatus isValid(java.lang.Object dataObject)
AbstractMetatypeDataManager
isValid
in class AbstractMetatypeDataManager
dataObject
- The object to test.IStatus
with severity IStatus.OK
if the object is valid. Otherwise the severity will be
IStatus.ERROR
.public int getMaximumLength()