public interface PathResolvingStrategy
Paths to physical file system
locations.| Modifier and Type | Method and Description |
|---|---|
String |
getCanonicalPath(LogicalPath path,
org.springframework.roo.model.JavaType javaType) |
String |
getCanonicalPath(String moduleName,
Path path,
org.springframework.roo.model.JavaType javaType) |
String |
getFocusedCanonicalPath(Path path,
org.springframework.roo.model.JavaType javaType) |
String |
getFocusedIdentifier(Path path,
String relativePath) |
LogicalPath |
getFocusedPath(Path path) |
String |
getFocusedRoot(Path path) |
String |
getFriendlyName(String identifier)
Converts the presented canonical path into a human-friendly name.
|
String |
getIdentifier(LogicalPath path,
String relativePath)
Produces a canonical path for the presented
LogicalPath and
relative path. |
String |
getIdentifier(String moduleName,
Path path,
String relativePath) |
LogicalPath |
getPath(String identifier)
Attempts to determine which
Path the specified canonical path
falls under. |
LogicalPath |
getPath(String moduleName,
Path path) |
Collection<LogicalPath> |
getPaths() |
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() |
String |
getRoot(LogicalPath path) |
Collection<LogicalPath> |
getSourcePaths() |
boolean |
isActive()
Indicates whether this strategy is active.
|
String getCanonicalPath(LogicalPath path, org.springframework.roo.model.JavaType javaType)
path - the focus pathjavaType - the type tString getCanonicalPath(String moduleName, Path path, org.springframework.roo.model.JavaType javaType)
moduleName - path - javaType - String getFocusedCanonicalPath(Path path, org.springframework.roo.model.JavaType javaType)
path - javaType - String getFocusedIdentifier(Path path, String relativePath)
path - relativePath - LogicalPath getFocusedPath(Path path)
PathResolver.getFocusedPath(Path)String getFriendlyName(String identifier)
identifier - to resolve (required)String getIdentifier(LogicalPath path, String relativePath)
LogicalPath and
relative path.path - to use (required)relativePath - to use (cannot be null, but may be empty if referring
to the path itself)LogicalPath getPath(String identifier)
Path the specified canonical path
falls under.identifier - to lookup (required)Path, or null if the identifier refers to a location
not under a know path.LogicalPath getPath(String moduleName, Path path)
PathResolver.getPath(String, Path)Collection<LogicalPath> getPaths()
PathResolver.getPaths()String getRelativeSegment(String identifier)
Path the specified canonical path
falls under, and then returns the relative portion of the file name.
See
FileDetails.getRelativeSegment(String)
for related information.
String getRoot()
String getRoot(LogicalPath path)
PathResolver.getRoot(LogicalPath)Collection<LogicalPath> getSourcePaths()
PathResolver.getSourcePaths()boolean isActive()
PathResolver will
typically expect exactly one strategy to be active at a time.Copyright © 2009–2017 Pivotal Software, Inc.. All rights reserved.