org.eclipse.ocl.examples.pivot.registry
Class CompleteOCLRegistry

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.registry.CompleteOCLRegistry

public class CompleteOCLRegistry
extends java.lang.Object

This registry will be used to hold all complete ocl resources that have been made available through the extension point.

Author:
Marwa Rostren

Nested Class Summary
static class CompleteOCLRegistry.Registration
          A Registration identifies a contribution to a Registry enabling the registry to be rebuilt if a registration is removed.
 
Field Summary
static CompleteOCLRegistry INSTANCE
           
 
Constructor Summary
  CompleteOCLRegistry()
           
protected CompleteOCLRegistry(java.util.Map<CompleteOCLRegistry.Registration,java.lang.Integer> registrations)
           
 
Method Summary
 void addRegistration(CompleteOCLRegistry.Registration registration)
           
 void clear()
           
 java.util.Set<org.eclipse.emf.common.util.URI> getResourceURIs(java.lang.Iterable<java.lang.String> nsURIs)
          Returns all document resource URIs that provide content for any of the nsURIs
 java.util.Set<org.eclipse.emf.common.util.URI> getResourceURIs(org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          Returns all document resource URIs that provide content for any EPackege nsURI in resourceSet
 void removeRegistration(CompleteOCLRegistry.Registration registration)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

@NonNull
public static final CompleteOCLRegistry INSTANCE
Constructor Detail

CompleteOCLRegistry

public CompleteOCLRegistry()

CompleteOCLRegistry

protected CompleteOCLRegistry(@Nullable
                              java.util.Map<CompleteOCLRegistry.Registration,java.lang.Integer> registrations)
Method Detail

addRegistration

public void addRegistration(@NonNull
                            CompleteOCLRegistry.Registration registration)

clear

public void clear()

getResourceURIs

@NonNull
public java.util.Set<org.eclipse.emf.common.util.URI> getResourceURIs(@NonNull
                                                                              org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Returns all document resource URIs that provide content for any EPackege nsURI in resourceSet


getResourceURIs

@NonNull
public java.util.Set<org.eclipse.emf.common.util.URI> getResourceURIs(@NonNull
                                                                              java.lang.Iterable<java.lang.String> nsURIs)
Returns all document resource URIs that provide content for any of the nsURIs


removeRegistration

public void removeRegistration(@NonNull
                               CompleteOCLRegistry.Registration registration)