Interface Import

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier
All Known Implementing Classes:
ImportImpl

public interface Import extends Element
A representation of the model object 'Import'. Import is an element owned by an [=ontology=] and specifies that it imports another ontology. The imported ontology is referenced by its namespace and an optional prefix that is locally unique within the importing ontology. Import can be of several [=ImportKind=] based on the following rules: - Vocabulary (`extends` Vocabulary, `uses` Description) - Description (`extends` Description, `uses` Vocabulary) - VocabularyBundle (`extends` VocabularyBundle, `includes` Vocabulary) - DescriptionBundle (`extends` DescriptionBundle, `includes` Description, `uses` VocabularyBundle, `uses` Vocabulary)

The following features are supported:

See Also:
Generated:
Model:
annotation="https://tabatkins.github.io/bikeshed heading='Elements'"
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the imported ontology's IRI
    Returns the value of the 'Kind' attribute.
    Returns the value of the 'Namespace' attribute.
    Returns the value of the 'Owning Ontology' container reference.
    Returns the value of the 'Prefix' attribute.
    Gets the imported ontology's namespace's separator character [=SeparatorKinds=]
    void
    Sets the value of the 'Kind' attribute.
    void
    Sets the value of the 'Namespace' attribute.
    void
    Sets the value of the 'Owning Ontology' container reference.
    void
    Sets the value of the 'Prefix' 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 org.eclipse.emf.common.notify.Notifier

    eAdapters, eDeliver, eNotify, eSetDeliver
  • Method Details

    • getKind

      ImportKind getKind()
      Returns the value of the 'Kind' attribute. The literals are from the enumeration ImportKind. The kind of this import
      Returns:
      the value of the 'Kind' attribute.
      See Also:
      Generated:
      Model:
      unique="false" required="true"
    • setKind

      void setKind(ImportKind value)
      Sets the value of the 'Kind' attribute.
      Parameters:
      value - the new value of the 'Kind' attribute.
      See Also:
      Generated:
    • getNamespace

      String getNamespace()
      Returns the value of the 'Namespace' attribute. The namespace of the imported ontology
      Returns:
      the value of the 'Namespace' attribute.
      See Also:
      Generated:
      Model:
      unique="false" dataType="io.opencaesar.oml.Namespace" required="true"
    • setNamespace

      void setNamespace(String value)
      Sets the value of the 'Namespace' attribute.
      Parameters:
      value - the new value of the 'Namespace' attribute.
      See Also:
      Generated:
    • getPrefix

      String getPrefix()
      Returns the value of the 'Prefix' attribute. The (locally unique) namespace prefix of the imported ontology
      Returns:
      the value of the 'Prefix' attribute.
      See Also:
      Generated:
      Model:
      unique="false" dataType="io.opencaesar.oml.ID"
    • setPrefix

      void setPrefix(String value)
      Sets the value of the 'Prefix' attribute.
      Parameters:
      value - the new value of the 'Prefix' attribute.
      See Also:
      Generated:
    • getOwningOntology

      Ontology getOwningOntology()
      Returns the value of the 'Owning Ontology' container reference. It is bidirectional and its opposite is 'Owned Imports'. The ontology that owns this import
      Returns:
      the value of the 'Owning Ontology' container reference.
      See Also:
      Generated:
      Model:
      opposite="ownedImports" required="true" transient="false"
    • setOwningOntology

      void setOwningOntology(Ontology value)
      Sets the value of the 'Owning Ontology' container reference.
      Parameters:
      value - the new value of the 'Owning Ontology' container reference.
      See Also:
      Generated:
    • getIri

      String getIri()
      Gets the imported ontology's IRI
      Generated:
      Model:
      kind="operation" unique="false"
    • getSeparator

      SeparatorKind getSeparator()
      Gets the imported ontology's namespace's separator character [=SeparatorKinds=]
      Generated:
      Model:
      kind="operation" unique="false"