Class EnumConfiguration
- java.lang.Object
-
- com.github.toolarium.enumeration.configuration.dto.AbstractEnumConfiguration
-
- com.github.toolarium.enumeration.configuration.dto.EnumConfiguration
-
- All Implemented Interfaces:
java.io.Serializable
public class EnumConfiguration extends AbstractEnumConfiguration
Defines the enum configuration- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EnumConfiguration()
ConstructorEnumConfiguration(java.lang.String name)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EnumValueConfiguration
addEnumValueConfiguration(EnumValueConfiguration enumValueConfiguration)
Add a enumeration value configuration and corrects validFrom / validTill in case it's not consistent regarding the parent element.boolean
equals(java.lang.Object obj)
java.util.List<java.lang.String>
getInterfaceList()
Get the interface listjava.util.List<EnumValueConfiguration>
getKeyList()
Get the key listjava.util.List<java.lang.String>
getMarkerInterfaceList()
Get the marker interface listjava.lang.String
getName()
Get the configuration nameint
hashCode()
void
setInterfaceList(java.util.List<java.lang.String> interfaceList)
Set the interface listvoid
setKeyList(java.util.List<EnumValueConfiguration> keyList)
Set the key listvoid
setMarkerInterfaceList(java.util.List<java.lang.String> markerInterfaceList)
Set the marker interface listvoid
setName(java.lang.String name)
Set the configuration namejava.lang.String
toString()
-
Methods inherited from class com.github.toolarium.enumeration.configuration.dto.AbstractEnumConfiguration
getDescription, getValidFrom, getValidTill, setDescription, setValidFrom, setValidTill
-
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Get the configuration name- Returns:
- the configuration name
-
setName
public void setName(java.lang.String name)
Set the configuration name- Parameters:
name
- the configuration name
-
setKeyList
public void setKeyList(java.util.List<EnumValueConfiguration> keyList)
Set the key list- Parameters:
keyList
- the key list
-
getKeyList
public java.util.List<EnumValueConfiguration> getKeyList()
Get the key list- Returns:
- the key list
-
setInterfaceList
public void setInterfaceList(java.util.List<java.lang.String> interfaceList)
Set the interface list- Parameters:
interfaceList
- the interface list
-
getInterfaceList
public java.util.List<java.lang.String> getInterfaceList()
Get the interface list- Returns:
- the interface list
-
setMarkerInterfaceList
public void setMarkerInterfaceList(java.util.List<java.lang.String> markerInterfaceList)
Set the marker interface list- Parameters:
markerInterfaceList
- the marker interface list
-
getMarkerInterfaceList
public java.util.List<java.lang.String> getMarkerInterfaceList()
Get the marker interface list- Returns:
- the marker interface list
-
addEnumValueConfiguration
public EnumValueConfiguration addEnumValueConfiguration(EnumValueConfiguration enumValueConfiguration)
Add a enumeration value configuration and corrects validFrom / validTill in case it's not consistent regarding the parent element.- Parameters:
enumValueConfiguration
- the enumeration value configuration- Returns:
- the added enum value configuration
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classAbstractEnumConfiguration
- See Also:
Object.hashCode()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classAbstractEnumConfiguration
- See Also:
Object.equals(java.lang.Object)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- See Also:
Object.toString()
-
-