Package org.eclipse.esmf.metamodel
Interface ModelNamespace
- All Known Implementing Classes:
DefaultModelNamespace
public interface ModelNamespace
Represents the namespace the model elements are contained in
-
Method Summary
Modifier and TypeMethodDescriptionaspects()Convenience method to get the Aspects in this namespaceelements()The model elements contained in this namespacedefault StringThe 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 Stringurn()The identifier of the namespace, e.g.org.eclipse.esmf.aspectmodel.VersionNumberversion()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
Convenience method to get the Aspects in this namespace- Returns:
- the list of aspects
-
urn
The identifier of the namespace, e.g. urn:samm:com.example.myapp:1.2.3- Returns:
- the identifier
-
elementUrnPrefix
The RDF prefix to use for elements in this namespace, e.g. urn:samm:com.example.myapp:1.2.3#- Returns:
- the prefix
-