Interface ModelNamespace

All Known Implementing Classes:
DefaultModelNamespace

public interface ModelNamespace
Represents the namespace the model elements are contained in
  • Method Summary

    Modifier and Type
    Method
    Description
    default List<Aspect>
    Convenience method to get the Aspects in this namespace
    The model elements contained in this namespace
    default String
    The RDF prefix to use for elements in this namespace, e.g.
    The package part of the model namespace is an identifier given in reverse domain name notation, e.g., com.example.myapp.
    default String
    urn()
    The identifier of the namespace, e.g.
    org.eclipse.esmf.aspectmodel.VersionNumber
    The version part of the namespace.
  • Method Details

    • packagePart

      String packagePart()
      The package part of the model namespace is an identifier given in reverse domain name notation, e.g., com.example.myapp.
      Returns:
      the package part of the namespace
    • version

      org.eclipse.esmf.aspectmodel.VersionNumber version()
      The version part of the namespace. This is always a semantic version, e.g. 1.2.3.
      Returns:
      the version part
    • elements

      List<ModelElement> elements()
      The model elements contained in this namespace
      Returns:
      the model elements
    • aspects

      default List<Aspect> aspects()
      Convenience method to get the Aspects in this namespace
      Returns:
      the list of aspects
    • urn

      default String urn()
      The identifier of the namespace, e.g. urn:samm:com.example.myapp:1.2.3
      Returns:
      the identifier
    • elementUrnPrefix

      default String elementUrnPrefix()
      The RDF prefix to use for elements in this namespace, e.g. urn:samm:com.example.myapp:1.2.3#
      Returns:
      the prefix