|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.metamatrix.common.types.Transform
public abstract class Transform
This interface represents the transformation from one data type to another. For instance, from java.lang.String to java.lang.Integer where java.lang.String is the the source type, "java.lang.String" is the source name, etc.
| Constructor Summary | |
|---|---|
Transform()
|
|
| Method Summary | |
|---|---|
protected void |
checkValueRange(java.lang.Object value,
java.lang.Number min,
java.lang.Number max)
|
boolean |
equals(java.lang.Object obj)
Override Object.equals() to build an equals based on src and tgt types. |
java.lang.String |
getDescription()
Get description. |
java.lang.String |
getDisplayName()
Get nice display name for GUIs. |
abstract java.lang.Class |
getSourceType()
Type of the incoming value. |
java.lang.String |
getSourceTypeName()
Name of the source type. |
abstract java.lang.Class |
getTargetType()
Type of the outgoing value. |
java.lang.String |
getTargetTypeName()
Name of the target type. |
int |
hashCode()
Override Object.hashCode() to build a hash based on types. |
boolean |
isExplicit()
|
java.lang.String |
toString()
Override Object.toString() to do getDisplayName() version. |
java.lang.Object |
transform(java.lang.Object value)
This method transforms a value of the source type into a value of the target type. |
protected abstract java.lang.Object |
transformDirect(java.lang.Object value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Transform()
| Method Detail |
|---|
public java.lang.Object transform(java.lang.Object value)
throws TransformationException
value - Incoming value of source type
TransformationException - if value is an incorrect input type or
the transformation fails
protected abstract java.lang.Object transformDirect(java.lang.Object value)
throws TransformationException
TransformationExceptionpublic abstract java.lang.Class getSourceType()
public java.lang.String getSourceTypeName()
public abstract java.lang.Class getTargetType()
public java.lang.String getTargetTypeName()
public java.lang.String getDisplayName()
public java.lang.String getDescription()
public boolean isExplicit()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Other object
protected void checkValueRange(java.lang.Object value,
java.lang.Number min,
java.lang.Number max)
throws TransformationException
TransformationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||