Package io.opencaesar.oml
Interface Annotation
- All Superinterfaces:
Element
,org.eclipse.emf.ecore.EObject
,org.eclipse.emf.common.notify.Notifier
- All Known Implementing Classes:
AnnotationImpl
A representation of the model object 'Annotation'.
Annotation is an element that specifies additional non-semantic information on an annotated element. It can also be
specified on a reference to an ontology member, in which case it is interpreted as if it was specified on the
member itself. An annotation is specified with an annotation property and an optional literal or reference value. When
no value is specified, it is interpreted as a boolean `true` literal.
The following features are supported:
- See Also:
- Generated:
- Model:
- annotation="https://tabatkins.github.io/bikeshed heading='Elements'"
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Owning Element' container reference.Returns the value of the 'Owning Reference' container reference.Returns the value of the 'Property' reference.Returns the value of the 'Reference Value' reference.getValue()
Returns the value of the 'Value' containment reference.void
setOwningElement
(AnnotatedElement value) Sets the value of the 'Owning Element
' container reference.void
setOwningReference
(Reference value) Sets the value of the 'Owning Reference
' container reference.void
setProperty
(AnnotationProperty value) Sets the value of the 'Property
' reference.void
setReferenceValue
(Member value) Sets the value of the 'Reference Value
' reference.void
Sets the value of the 'Value
' containment 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
AnnotationProperty getProperty()Returns the value of the 'Property' reference. The annotation property specified by this annotation- 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:
-
getValue
Literal getValue()Returns the value of the 'Value' containment reference. The literal value specified by this annotation.- Returns:
- the value of the 'Value' containment reference.
- See Also:
- Generated:
- Model:
- containment="true"
-
setValue
Sets the value of the 'Value
' containment reference.- Parameters:
value
- the new value of the 'Value' containment reference.- See Also:
- Generated:
-
getReferenceValue
Member getReferenceValue()Returns the value of the 'Reference Value' reference. The reference value (to a member) specified by this annotation- Returns:
- the value of the 'Reference Value' reference.
- See Also:
- Generated:
- Model:
-
setReferenceValue
Sets the value of the 'Reference Value
' reference.- Parameters:
value
- the new value of the 'Reference Value' reference.- See Also:
- Generated:
-
getOwningElement
AnnotatedElement getOwningElement()Returns the value of the 'Owning Element' container reference. It is bidirectional and its opposite is 'Owned Annotations
'. The annotated element that owns this annotation- Returns:
- the value of the 'Owning Element' container reference.
- See Also:
- Generated:
- Model:
- opposite="ownedAnnotations" transient="false"
-
setOwningElement
Sets the value of the 'Owning Element
' container reference.- Parameters:
value
- the new value of the 'Owning Element' container reference.- See Also:
- Generated:
-
getOwningReference
Reference getOwningReference()Returns the value of the 'Owning Reference' container reference. It is bidirectional and its opposite is 'Owned Annotations
'. The reference that owns this annotation- Returns:
- the value of the 'Owning Reference' container reference.
- See Also:
- Generated:
- Model:
- opposite="ownedAnnotations" transient="false"
-
setOwningReference
Sets the value of the 'Owning Reference
' container reference.- Parameters:
value
- the new value of the 'Owning Reference' container reference.- See Also:
- Generated:
-