Class CDOBranchWrapper
- java.lang.Object
-
- org.eclipse.emf.ecp.cdo.internal.core.CDOBranchWrapper
-
- All Implemented Interfaces:
ECPCheckoutSource
,ECPProviderAware
,ECPRepositoryAware
public class CDOBranchWrapper extends java.lang.Object implements ECPCheckoutSource
Wraps are CDO branch for ECP, so it can be checked out.- Author:
- Eike Stepper
-
-
Constructor Summary
Constructors Constructor Description CDOBranchWrapper(InternalRepository repository, java.lang.String branchPath)
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkout(java.lang.String projectName, ECPProperties projectProperties)
This method is called in order execute the checkout.java.lang.String
getBranchPath()
Returns the branch path of the wrapped CDO branch.java.lang.String
getDefaultCheckoutName()
This return the default name for a project that was checked out.java.lang.String
getName()
Return the name of the wrapped CDO branch.ECPProvider
getProvider()
The Provider this class references in any way.InternalRepository
getRepository()
This returns theECPRepository
this object references in any way.java.lang.String
toString()
-
-
-
Constructor Detail
-
CDOBranchWrapper
public CDOBranchWrapper(InternalRepository repository, java.lang.String branchPath)
Default constructor.- Parameters:
repository
- the repositorybranchPath
- the branch path
-
-
Method Detail
-
getProvider
public ECPProvider getProvider()
The Provider this class references in any way.- Specified by:
getProvider
in interfaceECPProviderAware
- Returns:
- the known
ECPProvider
-
getRepository
public final InternalRepository getRepository()
This returns theECPRepository
this object references in any way.- Specified by:
getRepository
in interfaceECPRepositoryAware
- Returns:
- the known
ECPRepository
-
getBranchPath
public final java.lang.String getBranchPath()
Returns the branch path of the wrapped CDO branch.- Returns:
- String of the path
-
getName
public java.lang.String getName()
Return the name of the wrapped CDO branch.- Returns:
- the name
-
getDefaultCheckoutName
public java.lang.String getDefaultCheckoutName()
This return the default name for a project that was checked out.- Specified by:
getDefaultCheckoutName
in interfaceECPCheckoutSource
- Returns:
- the default name
-
checkout
public void checkout(java.lang.String projectName, ECPProperties projectProperties) throws ECPProjectWithNameExistsException
This method is called in order execute the checkout.- Specified by:
checkout
in interfaceECPCheckoutSource
- Parameters:
projectName
- the name of the project to createprojectProperties
- theECPProperties
to use- Throws:
ECPProjectWithNameExistsException
- is thrown when a project with such a name already exists
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-