Class ParameterTypeString

    • Constructor Detail

      • ParameterTypeString

        public ParameterTypeString​(java.lang.String id,
                                   java.lang.String description)
        Parameters:
        id - String; short name of the new ParameterTypeString
        description - String; description or full name of the new ParameterTypeString
      • ParameterTypeString

        public ParameterTypeString​(java.lang.String id,
                                   java.lang.String description,
                                   java.lang.String defaultValue)
        Parameters:
        id - String; short name of the new ParameterTypeString
        description - String; description or full name of the new ParameterTypeString
        defaultValue - String; default value of the new ParameterTypeString
      • ParameterTypeString

        public ParameterTypeString​(java.lang.String id,
                                   java.lang.String description,
                                   Constraint<? super java.lang.String> constraint)
        Parameters:
        id - String; short name of the new ParameterTypeString
        description - String; description or full name of the new ParameterTypeString
        constraint - Constraint<? super String>; constraint that applies to the value of the new ParameterTypeString
      • ParameterTypeString

        public ParameterTypeString​(java.lang.String id,
                                   java.lang.String description,
                                   java.lang.String defaultValue,
                                   Constraint<? super java.lang.String> constraint)
        Parameters:
        id - String; short name of the new ParameterTypeString
        description - String; description or full name of the new ParameterTypeString
        defaultValue - String; default value of the new ParameterTypeString
        constraint - Constraint<? super String>; constraint that applies to the value of the new ParameterTypeString
    • Method Detail

      • printValue

        public final java.lang.String printValue​(Parameters parameters)
                                          throws ParameterException
        Print the given value from the map in Parameters in a presentable format. The default implementation simply returns the output of toString().
        Overrides:
        printValue in class ParameterType<java.lang.String>
        Parameters:
        parameters - Parameters; Parameters to get the value from
        Returns:
        String; readable representation of the value
        Throws:
        ParameterException - If the parameter is not present
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class ParameterType<java.lang.String>