org.eclipse.ocl.examples.emf.validation.validity.export
Class ValidityExporterRegistry

java.lang.Object
  extended by org.eclipse.ocl.examples.emf.validation.validity.export.ValidityExporterRegistry

public class ValidityExporterRegistry
extends java.lang.Object

This will contain all ocl-export extension that have been parsed from the extension point.


Field Summary
static ValidityExporterRegistry INSTANCE
           
 
Method Summary
 void addExporter(IValidityExporterDescriptor exporter)
          Adds an extension to the registry.
 void clearRegistry()
          Removes all extensions from the registry.
 IValidityExporter getExporter(java.lang.String exporterType)
           
 java.util.Collection<IValidityExporterDescriptor> getRegisteredExtensions()
          Returns a copy of the registered extensions list.
static void initialize(ValidityExporterRegistry registry)
           
 void removeExtension(java.lang.String exporterType)
          Removes a phantom from the registry.
 
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 ValidityExporterRegistry INSTANCE
Method Detail

initialize

public static void initialize(@NonNull
                              ValidityExporterRegistry registry)

addExporter

public void addExporter(@NonNull
                        IValidityExporterDescriptor exporter)
Adds an extension to the registry.

Parameters:
exporter -

clearRegistry

public void clearRegistry()
Removes all extensions from the registry. This will be called at plugin stopping.


getExporter

@Nullable
public IValidityExporter getExporter(@NonNull
                                              java.lang.String exporterType)

getRegisteredExtensions

public java.util.Collection<IValidityExporterDescriptor> getRegisteredExtensions()
Returns a copy of the registered extensions list.

Returns:
A copy of the registered extensions list.

removeExtension

public void removeExtension(@NonNull
                            java.lang.String exporterType)
Removes a phantom from the registry.

Parameters:
exporterType -