public abstract class SourceFileMap extends Object
Constructor and Description |
---|
SourceFileMap() |
Modifier and Type | Method and Description |
---|---|
abstract boolean |
add(String distributionPath,
FileObject sourceFile)
Add new mapping or update existing mapping of the given distribution path.
|
abstract FileObject[] |
findSourceFile(String distributionPath)
Returns the concrete file for the given distribution path.
|
static SourceFileMap |
findSourceMap(FileObject source)
Returns a source file map for the module, or null if none can be identified.
|
static SourceFileMap |
findSourceMap(J2eeModule j2eeModule)
Returns a source file map for the module, or null if none can be identified.
|
abstract String |
getContextName()
Return context name, typically the J2EE module project name.
|
abstract File |
getDistributionPath(FileObject sourceFile)
Returns the relative path in distribution of the given concrete source file.
|
abstract File |
getEnterpriseResourceDir()
Returns directory paths to repository of enterprise resource definition files.
|
abstract File[] |
getEnterpriseResourceDirs()
Returns directory paths to repository of enterprise resource definition files.
|
abstract FileObject[] |
getSourceRoots()
Return source roots this file mapping is operate on.
|
abstract FileObject |
remove(String distributionPath)
Remove mapping for the given distribution path.
|
public abstract FileObject[] findSourceFile(String distributionPath)
distributionPath
- distribution path for to find source file for.public abstract File getDistributionPath(FileObject sourceFile)
sourceFile
- source file for to find the distribution path.public abstract FileObject[] getSourceRoots()
public abstract String getContextName()
public abstract File getEnterpriseResourceDir()
public abstract File[] getEnterpriseResourceDirs()
public abstract boolean add(String distributionPath, FileObject sourceFile)
distributionPath
- file path in the distribution contentsourceFile
- souce concrete file object.public abstract FileObject remove(String distributionPath)
distributionPath
- file path in the distribution contentpublic static final SourceFileMap findSourceMap(FileObject source)
source
- A non-null source file (java, descriptor or dbschema) to establish mapping context.null
public static final SourceFileMap findSourceMap(J2eeModule j2eeModule)
j2eeModule
- module for which the source file map will be returned.null