COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification

org.eclipse.cosmos.rm.validation.internal.databuilders
Class DataBuilderRegistry

java.lang.Object
  extended by org.eclipse.cosmos.rm.validation.internal.databuilders.DataBuilderRegistry

public class DataBuilderRegistry
extends java.lang.Object

The data builder registery is a singleton class which allows different data builders to register themselves prior to the start of the validation process.


Field Summary
protected  java.util.Map dataStructureBuilders
          Stores the data structure builders
 
Constructor Summary
DataBuilderRegistry()
           
 
Method Summary
 void clear()
          Clears the registry
 IDataBuilder getDataStructureBuilder(java.lang.String id)
          Returns the data structure builder with the passed in id
 java.util.Collection getDataStructureBuilders()
          Returns the data structure builders registered
static DataBuilderRegistry instance()
          Retrieves the instance of this singleton class
 void registerDataStructureBuilder(java.lang.String id, IDataBuilder dataBuilder)
          Register data structure builder, 'dataBuilder', with id: 'id'.
 void unRegisterDataStructureBuilder(java.lang.String id)
          Remove the data structure with the passed in id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataStructureBuilders

protected java.util.Map dataStructureBuilders
Stores the data structure builders

Constructor Detail

DataBuilderRegistry

public DataBuilderRegistry()
Method Detail

instance

public static DataBuilderRegistry instance()
Retrieves the instance of this singleton class

Returns:
The static instance of this class

registerDataStructureBuilder

public void registerDataStructureBuilder(java.lang.String id,
                                         IDataBuilder dataBuilder)
Register data structure builder, 'dataBuilder', with id: 'id'.

Parameters:
id - The id of the data builder
dataBuilder - The data builder

unRegisterDataStructureBuilder

public void unRegisterDataStructureBuilder(java.lang.String id)
Remove the data structure with the passed in id

Parameters:
id - The id of the data structure builder to remove

getDataStructureBuilders

public java.util.Collection getDataStructureBuilders()
Returns the data structure builders registered

Returns:
The registered data structure builders

getDataStructureBuilder

public IDataBuilder getDataStructureBuilder(java.lang.String id)
Returns the data structure builder with the passed in id

Parameters:
id - The id of a data structure builder
Returns:
The data structure builder corresponding to 'id'

clear

public void clear()
Clears the registry


COSMOS ${releaseVersion} resource-modeling Project
Internal API Specification