|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdochelper.FileRecord
public class FileRecord
The class FileRecord
implements Record
to represent
a single file in a set of files to be processed by DocHelper. It is
responsible for returning file contents when needed and converting the file
into output document content through the execution of the render function.
This class implements the DocumentSection interface in order to provide
encapsulation of the output generated.
Record
, DocumentSection
Field Summary | |
---|---|
private java.io.File |
file
The file this File Record represents. |
private java.lang.String |
name
Reference Name for this instance. |
protected java.util.HashMap<java.lang.String,java.lang.String> |
params
The parameters associated to this fileRecord. |
Constructor Summary | |
---|---|
FileRecord(java.io.File file,
java.lang.String name)
Creates a New Instance of a File Record. |
Method Summary | |
---|---|
ResultNode |
execute(java.util.ArrayList<DocPattern> patterns)
Renders a record using the specified Pattern list. |
java.io.File |
getFile()
Return the file reference. |
java.lang.String |
getValue()
Get the value of a File Record. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private java.io.File file
protected java.util.HashMap<java.lang.String,java.lang.String> params
private java.lang.String name
Constructor Detail |
---|
public FileRecord(java.io.File file, java.lang.String name)
file
- name
- Method Detail |
---|
public java.lang.String getValue()
getValue
in interface Record
public ResultNode execute(java.util.ArrayList<DocPattern> patterns)
execute
in interface Record
patterns
- ArrayListpublic java.io.File getFile()
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 |