Class TypedParameter
java.lang.Object
com.aquima.interactions.portal.model.def.TypedParameter
- All Implemented Interfaces:
ITypedParameter
,Serializable
- Direct Known Subclasses:
ReferenceParameter
,ValueParameter
- Since:
- 9.3
- Author:
- J. Hermus
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTypedParameter
(String parameterName, ParameterType parameterType) TypedParameter
(String parameterName, ParameterType parameterType, boolean isMultivalued) TypedParameter
(String parameterName, ParameterType parameterType, Direction direction) TypedParameter
(String parameterName, ParameterType parameterType, Direction direction, boolean isMultivalued) -
Method Summary
Modifier and TypeMethodDescriptionaddParameterValue
(String key, IPrimitiveValue value) addParameterValue
(String key, IExpression expression) addParameterValue
(String key, String reference) asString()
This method returns the String representation of this typed parameter.This method returns the direction of this typed parameter.This method returns the expression of this typed parameter when this is an expression parameter.getName()
This method returns the name of an object this parameter is referring to when this is an reference parameter I.e a button nameString[]
This method returns the names of an object this parameter is referring to when this is an reference parameter.This method return a single value contained in this parameter (the first in case of a multivalued parameter).getType()
This method returns the type of this typed parameter.getValue()
This method returns the value of this typed parameter when this is an value parameter For multivalued parameters this method wil return an IListValue.This method return all the values contained in this parameter.boolean
isEmpty()
This method returns the true if this typed parameter contains a value.boolean
This method returns a boolean indicating if the parameter can have multiple values.protected void
-
Constructor Details
-
TypedParameter
public TypedParameter(String parameterName, ParameterType parameterType, Direction direction, boolean isMultivalued) -
TypedParameter
-
TypedParameter
-
TypedParameter
-
-
Method Details
-
getName
-
getType
Description copied from interface:ITypedParameter
This method returns the type of this typed parameter.- Specified by:
getType
in interfaceITypedParameter
- Returns:
- The type of this typed parameter, never null.
-
getDirection
Description copied from interface:ITypedParameter
This method returns the direction of this typed parameter.- Specified by:
getDirection
in interfaceITypedParameter
- Returns:
- The direction of this typed parameter, never null.
-
getValues
Description copied from interface:ITypedParameter
This method return all the values contained in this parameter.- Specified by:
getValues
in interfaceITypedParameter
- Returns:
- The parameter values, never null (possibly an empty array).
-
getSingleValue
Description copied from interface:ITypedParameter
This method return a single value contained in this parameter (the first in case of a multivalued parameter).- Specified by:
getSingleValue
in interfaceITypedParameter
- Returns:
- The parameter value, may be null
-
addParameterValue
-
addParameterValue
-
addParameterValue
-
getExpression
Description copied from interface:ITypedParameter
This method returns the expression of this typed parameter when this is an expression parameter.- Specified by:
getExpression
in interfaceITypedParameter
- Returns:
- The expression, may be null.
-
getValue
Description copied from interface:ITypedParameter
This method returns the value of this typed parameter when this is an value parameter For multivalued parameters this method wil return an IListValue.- Specified by:
getValue
in interfaceITypedParameter
- Returns:
- The value, may be null.
-
getReferenceName
Description copied from interface:ITypedParameter
This method returns the name of an object this parameter is referring to when this is an reference parameter I.e a button name- Specified by:
getReferenceName
in interfaceITypedParameter
- Returns:
- The name of the referring object, may be null.
-
getReferenceNames
Description copied from interface:ITypedParameter
This method returns the names of an object this parameter is referring to when this is an reference parameter. I.e a button names.- Specified by:
getReferenceNames
in interfaceITypedParameter
- Returns:
- The names of the referring object, cannot be null, but can return an empty array..
-
isEmpty
public boolean isEmpty()Description copied from interface:ITypedParameter
This method returns the true if this typed parameter contains a value.- Specified by:
isEmpty
in interfaceITypedParameter
- Returns:
- True if this typed parameters contains no value.
-
isMultiValue
public boolean isMultiValue()Description copied from interface:ITypedParameter
This method returns a boolean indicating if the parameter can have multiple values.- Specified by:
isMultiValue
in interfaceITypedParameter
- Returns:
- boolean indicating if the parameter can have multiple values.
-
asString
Description copied from interface:ITypedParameter
This method returns the String representation of this typed parameter.- Specified by:
asString
in interfaceITypedParameter
- Returns:
- The string representation of this typed parameter, may be null.
-
setIsValuesNull
protected void setIsValuesNull()
-