public class FileSet
extends java.lang.Object
This is used to populate the references
and operations
lists, when either reading from
the p2j.cfg.xml configuration file
, or from an explicit file, when the -Z
option is used
at the TransformDriver
or if the <file-set filename="">
attribute is set in
p2j.cfg.xml
.
To load from an explicit file, use FileListFactory.loadFileSet(java.lang.String, java.io.PrintStream)
.
To process the file-set and create an explicit file-list, use FileListFactory.processFileSet(com.goldencode.p2j.cfg.FileSet, boolean)
.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
filename
The target file with the file-set configuration.
|
private java.util.List<FilterOperation> |
operations
The list of Include and eXclude operations to apply on the
references . |
private java.util.List<PathReference> |
references
The list of references to create the initial file list.
|
Constructor and Description |
---|
FileSet()
Create a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addOperation(FilterOperation oper)
|
void |
addReference(PathReference ref)
Add a reference to the
references list. |
java.lang.String |
getFilename()
Get the
filename . |
FilterOperation[] |
getOperations()
Get the
operations . |
PathReference[] |
getReferences()
Get the
references . |
void |
setFilename(java.lang.String filename)
Set the
filename . |
private java.lang.String filename
private java.util.List<PathReference> references
private java.util.List<FilterOperation> operations
references
.public java.lang.String getFilename()
filename
.public void setFilename(java.lang.String filename)
filename
.filename
- See above.public void addReference(PathReference ref)
references
list.ref
- The reference to add.public void addOperation(FilterOperation oper)
oper
- The operation to add.public PathReference[] getReferences()
references
.public FilterOperation[] getOperations()
operations
.