Class MandatoryClassifierSettings
- java.lang.Object
-
- net.ssehub.easy.varModel.model.filter.mandatoryVars.MandatoryClassifierSettings
-
public class MandatoryClassifierSettings extends java.lang.ObjectSettings for theMandatoryDeclarationClassifier.- Author:
- El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private booleanconsiderDefaultValuesConsider default values as already assigned values.private booleanconsiderEnumerationsAsMandatoryConsider enumeration variables as mandatory, even if they don't have a default value.
-
Constructor Summary
Constructors Constructor Description MandatoryClassifierSettings()Creates default settings.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) booleanconsiderDefaultValues()Returns whether default values should be threaten as already set values.voidsetDefaultValueConsideration(boolean considerDefaultValues)Specification, whether default values shall be considered.voidsetTreatEnumsAsMandatory(boolean considerEnumerationsAsMandatory)Specification, whether enumeration variables shall be considered as mandatory as exactly one value should be selected.(package private) booleantreatEnumsAsMandatory()Returns whether enumumeration variables shall be treaten as mandatory variables.
-
-
-
Field Detail
-
considerDefaultValues
private boolean considerDefaultValues
Consider default values as already assigned values. true: Variables with default values are not mandatory, as there is already a value specified (default) false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
-
considerEnumerationsAsMandatory
private boolean considerEnumerationsAsMandatory
Consider enumeration variables as mandatory, even if they don't have a default value. true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables (default)
-
-
Method Detail
-
considerDefaultValues
boolean considerDefaultValues()
Returns whether default values should be threaten as already set values.- Returns:
- true: Variables with default values are not mandatory, as there is already a value specified false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
-
setDefaultValueConsideration
public void setDefaultValueConsideration(boolean considerDefaultValues)
Specification, whether default values shall be considered.- Parameters:
considerDefaultValues- true: Variables with default values are not mandatory, as there is already a value specified false: Variables with default values should be (re-)assigned by the user, if used in a constraint.
-
treatEnumsAsMandatory
boolean treatEnumsAsMandatory()
Returns whether enumumeration variables shall be treaten as mandatory variables.- Returns:
- true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables
-
setTreatEnumsAsMandatory
public void setTreatEnumsAsMandatory(boolean considerEnumerationsAsMandatory)
Specification, whether enumeration variables shall be considered as mandatory as exactly one value should be selected.- Parameters:
considerEnumerationsAsMandatory- true: Enumerations are mandatory, as they enforce to select exact one value. false: Enumerations are not mandatory, as all other variables
-
-