Class ChoiceValue.ChoiceValueConverter

Enclosing class:
ChoiceValue

public static class ChoiceValue.ChoiceValueConverter extends ChoiceConverter
  • Constructor Details

    • ChoiceValueConverter

      public ChoiceValueConverter()
    • ChoiceValueConverter

      public ChoiceValueConverter(AsnConverter[] alternativeConverters)
  • Method Details

    • createAlternative

      public Object createAlternative(int index, Object alternativeObject)
      Description copied from class: ChoiceConverter
      Given the choice index, and the alternative object, create the choice value object.
      Specified by:
      createAlternative in class ChoiceConverter
      Parameters:
      index - The choice index
      alternativeObject - The alternative object
      Returns:
      The new choice value object
    • getAlternativeIndex

      public int getAlternativeIndex(Object object)
      Description copied from class: ChoiceConverter
      Given the choice value object, return the choice index.
      Specified by:
      getAlternativeIndex in class ChoiceConverter
      Parameters:
      object - The choice value object
      Returns:
      The choice index
    • getAlternativeObject

      public Object getAlternativeObject(Object object)
      Description copied from class: ChoiceConverter
      Given the choice value object, return the alternative object.
      Specified by:
      getAlternativeObject in class ChoiceConverter
      Parameters:
      object - The choice value object
      Returns:
      The alternative object