Class DefaultParameterDescriptor

    • Constructor Detail

      • DefaultParameterDescriptor

        public DefaultParameterDescriptor()
      • DefaultParameterDescriptor

        public DefaultParameterDescriptor​(String name,
                                          Class<?> dataType)
    • Method Detail

      • isStructure

        public static boolean isStructure​(Class<?> type)
      • isSimple

        public static boolean isSimple​(Class<?> type)
      • getName

        public String getName()
        Specified by:
        getName in interface ElementDescriptor
        Returns:
        The symbolic name used to unambiguously identify this element. E.g. the fully qualified name of a Java class.
      • setName

        public void setName​(String name)
      • setDataType

        public void setDataType​(Class<?> dataType)
      • getAlias

        public String getAlias()
        Specified by:
        getAlias in interface ElementDescriptor
        Returns:
        A short form of the symbolic name, or null if not declared.
      • setAlias

        public void setAlias​(String alias)
      • setDefaultValue

        public void setDefaultValue​(String defaultValue)
      • setDescription

        public void setDescription​(String description)
      • getLabel

        public String getLabel()
        Specified by:
        getLabel in interface ElementDescriptor
        Returns:
        A human-readable version of the symbolic name to be used in user interfaces, or null if not declared.
      • setLabel

        public void setLabel​(String label)
      • getUnit

        public String getUnit()
        Specified by:
        getUnit in interface ParameterDescriptor
        Returns:
        The parameter physical unit. Defaults to the empty string (= not set).
      • setUnit

        public void setUnit​(String unit)
      • getInterval

        public String getInterval()
        Description copied from interface: ParameterDescriptor
        Gets the valid interval for numeric parameters, e.g. "[10,20)": in the range 10 (inclusive) to 20 (exclusive).
        Specified by:
        getInterval in interface ParameterDescriptor
        Returns:
        The valid interval. Defaults to empty string (= not set).
      • setInterval

        public void setInterval​(String interval)
      • getValueSet

        public String[] getValueSet()
        Description copied from interface: ParameterDescriptor
        Gets the set of values which can be assigned to a parameter field. The value set is given as textual representations of the actual values. The framework creates the actual value set by converting each text value to an object value using the associated Converter.
        Specified by:
        getValueSet in interface ParameterDescriptor
        Returns:
        The value set. Defaults to empty array (= not set).
        See Also:
        ParameterDescriptor.getConverterClass()
      • setValueSet

        public void setValueSet​(String[] valueSet)
      • getCondition

        public String getCondition()
        Description copied from interface: ParameterDescriptor
        Gets a conditional expression which must return true in order to indicate that the parameter value is valid, e.g. "value > 2.5".
        Specified by:
        getCondition in interface ParameterDescriptor
        Returns:
        A conditional expression. Defaults to empty string (= not set).
      • setCondition

        public void setCondition​(String condition)
      • getPattern

        public String getPattern()
        Description copied from interface: ParameterDescriptor
        Gets a regular expression pattern to which a textual parameter value must match in order to indicate a valid value, e.g. "a*".
        Specified by:
        getPattern in interface ParameterDescriptor
        Returns:
        A regular expression pattern. Defaults to empty string (= not set).
        See Also:
        Pattern
      • setPattern

        public void setPattern​(String pattern)
      • getFormat

        public String getFormat()
        Description copied from interface: ParameterDescriptor
        Gets a format string to which a textual parameter value must match in order to indicate a valid value, e.g. "yyyy-MM-dd HH:mm:ss.Z".
        Specified by:
        getFormat in interface ParameterDescriptor
        Returns:
        A format string. Defaults to empty string (= not set).
        See Also:
        Format
      • setFormat

        public void setFormat​(String format)
      • setNotNull

        public void setNotNull​(boolean notNull)
      • isNotEmpty

        public boolean isNotEmpty()
        Description copied from interface: ParameterDescriptor
        Parameter value must not be an empty string?
        Specified by:
        isNotEmpty in interface ParameterDescriptor
        Returns:
        true, if so. Defaults to false.
      • setNotEmpty

        public void setNotEmpty​(boolean notEmpty)
      • setDeprecated

        public void setDeprecated​(boolean deprecated)
      • setRasterDataNodeClass

        public void setRasterDataNodeClass​(Class<? extends RasterDataNode> rasterDataNodeClass)
      • setValidatorClass

        public void setValidatorClass​(Class<? extends Validator> validator)
      • setConverterClass

        public void setConverterClass​(Class<? extends Converter> converter)
      • setDomConverterClass

        public void setDomConverterClass​(Class<? extends DomConverter> domConverter)
      • getItemAlias

        public String getItemAlias()
        Specified by:
        getItemAlias in interface ParameterDescriptor
        Returns:
        An alias name for the elements of a parameter array. Forces element-wise array conversion from and to DOM representation. Defaults to the empty string (= not set).
      • setItemAlias

        public void setItemAlias​(String itemAlias)