public abstract class Transform extends Object
Constructor and Description |
---|
Transform() |
Modifier and Type | Method and Description |
---|---|
String |
getDescription()
Get description.
|
String |
getDisplayName()
Get nice display name for GUIs.
|
abstract Class<?> |
getSourceType()
Type of the incoming value.
|
String |
getSourceTypeName()
Name of the source type.
|
abstract Class<?> |
getTargetType()
Type of the outgoing value.
|
String |
getTargetTypeName()
Name of the target type.
|
boolean |
isExplicit() |
String |
toString()
Override Object.toString() to do getDisplayName() version.
|
Object |
transform(Object value,
Class<?> targetType)
This method transforms a value of the source type into a value
of the target type.
|
protected abstract Object |
transformDirect(Object value) |
public Object transform(Object value, Class<?> targetType) throws TransformationException
value
- Incoming value of source typeTransformationException
- if value is an incorrect input type or
the transformation failsprotected abstract Object transformDirect(Object value) throws TransformationException
TransformationException
public abstract Class<?> getSourceType()
public String getSourceTypeName()
public abstract Class<?> getTargetType()
public String getTargetTypeName()
public String getDisplayName()
public String getDescription()
public boolean isExplicit()
Copyright © 2019. All rights reserved.