Class ParamValueBuilder
java.lang.Object
pl.decerto.hyperon.runtime.rhino.helper.ParamValueBuilder
- Author:
- przemek hertel
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional.addValues(Collection coll) Optional.build()Required.create()Optional.Required.Required.withMatrix(Object[][] matrix) Optional.Required.Required.withValues(Object... values) Optional.withValues(Collection coll) Optional.
-
Constructor Details
-
ParamValueBuilder
public ParamValueBuilder()
-
-
Method Details
-
withCodes
Required. Defines level codes
- Parameters:
codes- is an array of level codes of the parameter- Returns:
ParamValueBuilder
-
withCodes
Required. Defines level codes The equivalent of the method
withCodes(String...codes)- Parameters:
obj- is an object contained the array of level codes of theParamValue- Returns:
ParamValueBuilder
-
withTypes
Required. Defines level types.
withTypes(String...types)Required. Defines level types.
allowed string values:- string
- boolean
- integer
- number
- date
- datetime
- Parameters:
types- is an array of column types of the matrix- Returns:
ParamValueBuilder
-
withTypes
Required. Defines level types.
The equivalent of the method
withTypes(String...types).
allowed types:- string
- boolean
- integer
- number
- date
- datetime
- Parameters:
obj- is an array of column types of the matrix- Returns:
ParamValueBuilder
-
withMatrix
Optional. Defines the matrix for theParamValue. Replaces the previous matrix, the current one given in the argument. Element types must match to parameter types.- Parameters:
matrix- is a values the matrix for theParamValue- Returns:
ParamValueBuilder
-
addValues
Optional. Adds a value to the matrix. Types of values must match parameter types- Parameters:
values- is a table of rows with the values for theParamValue- Returns:
ParamValueBuilder
-
addValues
Optional. Adds a collection of values to the matrix. Types of values must match parameter types. The equivalent of the methodaddValues(Object...values)- Parameters:
coll- is a collection of rows with the values for theParamValue- Returns:
ParamValueBuilder
-
withValues
Optional. Defines the first row of the matrix for theParamValue. This method clears matrix before setting value. If matrix was set before, then it will be removed. Element types must match parameter types.- Parameters:
values- is an array of the matrix values for theParamValue- Returns:
ParamValueBuilder
-
withValues
Optional. Defines the first row of the matrix for theParamValue. Replaces the previous matrix, the current one given in the argument. The equivalent of the methodwithValues(Object...values)If matrix was set before, then it will be removed. Element types must match parameter types.- Parameters:
coll- is a collection of the matrix values for theParamValue- Returns:
ParamValueBuilder
-
build
Required. CreatesParamValueobject- Returns:
ParamValue
-
create
Optional. ReturnRhinoParamValue. If you want to createRhinoParamValue, use this method instead:build()- Returns:
ParamValue
-