Class EnumValueConfiguration
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.dto.AbstractEnumConfiguration
-
- com.github.toolarium.enumeration.configuration.dto.EnumValueConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class EnumValueConfiguration extends AbstractEnumConfiguration
Defines the enum value configuration- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumValueConfiguration()Constructor for EnumValueConfiguration
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)EnumValueConfigurationSizinggetCardinality()Get the cardinalityEnumValueConfigurationDataTypegetDataType()Get the configuration value data typejava.lang.StringgetDefaultValue()Get the default valuejava.lang.StringgetExampleValue()Get the example valuejava.lang.StringgetKey()Get the configuration keyEnumValueConfigurationSizinggetValueSize()Get the value sizeinthashCode()booleanisConfidential()Define if the value is confidential or notbooleanisMandatory()AnEnumValueConfigurationis mandatory in case it's not optional and has no default value.booleanisOptional()Define if the value is optional or notvoidsetCardinality(EnumValueConfigurationSizing cardinality)Set the cardinalityvoidsetConfidential(boolean isConfidential)Define if the value is confidential or notvoidsetDataType(EnumValueConfigurationDataType dataType)Set the configuration value data typevoidsetDefaultValue(java.lang.String defaultValue)Set the default valuevoidsetExampleValue(java.lang.String exampleValue)Set the examplevoidsetKey(java.lang.String key)Set the configuration keyvoidsetOptional(boolean isOptional)Define if the value is optional or notvoidsetValueSize(EnumValueConfigurationSizing valueSize)Set the value sizejava.lang.StringtoString()-
Methods inherited from class com.github.toolarium.enumeration.configuration.dto.AbstractEnumConfiguration
getDescription, getValidFrom, getValidTill, setDescription, setValidFrom, setValidTill
-
-
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Get the configuration key- Returns:
- the configuration key
-
setKey
public void setKey(java.lang.String key)
Set the configuration key- Parameters:
key- the configuration key
-
getDataType
public EnumValueConfigurationDataType getDataType()
Get the configuration value data type- Returns:
- the configuration value data type
-
setDataType
public void setDataType(EnumValueConfigurationDataType 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
-
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
-
getValueSize
public EnumValueConfigurationSizing getValueSize()
Get the value size- Returns:
- the value size
-
setValueSize
public void setValueSize(EnumValueConfigurationSizing valueSize)
Set the value size- Parameters:
valueSize- the value size
-
getCardinality
public EnumValueConfigurationSizing getCardinality()
Get the cardinality- Returns:
- the cardinality
-
setCardinality
public void setCardinality(EnumValueConfigurationSizing cardinality)
Set the cardinality- Parameters:
cardinality- the cardinality
-
isOptional
public boolean isOptional()
Define if the value is optional or not- Returns:
- define if the value is optional or not
-
setOptional
public void setOptional(boolean isOptional)
Define if the value is optional or not- Parameters:
isOptional- define if the value is optional or not
-
isConfidential
public boolean isConfidential()
Define if the value is confidential or not- Returns:
- define if the value is confidential or not
-
setConfidential
public void setConfidential(boolean isConfidential)
Define if the value is confidential or not- Parameters:
isConfidential- define if the value is confidential or not
-
isMandatory
public boolean isMandatory()
AnEnumValueConfigurationis mandatory in case it's not optional and has no default value.- Returns:
- true if it is not optinal and has no default value.
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractEnumConfiguration- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractEnumConfiguration- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-