Class ParameterValue

java.lang.Object
org.frankframework.parameters.ParameterValue

public class ParameterValue extends Object
Author:
John Dekker
  • Constructor Details

    • ParameterValue

      protected ParameterValue(@NonNull IParameter type, @Nullable Object value)
  • Method Details

    • getDefinition

      public @NonNull IParameter getDefinition()
      Returns the description of the IParameter
    • getName

      public String getName()
      Returns the name of the IParameter
    • getValue

      public @Nullable Object getValue()
      Returns the value of the IParameter
    • asMessage

      public @NonNull Message asMessage()
    • setDefinition

      public void setDefinition(@NonNull IParameter parameterDef)
    • 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

      public @Nullable String asStringValue()
      Returns:
      convert the value to a string
    • asStringValue

      public @Nullable String asStringValue(@Nullable String defaultValue)
      Parameters:
      defaultValue - returned if value is null
      Returns:
      convert the value to a string
    • asCollection

      public @NonNull List<Node> asCollection() throws ParameterException
      Throws:
      ParameterException