Package weka.core

Annotation Type OptionMetadata


  • @Documented
    @Retention(RUNTIME)
    @Target(METHOD)
    public @interface OptionMetadata
    Method annotation that can be used with scheme parameters to provide a nice display-ready name for the parameter, help information and, if applicable, command line option details
    Version:
    $Revision: 15249 $
    Author:
    Mark Hall (mhall{[at]}pentaho{[dot]}com)
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String description
      Description of this parameter.
      java.lang.String displayName
      The nice GUI displayable name for this parameter
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String category
      Optional category for the parameter.
      boolean commandLineParamIsFlag
      True if the command line version of this parameter is a flag (i.e.
      java.lang.String commandLineParamName
      The name of the command line version of this parameter (without leading -).
      java.lang.String commandLineParamSynopsis
      The synopsis to display on in the command line help for this parameter (e.g.
      int displayOrder
      The order (low to high), relative to other parameters, that this property should be displayed in the GUI and, if applicable, on the command line help
    • Element Detail

      • displayName

        java.lang.String displayName
        The nice GUI displayable name for this parameter
        Returns:
        a nice displayable name
      • description

        java.lang.String description
        Description of this parameter. Displayed as a tool tip and help in the GUI, and on the command line.
        Returns:
        the description text of this parameter
      • category

        java.lang.String category
        Optional category for the parameter. GUI dialog can use this to group certain options for display in child dialogs
        Returns:
        the category for this option
        Default:
        ""
      • displayOrder

        int displayOrder
        The order (low to high), relative to other parameters, that this property should be displayed in the GUI and, if applicable, on the command line help
        Returns:
        the order (default 100)
        Default:
        100
      • commandLineParamName

        java.lang.String commandLineParamName
        The name of the command line version of this parameter (without leading -). If this parameter is not a command line one, then just leave at the default empty string.
        Returns:
        the name of the command line version of this parameter
        Default:
        ""
      • commandLineParamIsFlag

        boolean commandLineParamIsFlag
        True if the command line version of this parameter is a flag (i.e. binary parameter).
        Returns:
        true if the command line version of this parameter is a flag
        Default:
        false
      • commandLineParamSynopsis

        java.lang.String commandLineParamSynopsis
        The synopsis to display on in the command line help for this parameter (e.g. -Z ). If this parameter is not a command line one, then just leave at the default empty string.
        Returns:
        the command line synopsis for this parameter
        Default:
        ""