Class EnumKeyValueConfiguration

  • All Implemented Interfaces:
    java.io.Serializable

    public class EnumKeyValueConfiguration
    extends EnumKeyConfiguration
    Defines the enum value configuration
    See Also:
    Serialized Form
    • Constructor Detail

      • EnumKeyValueConfiguration

        public EnumKeyValueConfiguration()
        Constructor for EnumKeyValueConfiguration
    • Method Detail

      • setDataType

        public void setDataType​(EnumKeyValueConfigurationDataType dataType)
        Set the configuration value data type
        Parameters:
        dataType - the configuration value data type
      • getDefaultValue

        public java.lang.String getDefaultValue()
        Get the default value
        Returns:
        the default value
      • setDefaultValue

        public void setDefaultValue​(java.lang.String defaultValue)
        Set the default value
        Parameters:
        defaultValue - the default value
      • hasDefaultValue

        public boolean hasDefaultValue()
        Check if a default value exist.
        Returns:
        true if a default value exist.
      • getExampleValue

        public java.lang.String getExampleValue()
        Get the example value
        Returns:
        the example value
      • setExampleValue

        public void setExampleValue​(java.lang.String exampleValue)
        Set the example
        Parameters:
        exampleValue - the example value
      • getEnumerationValue

        public java.lang.String getEnumerationValue()
        Get the enumeration value
        Returns:
        the enumeration value
      • setEnumerationValue

        public void setEnumerationValue​(java.lang.String enumerationValue)
        Set the enumeration value
        Parameters:
        enumerationValue - the enumeration value
      • setCardinality

        public void setCardinality​(EnumKeyValueConfigurationSizing<java.lang.Integer> cardinality)
        Set the cardinality
        Parameters:
        cardinality - the cardinality
      • isMandatory

        public boolean isMandatory()
        An EnumKeyValueConfiguration is mandatory in case the cardinality is defined and the min value is > 0.
        Returns:
        true if it is not optinal.
      • isUniqueness

        public boolean isUniqueness()
        Specifies that the input value is unique. This is only relevant if you have a cardinality.
        Returns:
        True if it is unique; otherwise false, which means that the same value can occur more than once.
      • setUniqueness

        public void setUniqueness​(boolean isUniqueness)
        Specifies that the input value is unique. This is only relevant if you have a cardinality.
        Parameters:
        isUniqueness - True if it is unique; otherwise false, which means that the same value can occur more than once.
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class EnumKeyConfiguration
        See Also:
        Object.equals(java.lang.Object)