Class ParameterValue

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

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

  • Method Details

    • getDefinition

      public Parameter getDefinition()
      Returns the description of the parameter
    • getName

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

      public Object getValue()
      Returns the value of the parameter
    • asMessage

      public Message asMessage()
    • setDefinition

      public void setDefinition(Parameter parameterDef)
    • setValue

      public void setValue(Object value)
      Sets value for the parameter
    • 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

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

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

      public Collection<Node> asCollection() throws ParameterException
      Throws:
      ParameterException