|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IParameter
The IParameter interface is an interface to a parameter passed to a java activity allowing access to its value.
Field Summary | |
---|---|
static int |
BOOLEAN
The constant indicating the value is a boolean |
static int |
BYTE
The constant indicating the value is a byte |
static int |
CHAR
The constant indicating the value is a character |
static int |
CONCEPT
The constant indicating the value is a concept |
static int |
DOUBLE
The constant indicating the value is a double |
static int |
FLOAT
The constant indicating the value is a float |
static int |
INT
The constant indicating the value is an integer |
static int |
JAVA_TYPE
The constant indicating the value is a Java Object |
static int |
LONG
The constant indicating the value is a long |
static int |
SHORT
The constant indicating the value is an integer |
static int |
STRING
The constant indicating the value is a string |
static int |
SYMBOL
The constant indicating the value is a symbol |
static int |
UNKNOWN
The constant indicating the value is unknown |
static int |
VARIABLE
The constant indicating the value is a variable |
Method Summary | |
---|---|
boolean |
getBooleanValue()
Returns the boolean value |
byte |
getByteValue()
Returns the byte value |
char |
getCharValue()
Returns the character value |
IConcept |
getConceptValue()
Returns the concept value, the value of a parameter can potentially be a class. |
int |
getContentType()
Returns the content type of the parameter. |
double |
getDoubleValue()
Returns the double value |
float |
getFloatValue()
Returns the float value |
int |
getIntValue()
Returns the integer value |
java.lang.Object |
getJavaObjectValue()
Returns the Java Object value. |
java.io.Serializable |
getJavaValue()
Deprecated. Use getJavaObjectValue instead |
long |
getLongValue()
Returns the long value |
java.lang.String |
getName()
Returns the name of the parameter. |
short |
getShortValue()
Returns the short value |
java.lang.String |
getStringValue()
Returns the string value. |
java.lang.String |
getSymbolValue()
Returns the symbol value |
IType |
getType()
Returns the type of the parameter. |
IUnknown |
getUnknownValue()
Returns the 'unknown' value. |
java.lang.Object |
getValue()
Generic method to return the parameter value as an object. |
IVariable |
getVariableValue()
Returns the variable passed to the parameter. |
Field Detail |
---|
static final int INT
static final int CHAR
static final int BYTE
static final int SHORT
static final int LONG
static final int FLOAT
static final int DOUBLE
static final int BOOLEAN
static final int SYMBOL
static final int STRING
static final int CONCEPT
static final int JAVA_TYPE
static final int VARIABLE
static final int UNKNOWN
Method Detail |
---|
java.lang.String getName() throws ExternalException
ExternalException
int getContentType() throws ExternalException
ExternalException
- if an internal error occursINT
,
LONG
,
DOUBLE
,
BOOLEAN
,
SYMBOL
,
STRING
,
CONCEPT
,
JAVA_TYPE
,
VARIABLE
,
UNKNOWN
IType getType() throws ExternalException
ExternalException
- if an internal error occursIType
int getIntValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not an integer
ExternalException
- if an internal error occurschar getCharValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a character
ExternalException
- if an internal error occursbyte getByteValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a byte
ExternalException
- if an internal error occursshort getShortValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a short
ExternalException
- if an internal error occurslong getLongValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a long
ExternalException
- if an internal error occursfloat getFloatValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a float
ExternalException
- if an internal error occursdouble getDoubleValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a double
ExternalException
- if an internal error occursboolean getBooleanValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a boolean
ExternalException
- if an internal error occursjava.lang.String getSymbolValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a symbol
ExternalException
- if an internal error occursjava.lang.String getStringValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a string
ExternalException
- if an internal error occursIConcept getConceptValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a concept
ExternalException
- if an internal error occursIConcept
@Deprecated java.io.Serializable getJavaValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter's type is not a Java reference type
implementing the Serializable interface
ExternalException
- if an internal error occursjava.lang.Object getJavaObjectValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter's type is not a Java reference type
ExternalException
- if an internal error occursIVariable getVariableValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not a variable
ExternalException
- if an internal error occursIVariable
IUnknown getUnknownValue() throws InvalidContentTypeException, ExternalException
InvalidContentTypeException
- if the parameter value is not 'unknown'
ExternalException
- if an internal error occursIUnknown.UNKNOWN
java.lang.Object getValue() throws InvalidContentTypeException, ExternalException
Note that the use of getType and the method to retrieve a value using its specific type method is more efficient.
InvalidContentTypeException
- if the parameter value does not match with the content type
ExternalException
- if an internal error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |