Class StructuredValue
- java.lang.Object
-
- net.ssehub.easy.varModel.model.values.Value
-
- net.ssehub.easy.varModel.model.values.StructuredValue
-
- Direct Known Subclasses:
CompoundValue,ContainerValue
abstract class StructuredValue extends Value
Super class ofContainerValueandCompoundValue.- Author:
- beck, El-Sharkawy
-
-
Field Summary
Fields Modifier and Type Field Description private IValueParentvalueParent
-
Constructor Summary
Constructors Modifier Constructor Description (package private)StructuredValue()Constructor for serialization.protectedStructuredValue(StructuredDatatype type)Constructor for the Class.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description IValueParentgetValueParent()Returns the value parent.booleanisConfigured()Abstract Method to check whether a value is configured.abstract booleanisFullyConfigured()Method to check, whether each object of the Value has a value assigned.voidsetValueParent(IValueParent valueParent)Changes the value parent.-
Methods inherited from class net.ssehub.easy.varModel.model.values.Value
accept, clone, equals, equals, equalsPartially, equalsPartially, getContainedType, getType, getValue, hashCode, setValue, stringValueOf, toString
-
-
-
-
Field Detail
-
valueParent
private IValueParent valueParent
-
-
Constructor Detail
-
StructuredValue
StructuredValue()
Constructor for serialization.
-
StructuredValue
protected StructuredValue(StructuredDatatype type)
Constructor for the Class.- Parameters:
type- the type of the specific object.
-
-
Method Detail
-
isFullyConfigured
public abstract boolean isFullyConfigured()
Method to check, whether each object of the Value has a value assigned.- Returns:
- true if all sub-elements are configured, else false
-
isConfigured
public final boolean isConfigured()
Description copied from class:ValueAbstract Method to check whether a value is configured.- Specified by:
isConfiguredin classValue- Returns:
- true = it is configured / false = it is not
-
setValueParent
public void setValueParent(IValueParent valueParent)
Description copied from class:ValueChanges the value parent.- Overrides:
setValueParentin classValue- Parameters:
valueParent- the parent
-
getValueParent
public IValueParent getValueParent()
Description copied from class:ValueReturns the value parent.- Overrides:
getValueParentin classValue- Returns:
- the parent (may be null for none)
-
-