|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.FileRecordSet
public class FileRecordSet
The class FileRecordSet
implements the RecordSet
interface to create a set of Records
to be
processed. This class is used to drive the DocHelper process by invoking
the render function on each Record
within the RecordSet
passing in the DocPattern
defined for this records set.
Record
, DocumentSection
Field Summary | |
---|---|
protected static java.lang.String |
GLOB
Param key: glob |
private java.lang.String |
name
Reference Name for this instance. |
protected java.util.HashMap<java.lang.String,java.lang.Object> |
params
Paramters for this configurable. |
protected static java.lang.String |
PATH
Param keys, path, glob and recursive |
private java.util.ArrayList<DocPattern> |
patterns
|
protected static java.lang.String |
RECUR
Param key: recursive |
protected java.util.ArrayList<Record> |
rsfiles
The files that are represented by this Path and Filter. |
Constructor Summary | |
---|---|
FileRecordSet()
|
Method Summary | |
---|---|
protected void |
_listDirectory(java.util.ArrayList stack,
java.util.ArrayList files,
java.lang.String directory,
java.lang.String glob,
boolean recursive)
|
void |
addPattern(DocPattern pattern)
Add a single pattern to be applied to this record set. |
void |
checkParams()
Checks that the parameters are correct for this File Record Set. |
void |
clearPatterns()
Empty pattern list. |
ResultNode |
execute(ResultNode doc)
Main method of FileRecordSet. |
java.lang.String |
getName()
Name Accessors + Modifiers |
java.util.ArrayList<DocPattern> |
getPatterns()
Pattern Accessors + Modifiers |
java.util.ArrayList<Record> |
getRsfiles()
Record Files (rsfiles) Accessors + Modifiers |
void |
init()
Initialize the Record Set. |
void |
setName(java.lang.String name)
Set the name of this Record Set. |
void |
setParam(java.lang.String paramName,
java.lang.Object value)
Add an initialization parameter to the Record Set. |
void |
setPatterns(java.util.ArrayList<DocPattern> patterns)
|
void |
setRsfiles(java.util.ArrayList<Record> rsfiles)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String PATH
protected static final java.lang.String RECUR
protected static final java.lang.String GLOB
private java.lang.String name
protected java.util.HashMap<java.lang.String,java.lang.Object> params
protected java.util.ArrayList<Record> rsfiles
private java.util.ArrayList<DocPattern> patterns
Constructor Detail |
---|
public FileRecordSet()
Method Detail |
---|
public void setParam(java.lang.String paramName, java.lang.Object value) throws IllegalParamterTypeException
setParam
in interface Configurable
paramName
- String Name of the paramter to be storedvalue
- String value of the named param
IllegalParamterTypeException
public void checkParams() throws InvalidValueException, MissingArgumentException, ResourceUnavailableException
checkParams
in interface Configurable
InvalidValueException
MissingArgumentException
ResourceUnavailableException
public void init() throws InitializationException, ResourceUnavailableException
init
in interface Configurable
ResourceUnavailableException
InitializationException
public ResultNode execute(ResultNode doc) throws ResourceUnavailableException
execute
in interface RecordSet
doc
- The document ResultNode
onto which the results of running
this record set should be added to.
ResultNode
node with the results of the matches and
rendering appended to it.
ResourceUnavailableException
java.lang.Exception
protected void _listDirectory(java.util.ArrayList stack, java.util.ArrayList files, java.lang.String directory, java.lang.String glob, boolean recursive) throws java.io.IOException
stack
- files
- directory
- glob
- recursive
-
java.io.IOException
public java.util.ArrayList<Record> getRsfiles()
public void setRsfiles(java.util.ArrayList<Record> rsfiles)
rsfiles
- public java.util.ArrayList<DocPattern> getPatterns()
public void setPatterns(java.util.ArrayList<DocPattern> patterns)
patterns
- public java.lang.String getName()
public void setName(java.lang.String name)
RecordSet
setName
in interface RecordSet
public void addPattern(DocPattern pattern)
addPattern
in interface RecordSet
pattern
- DocPettern to add to this Record Set.public void clearPatterns()
clearPatterns
in interface RecordSet
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |