Class DefaultModelNamespace

java.lang.Object
org.eclipse.esmf.metamodel.impl.DefaultModelNamespace
All Implemented Interfaces:
ModelNamespace

public class DefaultModelNamespace extends Object implements ModelNamespace
  • Constructor Details

    • DefaultModelNamespace

      public DefaultModelNamespace(String packagePart, org.eclipse.esmf.aspectmodel.VersionNumber versionNumber, List<ModelElement> elements)
  • Method Details

    • from

      public static ModelNamespace from(String uri, List<ModelElement> elements)
      Accepts a namespace URI such as 'urn:samm:com.example:1.0.0'
      Parameters:
      uri - the namspace uri
      elements - the list of elements in the namspace
      Returns:
      the model namespace
    • from

      public static ModelNamespace from(String uri)
      Accepts a namespace URI such as 'urn:samm:com.example:1.0.0'
      Parameters:
      uri - the namspace uri
      Returns:
      the model namespace
    • packagePart

      public String packagePart()
      Description copied from interface: ModelNamespace
      The package part of the model namespace is an identifier given in reverse domain name notation, e.g., com.example.myapp.
      Specified by:
      packagePart in interface ModelNamespace
      Returns:
      the package part of the namespace
    • version

      public org.eclipse.esmf.aspectmodel.VersionNumber version()
      Description copied from interface: ModelNamespace
      The version part of the namespace. This is always a semantic version, e.g. 1.2.3.
      Specified by:
      version in interface ModelNamespace
      Returns:
      the version part
    • elements

      public List<ModelElement> elements()
      Description copied from interface: ModelNamespace
      The model elements contained in this namespace
      Specified by:
      elements in interface ModelNamespace
      Returns:
      the model elements