Package org.bgerp.model.param

# Class ParameterValue

java.lang.Object
org.bgerp.model.param.ParameterValue

public class ParameterValue extends Object
Parameter value

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ParameterValue(Parameter parameter)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `String`
  `getBase64EncodedImgSrc()`
  Provides `src` attribute for HTML `img` tag in form of `data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA...===`.
  `Parameter`
  `getParameter()`
  `Object`
  `getValue()`
  `String`
  `getValueTitle()`
  `void`
  `setValue(Object value)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ParameterValue

    public ParameterValue(Parameter parameter)

- ## Method Details

  - ### getParameter

    public Parameter getParameter()

  - ### getValue

    public Object getValue()
    Returns:
      object representation depending on parameter's type.

  - ### setValue

    public void setValue(Object value)

  - ### getValueTitle

    public String getValueTitle()
    Returns:
      human-readable parameter value, `null` if `value` is `null`

  - ### getBase64EncodedImgSrc

    public String getBase64EncodedImgSrc() throws Exception
    Provides `src` attribute for HTML `img` tag in form of `data:image/png;base64, iVBORw0KGgoAAAANSUhEUgAAAAUA...===`.
    Returns:
      encoded string or `null` if parameter value is also `null`.
    Throws:
      `IllegalArgumentException` - when parameter type is not 'file'.
      `Exception`