org.eclipse.ocl.examples.pivot.model
Class OCLstdlib.RenamingLoader

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.model.OCLstdlib.RenamingLoader
All Implemented Interfaces:
RegisteredContribution<StandardLibraryContribution>, StandardLibraryContribution
Enclosing class:
OCLstdlib

public static class OCLstdlib.RenamingLoader
extends java.lang.Object
implements StandardLibraryContribution

Define an OCL Standard Library contribution that renames the standard contribution to extend a given actual metamodel NsURI. For UML, this ensures that the self-defining OCL meta-namespaces and the self-defining UML meta-namespaces are the same.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.library.StandardLibraryContribution
StandardLibraryContribution.Descriptor
 
Nested classes/interfaces inherited from interface org.eclipse.ocl.examples.pivot.library.RegisteredContribution
RegisteredContribution.AbstractDescriptor<C extends RegisteredContribution<C>>, RegisteredContribution.AbstractRegistry<C extends RegisteredContribution<C>>, RegisteredContribution.Registry<C extends RegisteredContribution<C>>
 
Field Summary
protected  java.lang.String metamodelNsUri
           
 
Fields inherited from interface org.eclipse.ocl.examples.pivot.library.StandardLibraryContribution
REGISTRY
 
Constructor Summary
OCLstdlib.RenamingLoader(java.lang.String metamodelNsUri)
           
 
Method Summary
 StandardLibraryContribution getContribution()
           
 org.eclipse.emf.ecore.resource.Resource getResource()
          Return the resource containing the contribution to the standard library.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

metamodelNsUri

@NonNull
protected final java.lang.String metamodelNsUri
Constructor Detail

OCLstdlib.RenamingLoader

public OCLstdlib.RenamingLoader(@NonNull
                                java.lang.String metamodelNsUri)
Method Detail

getContribution

@NonNull
public StandardLibraryContribution getContribution()
Specified by:
getContribution in interface RegisteredContribution<StandardLibraryContribution>

getResource

@NonNull
public org.eclipse.emf.ecore.resource.Resource getResource()
Description copied from interface: StandardLibraryContribution
Return the resource containing the contribution to the standard library.

Specified by:
getResource in interface StandardLibraryContribution
Returns:
the contributing resource.