Enum SyntaxNotation

java.lang.Object
java.lang.Enum<SyntaxNotation>
org.refcodes.cli.SyntaxNotation
All Implemented Interfaces:
Serializable, Comparable<SyntaxNotation>, java.lang.constant.Constable

public enum SyntaxNotation extends Enum<SyntaxNotation>
The SyntaxNotation is used by a the Syntaxable.toSyntax(SyntaxNotation, String, String, String) method to determine which notation to be used for the generated syntax.
  • Enum Constant Details

    • REFCODES

      public static final SyntaxNotation REFCODES
      A notation which the author of this code believes to unambiguously describe a command line utility's argument syntax; as defined by the means of this refcodes-cli artifact.
    • GNU_POSIX

      public static final SyntaxNotation GNU_POSIX
      A syntax notation derived from GNU and POSIX utility conventions and utility argument syntax.
      See Also:
      • "http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html"
      • "http://pubs.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html"
  • Method Details

    • values

      public static SyntaxNotation[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static SyntaxNotation valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null