|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectwriter2latex.base.ConverterResultImpl
public class ConverterResultImpl
ConverterResultImpl is a straightforward implementation of ConverterResult
| Constructor Summary | |
|---|---|
ConverterResultImpl()
Construct a new ConverterResultImpl with empty content |
|
| Method Summary | |
|---|---|
void |
addContentEntry(ContentEntry entry)
Add an entry to the "external" table of contents |
void |
addDocument(OutputFile file)
Adds an OutputFile to the list |
ContentEntry |
getBibliographyFile()
Get the entry which contains the bibliography |
java.util.List<ContentEntry> |
getContent()
Get the content table (based on headings) for this ConverterResult |
ContentEntry |
getIndexFile()
Get the entry which contains the alphabetical index |
ContentEntry |
getLofFile()
Get the entry which contains the list of figures |
ContentEntry |
getLotFile()
Get the entry which contains the list of tables |
OutputFile |
getMasterDocument()
Get the first master document |
MetaData |
getMetaData()
Get the meta data of this ConverterResult |
ContentEntry |
getTextFile()
Get the entry which contains the start of the actual text (the first chapter, or simply the start of the document if there are no headings) |
ContentEntry |
getTitlePageFile()
Get the entry which contains the table page |
ContentEntry |
getTocFile()
Get the entry which contains the table of contents |
java.util.Iterator<OutputFile> |
iterator()
Gets an Iterator to access the List
of OutputFile objects |
void |
reset()
Resets all data. |
void |
setBibliographyFile(ContentEntry entry)
Define the entry which contains the bibliography |
void |
setIndexFile(ContentEntry entry)
Define the entry which contains the alphabetical index |
void |
setLofFile(ContentEntry entry)
Define the entry which contains the list of figures |
void |
setLotFile(ContentEntry entry)
Define the entry which contains the list of tables |
void |
setMetaData(MetaData metaData)
Set the meta data of this ConverterResult |
void |
setTextFile(ContentEntry entry)
Define the entry which contains the main text file |
void |
setTitlePageFile(ContentEntry entry)
Define the entry which contains the title page |
void |
setTocFile(ContentEntry entry)
Define the entry which contains the table of contents |
void |
write(java.io.File dir)
Write all files to a given directory |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterResultImpl()
ConverterResultImpl with empty content
| Method Detail |
|---|
public void reset()
OutputFile and ContentEntry objects
objects from this class. This allows reuse of a ConvertResult object.
public void addDocument(OutputFile file)
OutputFile to the list
file - The OutputFile to add.public OutputFile getMasterDocument()
getMasterDocument in interface ConverterResultOutputFile the master documentpublic java.util.Iterator<OutputFile> iterator()
Iterator to access the List
of OutputFile objects
iterator in interface ConverterResultIterator to access the
List of OutputFile objects.public void addContentEntry(ContentEntry entry)
entry - the entry to addpublic java.util.List<ContentEntry> getContent()
ConverterResultConverterResult
getContent in interface ConverterResultpublic void setTitlePageFile(ContentEntry entry)
entry - the entrypublic ContentEntry getTitlePageFile()
ConverterResult
getTitlePageFile in interface ConverterResultpublic void setTextFile(ContentEntry entry)
entry - the entrypublic ContentEntry getTextFile()
ConverterResult
getTextFile in interface ConverterResultpublic void setTocFile(ContentEntry entry)
entry - the entrypublic ContentEntry getTocFile()
ConverterResult
getTocFile in interface ConverterResultpublic void setLofFile(ContentEntry entry)
entry - the entrypublic ContentEntry getLofFile()
ConverterResult
getLofFile in interface ConverterResultpublic void setLotFile(ContentEntry entry)
entry - the entrypublic ContentEntry getLotFile()
ConverterResult
getLotFile in interface ConverterResultpublic void setIndexFile(ContentEntry entry)
entry - the entrypublic ContentEntry getIndexFile()
ConverterResult
getIndexFile in interface ConverterResultpublic void setBibliographyFile(ContentEntry entry)
entry - the entrypublic ContentEntry getBibliographyFile()
ConverterResult
getBibliographyFile in interface ConverterResultpublic void setMetaData(MetaData metaData)
ConverterResult
metaData - the meta datapublic MetaData getMetaData()
ConverterResult
getMetaData in interface ConverterResult
public void write(java.io.File dir)
throws java.io.IOException
write in interface ConverterResultdir - the directory to use
java.io.IOException - if the directory does not exist or one or more files
could not be written
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||