Package org.eclipse.emf.cdo.view
Class AbstractCDOViewProvider
java.lang.Object
org.eclipse.emf.cdo.view.AbstractCDOViewProvider
- All Implemented Interfaces:
CDOViewProvider
,CDOViewProvider.CDOViewProvider2
- Direct Known Subclasses:
CDONet4jViewProvider
,ManagedContainerViewProvider
public abstract class AbstractCDOViewProvider
extends Object
implements CDOViewProvider.CDOViewProvider2
Base logic to handle CDOViewProvider priority and regular expression.
- Since:
- 2.0
- Author:
- Victor Roldan Betancort
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider
CDOViewProvider.CDOViewProvider2
-
Field Summary
Fields inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider
DEFAULT_PRIORITY
-
Constructor Summary
ConstructorDescriptionAbstractCDOViewProvider
(String regex) AbstractCDOViewProvider
(String regex, int priority) -
Method Summary
Modifier and TypeMethodDescriptionprotected String
protected String
Should be overridden for non-canonical URI formats!int
Returns the priority of this provider.getRegex()
Returns the regular expression that determines if the provider can handle certain URIgetResourceURI
(CDOView view, String path) Must be overridden for non-canonical URI formats!getViewURI
(CDOView view) getViewURI
(URI uri) Should be overridden for non-canonical URI formats!boolean
matchesRegex
(URI uri) Checks if the URI matches with the regular expression of this providerprotected static String
schemeRegex
(String scheme) void
setPriority
(int priority) void
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.eclipse.emf.cdo.view.CDOViewProvider
getView
-
Constructor Details
-
AbstractCDOViewProvider
public AbstractCDOViewProvider() -
AbstractCDOViewProvider
-
AbstractCDOViewProvider
-
-
Method Details
-
getPriority
public int getPriority()Description copied from interface:CDOViewProvider
Returns the priority of this provider. Usually used to choose between severalCDOViewProviders
that match the same repository URI. A higher priority value is preferred in that decision.- Specified by:
getPriority
in interfaceCDOViewProvider
-
setPriority
public void setPriority(int priority) -
getRegex
Description copied from interface:CDOViewProvider
Returns the regular expression that determines if the provider can handle certain URI- Specified by:
getRegex
in interfaceCDOViewProvider
-
setRegex
-
matchesRegex
Description copied from interface:CDOViewProvider
Checks if the URI matches with the regular expression of this provider- Specified by:
matchesRegex
in interfaceCDOViewProvider
-
getResourceURI
Must be overridden for non-canonical URI formats!- Specified by:
getResourceURI
in interfaceCDOViewProvider
- Since:
- 4.0
-
getViewURI
- Specified by:
getViewURI
in interfaceCDOViewProvider.CDOViewProvider2
- Since:
- 4.4
-
getViewURI
Should be overridden for non-canonical URI formats!- Specified by:
getViewURI
in interfaceCDOViewProvider.CDOViewProvider2
- Since:
- 4.4
-
getPath
Should be overridden for non-canonical URI formats!- Specified by:
getPath
in interfaceCDOViewProvider.CDOViewProvider2
- Since:
- 4.4
-
toString
-
getDeclaredName
- Since:
- 4.12
-
getActualName
- Since:
- 4.12
-
schemeRegex
- Since:
- 4.24
-