public abstract class AbstractCDOViewProvider extends Object implements CDOViewProvider
DEFAULT_PRIORITY
Constructor and Description |
---|
AbstractCDOViewProvider() |
AbstractCDOViewProvider(String regex) |
AbstractCDOViewProvider(String regex,
int priority) |
Modifier and Type | Method and Description |
---|---|
int |
getPriority()
Returns the priority of this provider.
|
String |
getRegex()
Returns the regular expression that determines if the provider can handle certain URI
|
URI |
getResourceURI(CDOView view,
String path)
Must be overwritten for non-canonical URI formats!
|
boolean |
matchesRegex(URI uri)
Checks if the URI matches with the regular expression of this provider
|
void |
setPriority(int priority) |
void |
setRegex(String regex) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getView
public AbstractCDOViewProvider()
public AbstractCDOViewProvider(String regex, int priority)
public AbstractCDOViewProvider(String regex)
public int getPriority()
CDOViewProvider
CDOViewProvider
that
match the same repository URI.getPriority
in interface CDOViewProvider
public void setPriority(int priority)
public String getRegex()
CDOViewProvider
getRegex
in interface CDOViewProvider
public void setRegex(String regex)
public boolean matchesRegex(URI uri)
CDOViewProvider
matchesRegex
in interface CDOViewProvider
public URI getResourceURI(CDOView view, String path)
getResourceURI
in interface CDOViewProvider
Copyright (c) 2011, 2012 Eike Stepper (Berlin, Germany) and others.