Class ParameterValue
java.lang.Object
org.frankframework.parameters.ParameterValue
- Author:
- John Dekker
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedParameterValue(@NonNull IParameter type, @Nullable Object value) -
Method Summary
Modifier and TypeMethodDescriptionbooleanasBooleanValue(boolean defaultValue) intasIntegerValue(int defaultValue) longasLongValue(long defaultValue) @NonNull Message@Nullable String@Nullable StringasStringValue(@Nullable String defaultValue) @NonNull IParameterReturns the description of the IParametergetName()Returns the name of the IParameter@Nullable ObjectgetValue()Returns the value of the IParametervoidsetDefinition(@NonNull IParameter parameterDef)
-
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
-
asBooleanValue
public boolean asBooleanValue(boolean defaultValue) - Parameters:
defaultValue- returned if value is null- Returns:
- convert the value to a boolean
-
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
-
asStringValue
- Returns:
- convert the value to a string
-
asStringValue
-
asCollection
- Throws:
ParameterException
-