Interface HvlRToolReportParamValueCodec

All Known Implementing Classes:
HvlRToolReportParamValueJsonCodec

public interface HvlRToolReportParamValueCodec
The type defines encoding and decoding operations for report param value conversion.
  • Method Details

    • encodeToTypedValueContentWith

      byte[] encodeToTypedValueContentWith(HvlRToolParamValueType paramValueTypeToEncode, com.google.common.collect.ImmutableSet<String> paramStringValues)
      Encode to typed value content with byte [ ].
      Parameters:
      paramValueTypeToEncode - the param value type to encode
      paramStringValues - the report param string values
      Returns:
      the byte [ ]
    • encodeToTypedValueContentFor

      default byte[] encodeToTypedValueContentFor(HvlRToolReportExecutingParamModel reportExecutingParamModel)
      Encode to typed value content for byte [ ].
      Parameters:
      reportExecutingParamModel - the report executing param model
      Returns:
      the byte [ ]
    • decodeToStringValuesWith

      com.google.common.collect.ImmutableSet<String> decodeToStringValuesWith(HvlRToolParamValueType paramValueTypeToDecode, byte[] paramTypedValueContent)
      Decode to string values with immutable set.
      Parameters:
      paramValueTypeToDecode - the param value type to decode
      paramTypedValueContent - the report param typed value content
      Returns:
      the immutable set
    • decodeToStringValuesFor

      default com.google.common.collect.ImmutableSet<String> decodeToStringValuesFor(HvlRToolReportExecutingParam reportExecutingParam)
      Decode to string values for immutable set.
      Parameters:
      reportExecutingParam - the report executing param
      Returns:
      the immutable set
    • transformToTypedValueWith

      Object transformToTypedValueWith(HvlRToolParamValueType paramValueTypeToConversion, boolean acceptMultipleParamValue, com.google.common.collect.ImmutableSet<String> paramStringValues)
      Transform to typed value with object.
      Parameters:
      paramValueTypeToConversion - the param value type to conversion
      acceptMultipleParamValue - the accept multiple param value
      paramStringValues - the param string values
      Returns:
      the object
    • transformToTypedValueFor

      default Object transformToTypedValueFor(HvlRToolReportExecutionParamModel reportExecutionParam)
      Transform to typed value with object.
      Parameters:
      reportExecutionParam - the report execution param
      Returns:
      the object