Class Parameter

    • Constructor Detail

      • Parameter

        public Parameter​(String name,
                         String defaultValue,
                         boolean optional)
    • Method Detail

      • getName

        public String getName()
      • getDefaultValue

        public String getDefaultValue()
      • hasDefaultValue

        public boolean hasDefaultValue()
      • isOptional

        public boolean isOptional()
      • accepts

        public boolean accepts​(String value)
        Allows a factory parameter to refuse a value of an unnamed actual parameter.
        Parameters:
        value -
        Returns:
        true if the value is acceptable, false otherwise