Package io.opencaesar.oml
Interface PropertyValueAssertion
- All Superinterfaces:
Assertion
,Element
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
PropertyValueAssertionImpl
A representation of the model object 'Property Value Assertion'.
PropertyValueAssertion is an [=Assertion=] that specifies a value for a [=property=] on an [=instance=]. The value is either a [=literal=] value
in the case of a [=ScalarProperty=], a contained [=StructureInstance=] value in the case of a [=StructuredProperty=], or a referenced
[=NamedInstance=] value in the case of a [=Relation=].
The following features are supported:
- See Also:
- Generated:
- Model:
- annotation="https://tabatkins.github.io/bikeshed heading='Assertions'"
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Contained Value' containment reference.Returns the value of the 'Literal Value' containment reference.Returns the value of the 'Owning Instance' container reference.Returns the value of the 'Property' reference.Returns the value of the 'Referenced Value' reference.getValue()
Gets the asserted valuevoid
Sets the value of the 'Contained Value
' containment reference.void
setLiteralValue
(Literal value) Sets the value of the 'Literal Value
' containment reference.void
setOwningInstance
(Instance value) Sets the value of the 'Owning Instance
' container reference.void
setProperty
(SemanticProperty value) Sets the value of the 'Property
' reference.void
setReferencedValue
(NamedInstance value) Sets the value of the 'Referenced Value
' reference.Methods inherited from interface io.opencaesar.oml.Element
extraValidate, getOntology
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
-
Method Details
-
getProperty
SemanticProperty getProperty()Returns the value of the 'Property' reference. The property referenced by this assertion- Returns:
- the value of the 'Property' reference.
- See Also:
- Generated:
- Model:
- required="true"
-
setProperty
Sets the value of the 'Property
' reference.- Parameters:
value
- the new value of the 'Property' reference.- See Also:
- Generated:
-
getLiteralValue
Literal getLiteralValue()Returns the value of the 'Literal Value' containment reference. An asserted literal value of a scalar property- Returns:
- the value of the 'Literal Value' containment reference.
- See Also:
- Generated:
- Model:
- containment="true"
-
setLiteralValue
Sets the value of the 'Literal Value
' containment reference.- Parameters:
value
- the new value of the 'Literal Value' containment reference.- See Also:
- Generated:
-
getContainedValue
StructureInstance getContainedValue()Returns the value of the 'Contained Value' containment reference. It is bidirectional and its opposite is 'Owning Assertion
'. An asserted contained value of a structured property- Returns:
- the value of the 'Contained Value' containment reference.
- See Also:
- Generated:
- Model:
- opposite="owningAssertion" containment="true"
-
setContainedValue
Sets the value of the 'Contained Value
' containment reference.- Parameters:
value
- the new value of the 'Contained Value' containment reference.- See Also:
- Generated:
-
getReferencedValue
NamedInstance getReferencedValue()Returns the value of the 'Referenced Value' reference. An asserted referenced value of a relation- Returns:
- the value of the 'Referenced Value' reference.
- See Also:
- Generated:
- Model:
-
setReferencedValue
Sets the value of the 'Referenced Value
' reference.- Parameters:
value
- the new value of the 'Referenced Value' reference.- See Also:
- Generated:
-
getOwningInstance
Instance getOwningInstance()Returns the value of the 'Owning Instance' container reference. It is bidirectional and its opposite is 'Owned Property Values
'. The instance that this property value assertion is about- Returns:
- the value of the 'Owning Instance' container reference.
- See Also:
- Generated:
- Model:
- opposite="ownedPropertyValues" transient="false"
-
setOwningInstance
Sets the value of the 'Owning Instance
' container reference.- Parameters:
value
- the new value of the 'Owning Instance' container reference.- See Also:
- Generated:
-
getValue
Element getValue()Gets the asserted value- Generated:
- Model:
- kind="operation" unique="false"
-
getSubject
Instance getSubject()- Specified by:
getSubject
in interfaceAssertion
- Generated:
- Model:
- kind="operation" unique="false"
-
getObject
Element getObject()
-