public abstract class AbstractCDOViewProvider extends Object implements CDOViewProvider.CDOViewProvider2
CDOViewProvider.CDOViewProvider2
DEFAULT_PRIORITY
Constructor and Description |
---|
AbstractCDOViewProvider() |
AbstractCDOViewProvider(String regex) |
AbstractCDOViewProvider(String regex,
int priority) |
Modifier and Type | Method and Description |
---|---|
String |
getPath(URI uri)
Should be overwritten for non-canonical URI formats!
|
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!
|
URI |
getViewURI(CDOView view) |
URI |
getViewURI(URI uri)
Should 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) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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
public final URI getViewURI(CDOView view)
getViewURI
in interface CDOViewProvider.CDOViewProvider2
public URI getViewURI(URI uri)
getViewURI
in interface CDOViewProvider.CDOViewProvider2
public String getPath(URI uri)
getPath
in interface CDOViewProvider.CDOViewProvider2
Copyright (c) 2014 Eike Stepper (Berlin, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html