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 java.lang.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.CDOViewProviderCDOViewProvider.CDOViewProvider2
 
- 
 - 
Field Summary- 
Fields inherited from interface org.eclipse.emf.cdo.view.CDOViewProviderDEFAULT_PRIORITY
 
- 
 - 
Constructor SummaryConstructors Constructor Description AbstractCDOViewProvider()AbstractCDOViewProvider(java.lang.String regex)AbstractCDOViewProvider(java.lang.String regex, int priority)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetActualName()protected java.lang.StringgetDeclaredName()java.lang.StringgetPath(org.eclipse.emf.common.util.URI uri)Should be overridden for non-canonical URI formats!intgetPriority()Returns the priority of this provider.java.lang.StringgetRegex()Returns the regular expression that determines if the provider can handle certain URIorg.eclipse.emf.common.util.URIgetResourceURI(CDOView view, java.lang.String path)Must be overridden for non-canonical URI formats!org.eclipse.emf.common.util.URIgetViewURI(CDOView view)org.eclipse.emf.common.util.URIgetViewURI(org.eclipse.emf.common.util.URI uri)Should be overridden for non-canonical URI formats!booleanmatchesRegex(org.eclipse.emf.common.util.URI uri)Checks if the URI matches with the regular expression of this providervoidsetPriority(int priority)voidsetRegex(java.lang.String regex)java.lang.StringtoString()- 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface org.eclipse.emf.cdo.view.CDOViewProvidergetView
 
- 
 
- 
- 
- 
Method Detail- 
getPrioritypublic int getPriority() Description copied from interface:CDOViewProviderReturns the priority of this provider. Usually used to choose between severalCDOViewProvidersthat match the same repository URI. A higher priority value is preferred in that decision.- Specified by:
- getPriorityin interface- CDOViewProvider
 
 - 
setPrioritypublic void setPriority(int priority) 
 - 
getRegexpublic java.lang.String getRegex() Description copied from interface:CDOViewProviderReturns the regular expression that determines if the provider can handle certain URI- Specified by:
- getRegexin interface- CDOViewProvider
 
 - 
setRegexpublic void setRegex(java.lang.String regex) 
 - 
matchesRegexpublic boolean matchesRegex(org.eclipse.emf.common.util.URI uri) Description copied from interface:CDOViewProviderChecks if the URI matches with the regular expression of this provider- Specified by:
- matchesRegexin interface- CDOViewProvider
 
 - 
getResourceURIpublic org.eclipse.emf.common.util.URI getResourceURI(CDOView view, java.lang.String path) Must be overridden for non-canonical URI formats!- Specified by:
- getResourceURIin interface- CDOViewProvider
- Since:
- 4.0
 
 - 
getViewURIpublic org.eclipse.emf.common.util.URI getViewURI(CDOView view) - Specified by:
- getViewURIin interface- CDOViewProvider.CDOViewProvider2
- Since:
- 4.4
 
 - 
getViewURIpublic org.eclipse.emf.common.util.URI getViewURI(org.eclipse.emf.common.util.URI uri) Should be overridden for non-canonical URI formats!- Specified by:
- getViewURIin interface- CDOViewProvider.CDOViewProvider2
- Since:
- 4.4
 
 - 
getPathpublic java.lang.String getPath(org.eclipse.emf.common.util.URI uri) Should be overridden for non-canonical URI formats!- Specified by:
- getPathin interface- CDOViewProvider.CDOViewProvider2
- Since:
- 4.4
 
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 - 
getDeclaredNameprotected java.lang.String getDeclaredName() - Since:
- 4.12
 
 - 
getActualNameprotected java.lang.String getActualName() - Since:
- 4.12
 
 
- 
 
-