org.eclipse.emf.emfstore.internal.client.model
Class WorkspaceLocator

java.lang.Object
  extended by org.eclipse.emf.emfstore.internal.client.model.WorkspaceLocator

public final class WorkspaceLocator
extends Object

This class maintains a mapping for each workspace provider to its ID.


Method Summary
static ESWorkspaceProviderImpl createWorkspaceProviderFor(String workspaceProviderId)
          Creates a workspace and associates it with the given ID.
static ESWorkspaceProviderImpl getWorkspaceById(String workspaceProviderId)
          Retrieves the workspace associated with the given ID.
static boolean hasId(String workspaceProviderId)
          Checks whether a workspace provier exists for the given identifier.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createWorkspaceProviderFor

public static ESWorkspaceProviderImpl createWorkspaceProviderFor(String workspaceProviderId)
Creates a workspace and associates it with the given ID.

Parameters:
workspaceProviderId - the identifier that will be associated with the workspace
Returns:
the created workspace

hasId

public static boolean hasId(String workspaceProviderId)
Checks whether a workspace provier exists for the given identifier.

Parameters:
workspaceProviderId - the workspace provider identifier
Returns:
the resulting boolean

getWorkspaceById

public static ESWorkspaceProviderImpl getWorkspaceById(String workspaceProviderId)
Retrieves the workspace associated with the given ID. If no such workspace can be found, one will be created.

Parameters:
workspaceProviderId - the workspace ID
Returns:
the associated workspace provider, if any


Copyright © 2015. All Rights Reserved.