Package io.opencaesar.oml
Interface ScalarProperty
- All Superinterfaces:
AnnotatedElement
,Element
,org.eclipse.emf.ecore.EObject
,Feature
,IdentifiedElement
,Member
,org.eclipse.emf.common.notify.Notifier
,Property
,SemanticProperty
,SpecializableTerm
,Statement
,Term
,VocabularyStatement
- All Known Implementing Classes:
ScalarPropertyImpl
A representation of the model object 'Scalar Property'.
ScalarProperty is a semantic property whose range is a scalar. It can specialize other scalar properties.
It can also be flagged as a key property (among possibly several) that specifies the unique id of its domain.
The following features are supported:
- See Also:
- Generated:
- Model:
- annotation="https://tabatkins.github.io/bikeshed heading='Features'"
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Domain' reference.getRange()
Returns the value of the 'Range' reference.boolean
Returns the value of the 'Functional' attribute.void
setDomain
(Classifier value) Sets the value of the 'Domain
' reference.void
setFunctional
(boolean value) Sets the value of the 'Functional
' attribute.void
Sets the value of the 'Range
' reference.Methods inherited from interface io.opencaesar.oml.AnnotatedElement
getOwnedAnnotations
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 io.opencaesar.oml.Member
getAbbreviatedIri, getIri, getName, setName
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
Methods inherited from interface io.opencaesar.oml.SpecializableTerm
getOwnedSpecializations
Methods inherited from interface io.opencaesar.oml.VocabularyStatement
getOwningVocabulary, setOwningVocabulary
-
Method Details
-
isFunctional
boolean isFunctional()Returns the value of the 'Functional' attribute. Whether this property is functional (has a max of one value per instance)- Specified by:
isFunctional
in interfaceSemanticProperty
- Returns:
- the value of the 'Functional' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setFunctional
void setFunctional(boolean value) Sets the value of the 'Functional
' attribute.- Parameters:
value
- the new value of the 'Functional' attribute.- See Also:
- Generated:
-
getDomain
Classifier getDomain()Returns the value of the 'Domain' reference. The classifier that is the domain of this property- Specified by:
getDomain
in interfaceSemanticProperty
- Returns:
- the value of the 'Domain' reference.
- See Also:
- Generated:
- Model:
- required="true"
-
setDomain
Sets the value of the 'Domain
' reference.- Parameters:
value
- the new value of the 'Domain' reference.- See Also:
- Generated:
-
getRange
Scalar getRange()Returns the value of the 'Range' reference. The scalar that is the range of this property- Specified by:
getRange
in interfaceSemanticProperty
- Returns:
- the value of the 'Range' reference.
- See Also:
- Generated:
- Model:
- required="true"
-
setRange
Sets the value of the 'Range
' reference.- Parameters:
value
- the new value of the 'Range' reference.- See Also:
- Generated:
-