Package io.opencaesar.oml
Interface RelationBase
- All Superinterfaces:
Element
,org.eclipse.emf.ecore.EObject
,IdentifiedElement
,Member
,org.eclipse.emf.common.notify.Notifier
,SpecializableTerm
,Statement
,Term
,VocabularyMember
,VocabularyStatement
- All Known Subinterfaces:
RelationEntity
,UnreifiedRelation
- All Known Implementing Classes:
RelationBaseImpl
,RelationEntityImpl
,UnreifiedRelationImpl
A representation of the model object 'Relation Base'.
RelationBase is a specializable term that is the abstract superclass of a relation from a source [=entity=] to a target [=entity=].
It can optionally name a [=ReverseRelation=] whose domain is the target and whose range is the source. Such relation can only be
specified on a relation base definition not a ref to an existing one. A relation base can be characterized with several
boolean flags that represent its DL semantics. Such flags apply conversely to the [=ReverseRelation=] (if named).
The following features are supported:
- See Also:
- Generated:
- Model:
- abstract="true" annotation="https://tabatkins.github.io/bikeshed heading='Relations'"
-
Method Summary
Modifier and TypeMethodDescriptionReturns the value of the 'Reverse Relation' containment reference.org.eclipse.emf.common.util.EList<Entity>
Returns the value of the 'Sources' reference list.org.eclipse.emf.common.util.EList<Entity>
Returns the value of the 'Targets' reference list.boolean
Returns the value of the 'Asymmetric' attribute.boolean
Returns the value of the 'Functional' attribute.boolean
Returns the value of the 'Inverse Functional' attribute.boolean
Returns the value of the 'Irreflexive' attribute.boolean
Returns the value of the 'Reflexive' attribute.boolean
Returns the value of the 'Symmetric' attribute.boolean
Returns the value of the 'Transitive' attribute.void
setAsymmetric
(boolean value) Sets the value of the 'Asymmetric
' attribute.void
setFunctional
(boolean value) Sets the value of the 'Functional
' attribute.void
setInverseFunctional
(boolean value) Sets the value of the 'Inverse Functional
' attribute.void
setIrreflexive
(boolean value) Sets the value of the 'Irreflexive
' attribute.void
setReflexive
(boolean value) Sets the value of the 'Reflexive
' attribute.void
Sets the value of the 'Reverse Relation
' containment reference.void
setSymmetric
(boolean value) Sets the value of the 'Symmetric
' attribute.void
setTransitive
(boolean value) Sets the value of the 'Transitive
' attribute.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.IdentifiedElement
getOwnedAnnotations
Methods inherited from interface io.opencaesar.oml.Member
getAbbreviatedIri, getIri, getName, getRef, isRef, resolve, 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
-
getSources
org.eclipse.emf.common.util.EList<Entity> getSources()Returns the value of the 'Sources' reference list. The list contents are of typeEntity
. The entities that represent the sources of this relation base- Returns:
- the value of the 'Sources' reference list.
- See Also:
- Generated:
- Model:
-
getTargets
org.eclipse.emf.common.util.EList<Entity> getTargets()Returns the value of the 'Targets' reference list. The list contents are of typeEntity
. The entities that represent the targets of this relation base- Returns:
- the value of the 'Targets' reference list.
- See Also:
- Generated:
- Model:
-
getReverseRelation
ReverseRelation getReverseRelation()Returns the value of the 'Reverse Relation' containment reference. It is bidirectional and its opposite is 'Relation Base
'. The optional reverse relation of this relation base- Returns:
- the value of the 'Reverse Relation' containment reference.
- See Also:
- Generated:
- Model:
- opposite="relationBase" containment="true"
-
setReverseRelation
Sets the value of the 'Reverse Relation
' containment reference.- Parameters:
value
- the new value of the 'Reverse Relation' containment reference.- See Also:
- Generated:
-
isFunctional
boolean isFunctional()Returns the value of the 'Functional' attribute. Whether this relation base is functional (i.e.,A -> B and A->C => B=C
)- 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:
-
isInverseFunctional
boolean isInverseFunctional()Returns the value of the 'Inverse Functional' attribute. Whether this relation base is inverse functional (i.e.,B->A and C->A => B=C
)- Returns:
- the value of the 'Inverse Functional' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setInverseFunctional
void setInverseFunctional(boolean value) Sets the value of the 'Inverse Functional
' attribute.- Parameters:
value
- the new value of the 'Inverse Functional' attribute.- See Also:
- Generated:
-
isSymmetric
boolean isSymmetric()Returns the value of the 'Symmetric' attribute. Whether this relation base is symmetric (i.e.,A->B => B->A
)- Returns:
- the value of the 'Symmetric' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setSymmetric
void setSymmetric(boolean value) Sets the value of the 'Symmetric
' attribute.- Parameters:
value
- the new value of the 'Symmetric' attribute.- See Also:
- Generated:
-
isAsymmetric
boolean isAsymmetric()Returns the value of the 'Asymmetric' attribute. Whether this relation base is asymmetric (i.e.,A->B => !(B->A)
)- Returns:
- the value of the 'Asymmetric' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setAsymmetric
void setAsymmetric(boolean value) Sets the value of the 'Asymmetric
' attribute.- Parameters:
value
- the new value of the 'Asymmetric' attribute.- See Also:
- Generated:
-
isReflexive
boolean isReflexive()Returns the value of the 'Reflexive' attribute. Whether this relation base is reflexive (i.e.,A => A->A
)- Returns:
- the value of the 'Reflexive' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setReflexive
void setReflexive(boolean value) Sets the value of the 'Reflexive
' attribute.- Parameters:
value
- the new value of the 'Reflexive' attribute.- See Also:
- Generated:
-
isIrreflexive
boolean isIrreflexive()Returns the value of the 'Irreflexive' attribute. Whether this relation base is irreflexive (i.e.,A => !(A->A)
)- Returns:
- the value of the 'Irreflexive' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setIrreflexive
void setIrreflexive(boolean value) Sets the value of the 'Irreflexive
' attribute.- Parameters:
value
- the new value of the 'Irreflexive' attribute.- See Also:
- Generated:
-
isTransitive
boolean isTransitive()Returns the value of the 'Transitive' attribute. Whether this relation base is transitive (i.e.,A->B and B->C => A->C
)- Returns:
- the value of the 'Transitive' attribute.
- See Also:
- Generated:
- Model:
- unique="false"
-
setTransitive
void setTransitive(boolean value) Sets the value of the 'Transitive
' attribute.- Parameters:
value
- the new value of the 'Transitive' attribute.- See Also:
- Generated:
-