Class ExampleUsage

  • All Implemented Interfaces:
    org.refcodes.mixin.DescriptionAccessor

    public class ExampleUsage
    extends Object
    implements org.refcodes.mixin.DescriptionAccessor
    An example usage item describing a usage scenario.
    • Constructor Detail

      • ExampleUsage

        public ExampleUsage​(String aDescription,
                            Operand<?>... aOperands)
        Constructs an example usage.
        Parameters:
        aDescription - The example's description.
        aOperands - The command line arguments required by the example.
    • Method Detail

      • getDescription

        public String getDescription()
        Specified by:
        getDescription in interface org.refcodes.mixin.DescriptionAccessor
      • getOperands

        public Operand<?>[] getOperands()
        Retrieves the command line arguments required by the example.
        Returns:
        The according command line arguments.