Class ParameterValuePair

java.lang.Object
org.bgerp.model.param.ParameterValuePair
Direct Known Subclasses:
ParameterValuePair

public class ParameterValuePair extends Object
Parameter value.
  • Constructor Details

    • ParameterValuePair

      public ParameterValuePair(Parameter parameter)
  • Method Details

    • getParameter

      public Parameter getParameter()
    • setParameter

      public void setParameter(Parameter parameter)
    • getValue

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

      public void setValue(Object value)
    • setValueTitle

      public void setValueTitle(String valueTitle)
    • getValueTitle

      public String getValueTitle()
      Returns:
      display parameter representation.
    • 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
    • getValueTitle

      public static final String getValueTitle(Parameter parameter, Object value)