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 non-semantic information on an [=IdentifiedElement=].
An annotation is specified with an [=AnnotationProperty=] and an optional [=Literal=] or [=Member=] (referenced) value.
When no value is specified, the boolean literal `true` is assumed to be specified.
The following features are supported:
- See Also:
- Generated:
- Model:
- annotation="https://tabatkins.github.io/bikeshed heading='Elements'"
-
Method Summary
Modifier and TypeMethodDescriptionGets the identified element annotated by this annotationReturns the value of the 'Literal Value' containment reference.Returns the value of the 'Owning Element' container reference.Returns the value of the 'Property' reference.Returns the value of the 'Referenced Value' reference.getValue()
Gets the value of the annotationvoid
setLiteralValue
(Literal value) Sets the value of the 'Literal Value
' containment reference.void
Sets the value of the 'Owning Element
' container reference.void
setProperty
(AnnotationProperty value) Sets the value of the 'Property
' reference.void
setReferencedValue
(Member 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
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:
-
getLiteralValue
Literal getLiteralValue()Returns the value of the 'Literal Value' containment reference. The literal value specified by this annotation- 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:
-
getReferencedValue
Member getReferencedValue()Returns the value of the 'Referenced Value' reference. The referenced value (of a member) specified by this annotation- 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:
-
getOwningElement
IdentifiedElement getOwningElement()Returns the value of the 'Owning Element' container reference. It is bidirectional and its opposite is 'Owned Annotations
'. The identified 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:
-
getValue
Element getValue()Gets the value of the annotation- Generated:
- Model:
- kind="operation" unique="false"
-
getAnnotatedElement
IdentifiedElement getAnnotatedElement()Gets the identified element annotated by this annotation- Generated:
- Model:
- kind="operation" unique="false"
-