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

public interface RelationBase extends SpecializableTerm
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 Details

    • getSources

      org.eclipse.emf.common.util.EList<Entity> getSources()
      Returns the value of the 'Sources' reference list. The list contents are of type Entity. 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 type Entity. 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

      void setReverseRelation(ReverseRelation value)
      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: