Annotation Type Parameter


  • @Retention(RUNTIME)
    @Target(PARAMETER)
    public @interface Parameter
    • Field Summary

      Fields 
      Modifier and Type Fields Description
      static java.lang.String UNSPECIFIED  
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String absentValue
      The default value of the parameter if its name is not present on the command line.
      java.lang.String[] names
      Parameter name and aliases which must start with the hyphen character.
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String presentValue
      The default value of the parameter if its name is present on the command line.
    • Field Detail

      • UNSPECIFIED

        static final java.lang.String UNSPECIFIED
    • Element Detail

      • names

        java.lang.String[] names
        Parameter name and aliases which must start with the hyphen character.
        Returns:
        parameter names.
      • absentValue

        java.lang.String absentValue
        The default value of the parameter if its name is not present on the command line. This value is effectively the default value for the parameter.
        Returns:
        default value of the parameter if its name is not present on the command line.
      • presentValue

        java.lang.String presentValue
        The default value of the parameter if its name is present on the command line. If this value is specified, then the command parsing will not expect a value on the command line for this parameter. If this value is UNSPECIFIED, then an argument must be specified on the command line for the parameter.
        Returns:
        default value of the parameter if its name is present on the command line.
        Default:
        "org.apache.felix.service.command.unspecified.parameter"