|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.internal.xpand2.pr.ProtectedRegionResolverImpl
public class ProtectedRegionResolverImpl
Default implementation of the ProtectedRegionResolver interface.
| Nested Class Summary | |
|---|---|
static class |
ProtectedRegionResolverImpl.ProtectedRegionImpl
|
| Field Summary | |
|---|---|
protected String |
encoding
|
protected boolean |
useBASE64
|
| Constructor Summary | |
|---|---|
ProtectedRegionResolverImpl()
|
|
| Method Summary | |
|---|---|
ProtectedRegion |
createProtectedRegion(String id,
boolean disabled)
Creates a ProtectedRegion instance. |
protected Collection<ProtectedRegionResolverImpl.ProtectedRegionImpl> |
getAllRegions(File file)
Retrieves all Protected Regions from a source file. |
ProtectedRegion |
getProtectedRegion(String id)
Retrieve a ProtectedRegion by its Id. |
void |
init()
Initializes the ProtectedRegionResolver. |
void |
reportRegions(File dumpPath)
Dumps all known protected regions to files. |
void |
setDefaultExcludes(boolean defaultExcludes)
This flag determines whether default file exclusion patterns should be used. |
void |
setFileEncoding(String encoding)
Sets the file encoding to be used when reading files. |
void |
setIgnoreList(String ignoreList)
Sets a custom list of file patterns that should be filtered during scanning of source files and directories. |
void |
setSrcPathes(String srcPathsAsString)
Sets the source paths that should be scanned. |
void |
setUseBASE64(boolean useBASE64)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean useBASE64
protected String encoding
| Constructor Detail |
|---|
public ProtectedRegionResolverImpl()
| Method Detail |
|---|
protected Collection<ProtectedRegionResolverImpl.ProtectedRegionImpl> getAllRegions(File file)
throws ProtectedRegionSyntaxException,
IOException
file - The source file to scan.
ProtectedRegionSyntaxException - If one of the Protected Regions in the file is incomplete or invalid.
IOException - On errors occuring when reading the file
public ProtectedRegion createProtectedRegion(String id,
boolean disabled)
ProtectedRegionResolverProtectedRegion instance.
createProtectedRegion in interface ProtectedRegionResolverid - The Protected Region's Id.disabled - The Protected Region's activation status ( true: disabled, false: enabled)
public ProtectedRegion getProtectedRegion(String id)
ProtectedRegionResolverProtectedRegion by its Id.
getProtectedRegion in interface ProtectedRegionResolverid - The Id of the ProtectedRegion searched for.
null if the Protected
Region is not known to the Resolver.
public void init()
throws IllegalStateException
A second call (already initialized) to this method will return immediately.
IllegalStateException - If a Protected Region Id is detected the second time, i.e. it is not unique.public void reportRegions(File dumpPath)
dumpPath - Directory where the dump files are created within.public void setDefaultExcludes(boolean defaultExcludes)
defaultExcludes - true: Use default file exclusion patterns, false: ignore them, just use
the patterns specified by ignoreListpublic void setFileEncoding(String encoding)
encoding - A valid encoding string.public void setIgnoreList(String ignoreList)
ignoreList - A comma separated list of file patterns to ignore during scan.
public void setSrcPathes(String srcPathsAsString)
throws IllegalArgumentException
srcPathsAsString - A comma separated list of directory paths.
IllegalArgumentException - If one of the passed arguments is not a directory or does not
existpublic void setUseBASE64(boolean useBASE64)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||