Package org.frankframework.parameters
Class ParameterValue
java.lang.Object
org.frankframework.parameters.ParameterValue
- Author:
- John Dekker
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
asBooleanValue
(boolean defaultValue) byte
asByteValue
(byte defaultValue) double
asDoubleValue
(double defaultValue) float
asFloatValue
(float defaultValue) int
asIntegerValue
(int defaultValue) long
asLongValue
(long defaultValue) short
asShortValue
(short defaultValue) asStringValue
(String defaultValue) Returns the description of the IParametergetName()
Returns the name of the IParametergetValue()
Returns the value of the IParametervoid
setDefinition
(IParameter IParameterDef) void
Sets value for the IParameter
-
Constructor Details
-
ParameterValue
-
-
Method Details
-
getDefinition
Returns the description of the IParameter -
getName
Returns the name of the IParameter -
getValue
Returns the value of the IParameter -
asMessage
-
setDefinition
-
setValue
Sets value for the IParameter -
asBooleanValue
public boolean asBooleanValue(boolean defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a boolean
-
asByteValue
public byte asByteValue(byte defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a byte
-
asDoubleValue
public double asDoubleValue(double defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a double
-
asIntegerValue
public int asIntegerValue(int defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to an int
-
asLongValue
public long asLongValue(long defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a long
-
asFloatValue
public float asFloatValue(float defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a float
-
asShortValue
public short asShortValue(short defaultValue) - Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a short
-
asStringValue
- Returns:
- convert the value to a string
-
asStringValue
- Parameters:
defaultValue
- returned if value is null- Returns:
- convert the value to a string
-
asCollection
- Throws:
ParameterException
-