Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.common.headless.impl
Class EnvironmentManagerImpl

java.lang.Object
  extended by eu.esdihumboldt.hale.common.headless.impl.EnvironmentManagerImpl
All Implemented Interfaces:
EnvironmentManager, EnvironmentService

public class EnvironmentManagerImpl
extends Object
implements EnvironmentManager

Manages the set of active TransformationEnvironments.

Author:
Simon Templer

Constructor Summary
EnvironmentManagerImpl()
           
 
Method Summary
 void addEnvironment(TransformationEnvironment environment)
          Add a transformation environment.
 TransformationEnvironment getEnvironment(String id)
          Get the transformation environment with the given identifier, if it exists.
 Collection<TransformationEnvironment> getEnvironments()
          Get the available transformation environments.
 void removeEnvironment(String id)
          Remove a transformation environment.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentManagerImpl

public EnvironmentManagerImpl()
Method Detail

getEnvironments

public Collection<TransformationEnvironment> getEnvironments()
Description copied from interface: EnvironmentService
Get the available transformation environments.

Specified by:
getEnvironments in interface EnvironmentService
Returns:
an unmodifiable collection of transformation environments

getEnvironment

public TransformationEnvironment getEnvironment(String id)
Description copied from interface: EnvironmentService
Get the transformation environment with the given identifier, if it exists.

Specified by:
getEnvironment in interface EnvironmentService
Parameters:
id - the identifier
Returns:
the environment matching the identifier or null if there is none

addEnvironment

public void addEnvironment(TransformationEnvironment environment)
Description copied from interface: EnvironmentManager
Add a transformation environment.

Specified by:
addEnvironment in interface EnvironmentManager
Parameters:
environment - the environment to add

removeEnvironment

public void removeEnvironment(String id)
Description copied from interface: EnvironmentManager
Remove a transformation environment.

Specified by:
removeEnvironment in interface EnvironmentManager
Parameters:
id - the identifier of the environment to remove

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d