|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ispheres.shared.transforms.TransformInterface
public final class TransformInterface
This class describes the interface for a particular transform. It contains the list of the parameters that are required by the transform and also holds the name of the transform and the parameters that get parsed to the transform when it's send back to the client. Parameters can only be added when the object is on the server side and values for parameters can only be set on the client side.
| Nested Class Summary | |
|---|---|
class |
TransformInterface.Parameter
Inner class for storing the information for a Parameter. |
| Constructor Summary | |
|---|---|
TransformInterface(java.lang.String theTransformClassName)
Constructs a new interface for a transform using the specified transform name and classname and an empty list of parameters with no values. |
|
| Method Summary | |
|---|---|
void |
addParameter(java.lang.String theParameterName,
java.lang.Class theParameterType)
Adds a parameter to the list of parameters required by the transform. |
void |
flipSide()
Flips the side from server to client. |
java.lang.String |
getParameterName(int index)
Returns the name of the parameter at the specified index. |
TransformInterface.Parameter[] |
getParameters()
Returns the list of parameters as an array of Parameter objects. |
java.lang.Class |
getParameterType(int index)
Returns the type of the parameter at the specified index. |
java.lang.Object |
getParameterValue(int index)
Returns the value of the parameter at the specified index. |
java.lang.String |
getTransformClassName()
Returns the full class name of the class that will perform transform as perscribed by this TransformInterface. |
java.lang.String |
getTransformName()
Returns the name of the transform that can be performed on a particular object. |
void |
setParameterValue(int index,
java.lang.Object value)
Sets the value of the parameter at the specified index to the specified value. |
java.lang.String |
toString()
Returns a String representation of this TransformInterface object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TransformInterface(java.lang.String theTransformClassName)
theTransformClassName - The name of the class that will perform
transforms describes by this interface.| Method Detail |
|---|
public java.lang.String getTransformName()
public java.lang.String getTransformClassName()
public void addParameter(java.lang.String theParameterName,
java.lang.Class theParameterType)
theParameterName - The name of the parameter that is being supplied
to the transform.theParameterType - A Class object representing the type of value for
the parameter that is being added.public TransformInterface.Parameter[] getParameters()
public java.lang.String getParameterName(int index)
index - The index number of the parameter to get the name for.
public java.lang.Class getParameterType(int index)
index - The index number of the parameter to get the value for.
public java.lang.Object getParameterValue(int index)
index - The index number of the parameter to get the value for.
public void setParameterValue(int index,
java.lang.Object value)
index - The index number of the parameter to set the value for.value - An Object containing the value to set for the specified
parameter.public void flipSide()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||