Validation

org.topcased.validation.ocl.extension
Class OCLMetamodelManager

java.lang.Object
  extended by AbstractExtensionManager
      extended by org.topcased.validation.ocl.extension.OCLMetamodelManager

public class OCLMetamodelManager
extends AbstractExtensionManager

Class that stores the validators registered with the validators extension point.


Method Summary
protected  void addExtension(org.eclipse.core.runtime.IExtension extension)
           
 OCLFileDescriptor find(java.lang.String id)
          Find a descriptor in the registry.
 OCLFileDescriptor[] getFiles()
          Get an enumeration of OCL File descriptors.
 OCLFileDescriptor[] getFiles(java.lang.String uri)
          Get the enumeration of OCL files registered for the given metamodel URI
static OCLMetamodelManager getInstance()
          Get the shared instance.
protected  void removeExtension(org.eclipse.core.runtime.IExtension extension)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static OCLMetamodelManager getInstance()
Get the shared instance.

Returns:
the validators manager

find

public OCLFileDescriptor find(java.lang.String id)
Find a descriptor in the registry.

Parameters:
id - the searched validator id
Returns:
the OCLFile Descriptor or null if not found

addExtension

protected void addExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#addExtension(org.eclipse.core.runtime.IExtension)

removeExtension

protected void removeExtension(org.eclipse.core.runtime.IExtension extension)
See Also:
org.topcased.facilities.extensions.AbstractExtensionManager#removeExtension(org.eclipse.core.runtime.IExtension)

getFiles

public OCLFileDescriptor[] getFiles()
Get an enumeration of OCL File descriptors.

Returns:
The registered OCL files

getFiles

public OCLFileDescriptor[] getFiles(java.lang.String uri)
Get the enumeration of OCL files registered for the given metamodel URI

Parameters:
uri - the metamodel URI
Returns:
the list of OCL files

Validation

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.