Class EmptyParameters

  • All Implemented Interfaces:
    Cloneable, Parameters

    public class EmptyParameters
    extends Object
    implements Parameters
    Empty place holder parameters object that always returns Parameters.NULL.
    Author:
    Nick Collier
    • Constructor Detail

      • EmptyParameters

        public EmptyParameters()
    • Method Detail

      • getSchema

        public Schema getSchema()
        Gets the Schema for this Parameters object.
        Specified by:
        getSchema in interface Parameters
        Returns:
        the Schema for this Parameters object.
      • getValue

        public Object getValue​(String paramName)
        Gets the value associated with the specified parameter name. This always returns Parameters.NULL;
        Specified by:
        getValue in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getValueAsString

        public String getValueAsString​(String paramName)
        Gets a String representation of the specified parameter's value.
        Specified by:
        getValueAsString in interface Parameters
        Parameters:
        paramName - the name of the parameter
        Returns:
        a String representation of the specified parameters's value.
      • getDisplayName

        public String getDisplayName​(String paramName)
        Gets the display name for the specified parameter name.
        Specified by:
        getDisplayName in interface Parameters
        Parameters:
        paramName - the parameter name
        Returns:
        the display name for the specified parameter name.
      • setValue

        public void setValue​(String paramName,
                             Object val)
        Sets the specified parameter name to the specified value. This is no op in this implementation of Parameters.
        Specified by:
        setValue in interface Parameters
        Parameters:
        paramName - the name of the parameter to set to the new value
        val - the new value
      • isReadOnly

        public boolean isReadOnly​(String paramName)
        True if parameter is read only.
        Specified by:
        isReadOnly in interface Parameters
        Parameters:
        paramName - the name of the parameter
        Returns:
        true if parameter is read-only otherwise false.
      • getDouble

        public Double getDouble​(String paramName)
        Description copied from interface: Parameters
        Gets the Double value associated with the specified parameter name.
        Specified by:
        getDouble in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getInteger

        public Integer getInteger​(String paramName)
        Description copied from interface: Parameters
        Gets the Integer value associated with the specified parameter name.
        Specified by:
        getInteger in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getBoolean

        public Boolean getBoolean​(String paramName)
        Description copied from interface: Parameters
        Gets the Boolean value associated with the specified parameter name.
        Specified by:
        getBoolean in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getString

        public String getString​(String paramName)
        Description copied from interface: Parameters
        Gets the String value associated with the specified parameter name.
        Specified by:
        getString in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getLong

        public Long getLong​(String paramName)
        Description copied from interface: Parameters
        Gets the Long value associated with the specified parameter name.
        Specified by:
        getLong in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.
      • getFloat

        public Float getFloat​(String paramName)
        Description copied from interface: Parameters
        Gets the Float value associated with the specified parameter name.
        Specified by:
        getFloat in interface Parameters
        Parameters:
        paramName - the name of the parameter whose value we want
        Returns:
        the value associated with the specified parameter name.