Class ParameterSpecification


  • public final class ParameterSpecification
    extends Object
    Definition of a single parameter for an entity.
    • Constructor Detail

      • ParameterSpecification

        public ParameterSpecification()
    • Method Detail

      • type

        public ParameterType type()
        Get the type property: Parameter type.
        Returns:
        the type value.
      • withType

        public ParameterSpecification withType​(ParameterType type)
        Set the type property: Parameter type.
        Parameters:
        type - the type value to set.
        Returns:
        the ParameterSpecification object itself.
      • defaultValue

        public Object defaultValue()
        Get the defaultValue property: Default value of parameter.
        Returns:
        the defaultValue value.
      • withDefaultValue

        public ParameterSpecification withDefaultValue​(Object defaultValue)
        Set the defaultValue property: Default value of parameter.
        Parameters:
        defaultValue - the defaultValue value to set.
        Returns:
        the ParameterSpecification object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.