Package org.eclipse.esmf.metamodel.impl
Class DefaultModelNamespace
java.lang.Object
org.eclipse.esmf.metamodel.impl.DefaultModelNamespace
- All Implemented Interfaces:
ModelNamespace
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultModelNamespace(String packagePart, org.eclipse.esmf.aspectmodel.VersionNumber versionNumber, List<ModelElement> elements) -
Method Summary
Modifier and TypeMethodDescriptionelements()The model elements contained in this namespacestatic ModelNamespaceAccepts a namespace URI such as 'urn:samm:com.example:1.0.0'static ModelNamespacefrom(String uri, List<ModelElement> elements) Accepts a namespace URI such as 'urn:samm:com.example:1.0.0'The package part of the model namespace is an identifier given in reverse domain name notation, e.g., com.example.myapp.org.eclipse.esmf.aspectmodel.VersionNumberversion()The version part of the namespace.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.eclipse.esmf.metamodel.ModelNamespace
aspects, elementUrnPrefix, urn
-
Constructor Details
-
DefaultModelNamespace
public DefaultModelNamespace(String packagePart, org.eclipse.esmf.aspectmodel.VersionNumber versionNumber, List<ModelElement> elements)
-
-
Method Details
-
from
Accepts a namespace URI such as 'urn:samm:com.example:1.0.0'- Parameters:
uri- the namspace urielements- the list of elements in the namspace- Returns:
- the model namespace
-
from
Accepts a namespace URI such as 'urn:samm:com.example:1.0.0'- Parameters:
uri- the namspace uri- Returns:
- the model namespace
-
packagePart
Description copied from interface:ModelNamespaceThe package part of the model namespace is an identifier given in reverse domain name notation, e.g., com.example.myapp.- Specified by:
packagePartin interfaceModelNamespace- Returns:
- the package part of the namespace
-
version
public org.eclipse.esmf.aspectmodel.VersionNumber version()Description copied from interface:ModelNamespaceThe version part of the namespace. This is always a semantic version, e.g. 1.2.3.- Specified by:
versionin interfaceModelNamespace- Returns:
- the version part
-
elements
Description copied from interface:ModelNamespaceThe model elements contained in this namespace- Specified by:
elementsin interfaceModelNamespace- Returns:
- the model elements
-