public abstract class AbstractPathResolvingStrategy extends Object implements PathResolvingStrategy
PathResolvingStrategy implementations.| Modifier and Type | Field and Description |
|---|---|
protected static String |
ROOT_MODULE |
| Constructor and Description |
|---|
AbstractPathResolvingStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext context) |
protected abstract PhysicalPath |
getApplicablePhysicalPath(String identifier) |
String |
getFriendlyName(String identifier)
Converts the presented canonical path into a human-friendly name.
|
LogicalPath |
getPath(String identifier)
Attempts to determine which
Path the specified canonical path
falls under. |
Collection<LogicalPath> |
getPaths() |
protected abstract Collection<LogicalPath> |
getPaths(boolean sourceOnly)
Obtains the
Paths. |
String |
getRelativeSegment(String identifier)
Attempts to determine which
Path the specified canonical path
falls under, and then returns the relative portion of the file name. |
String |
getRoot() |
Collection<LogicalPath> |
getSourcePaths() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetCanonicalPath, getCanonicalPath, getFocusedCanonicalPath, getFocusedIdentifier, getFocusedPath, getFocusedRoot, getIdentifier, getIdentifier, getPath, getRoot, isActiveprotected static final String ROOT_MODULE
protected void activate(org.osgi.service.component.ComponentContext context)
protected abstract PhysicalPath getApplicablePhysicalPath(String identifier)
public String getFriendlyName(String identifier)
PathResolvingStrategygetFriendlyName in interface PathResolvingStrategyidentifier - to resolve (required)public LogicalPath getPath(String identifier)
PathResolvingStrategyPath the specified canonical path
falls under.getPath in interface PathResolvingStrategyidentifier - to lookup (required)Path, or null if the identifier refers to a location
not under a know path.public Collection<LogicalPath> getPaths()
getPaths in interface PathResolvingStrategyPathResolver.getPaths()protected abstract Collection<LogicalPath> getPaths(boolean sourceOnly)
Paths.requireSource - true to return only paths containing
Java source code, or false to return all pathsnull)public String getRelativeSegment(String identifier)
PathResolvingStrategyPath the specified canonical path
falls under, and then returns the relative portion of the file name.
See
FileDetails.getRelativeSegment(String)
for related information.
getRelativeSegment in interface PathResolvingStrategyidentifier - to resolve (required)Path directly), or null if the
identifier does not have a corresponding Pathpublic String getRoot()
getRoot in interface PathResolvingStrategypublic Collection<LogicalPath> getSourcePaths()
getSourcePaths in interface PathResolvingStrategyPathResolver.getSourcePaths()Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.