Class BackedModelValue<UnwrappedType>
- java.lang.Object
-
- org.eclipse.epsilon.flock.emc.wrappers.ModelValue<UnwrappedType>
-
- org.eclipse.epsilon.flock.emc.wrappers.BackedModelValue<UnwrappedType>
-
- Direct Known Subclasses:
ModelElement
public abstract class BackedModelValue<UnwrappedType> extends ModelValue<UnwrappedType>
An implementation of ModelValue that is backed by an underlying Java object, which represents a model value.
-
-
Field Summary
Fields Modifier and Type Field Description protected Model
model
protected UnwrappedType
underlyingModelObject
-
Constructor Summary
Constructors Modifier Constructor Description protected
BackedModelValue(Model model, UnwrappedType underlyingModelObject)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
String
toString()
UnwrappedType
unwrap()
-
Methods inherited from class org.eclipse.epsilon.flock.emc.wrappers.ModelValue
createReadOnlyVariable, getEquivalentIn, getUnwrappedEquivalentIn
-
-
-
-
Field Detail
-
model
protected final Model model
-
underlyingModelObject
protected final UnwrappedType underlyingModelObject
-
-
Constructor Detail
-
BackedModelValue
protected BackedModelValue(Model model, UnwrappedType underlyingModelObject)
-
-
Method Detail
-
unwrap
public UnwrappedType unwrap()
- Specified by:
unwrap
in classModelValue<UnwrappedType>
-
equals
public boolean equals(Object o)
- Specified by:
equals
in classModelValue<UnwrappedType>
-
hashCode
public int hashCode()
- Specified by:
hashCode
in classModelValue<UnwrappedType>
-
toString
public String toString()
- Specified by:
toString
in classModelValue<UnwrappedType>
-
-