Package io.opencaesar.oml
Interface PropertyValueRestrictionAxiom
- All Superinterfaces:
Axiom
,Element
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
,PropertyRestrictionAxiom
- All Known Implementing Classes:
PropertyValueRestrictionAxiomImpl
A representation of the model object 'Property Value Restriction Axiom'.
PropertyValueRestrictionAxiom is a [=PropertyRestrictionAxiom=] that restricts a [=property=] in a given domain to a specific
value. 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='Axioms'"
-
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 'Referenced Value' reference.getValue()
Gets the restricted valuevoid
Sets the value of the 'Contained Value
' containment reference.void
setLiteralValue
(Literal value) Sets the value of the 'Literal Value
' containment 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
Methods inherited from interface io.opencaesar.oml.PropertyRestrictionAxiom
getCharacterizedTerm, getOwningAxiom, getOwningClassifier, getProperty, getRestrictingDomain, setOwningAxiom, setOwningClassifier, setProperty
-
Method Details
-
getLiteralValue
Literal getLiteralValue()Returns the value of the 'Literal Value' containment reference. A restricted 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 Axiom
'. A restricted contained value (of a structured property)- Returns:
- the value of the 'Contained Value' containment reference.
- See Also:
- Generated:
- Model:
- opposite="owningAxiom" 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. A restricted 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:
-
getValue
Element getValue()Gets the restricted value- Generated:
- Model:
- kind="operation" unique="false"
-