com.univocity.api
Annotation Type Choices


@Retention(value=RUNTIME)
public @interface Choices

Provides choices of what a parameter's value can be. Used by the GUI to show specific values to the user.


Optional Element Summary
 String[] choices
          Defines a list of choices that will be shown to the user.
 String defaultValue
          Defines the initial selected choice.
 String file
          Choices will be loaded from the specified text file.
 

choices

public abstract String[] choices
Defines a list of choices that will be shown to the user.

Returns:
choices selectable by user
Default:
""

file

public abstract String file
Choices will be loaded from the specified text file. Each line is displayed as a choice.

Returns:
the file where the choices will be loaded from
Default:
""

defaultValue

public abstract String defaultValue
Defines the initial selected choice. Will only be used if the defaultValue has been loaded in via file or array.

Returns:
the choice that is initially selected
Default:
""


Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.