|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.ac.soton.harvester.CitationOutput
CitationOutput s the superclass of each class that puts the citation data onto the specified printwriter in the one specific format requested by doTXT, doHTML or doXML. The concrete subclasses are TXTOutput, HTMLOutput and XMLOutput.
Field Summary | |
(package private) java.lang.String |
author
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
date
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) DeciterState |
ds
state of the deciter, including the attribute markers used to define the output strings. |
(package private) java.lang.String |
iss
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
misc
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
pages
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
place
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
pub
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
publish
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
rest
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
tit
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
vol
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
(package private) java.lang.String |
xxxid
The citation attribute strings are filled in by the prepare method from the data in the attribute markers stored in the deciter state. |
Constructor Summary | |
(package private) |
CitationOutput()
Empty constructor to make an uninitialised object easily from the dynamic loading code. |
(package private) |
CitationOutput(DeciterState ds)
Standard constructor that simply stores the deciter state. |
Method Summary | |
protected static java.lang.String |
detag(java.lang.String s)
detag removes tags from an HTML-style string. |
(package private) abstract java.lang.String |
output(java.io.PrintWriter out)
output renders the citation onto an output file according to some format. |
(package private) void |
post(java.io.PrintWriter out)
post allows the outputter to emit a footer or postamble for the article citations as a body. |
(package private) void |
pre(java.io.PrintWriter out)
pre allows the outputter to emit a header or preamble for the article citations as a body. |
(package private) void |
prepare()
prepare is a method used by the subclasses 'output' methods to prepare the attribute strings from the attribute markers in the deciter state. |
void |
setDeciterState(DeciterState ds)
|
protected static void |
splitAuthors(java.lang.String a0,
DeciterState ds,
java.io.PrintWriter Output)
splitAuthors is one of the most complex methods of the deciter class. |
protected void |
splitPages(java.lang.String pages,
java.io.PrintWriter Output)
splitPages outputs the identified page range on the given output stream. |
Methods inherited from class java.lang.Object |
|
Field Detail |
java.lang.String author
java.lang.String date
java.lang.String tit
java.lang.String pages
java.lang.String pub
java.lang.String vol
java.lang.String iss
java.lang.String publish
java.lang.String place
java.lang.String misc
java.lang.String xxxid
java.lang.String rest
DeciterState ds
Constructor Detail |
CitationOutput(DeciterState ds)
ds
- the current deciter stateCitationOutput()
Method Detail |
public void setDeciterState(DeciterState ds)
void prepare()
abstract java.lang.String output(java.io.PrintWriter out)
out
- PrintWriter destinationvoid pre(java.io.PrintWriter out)
out
- the PrintWriter output streamvoid post(java.io.PrintWriter out)
out
- the PrintWriter output streamprotected void splitPages(java.lang.String pages, java.io.PrintWriter Output)
pages
- the page range substring lifted directly from the citationOutput
- the output stream on which to output the dataprotected static void splitAuthors(java.lang.String a0, DeciterState ds, java.io.PrintWriter Output)
a0
- the string containing the original author substring lifted
directly from the input line.ds
- the deciter state in which the author splitting occurs.
this is required because the method has just been made static
so that the XMLOutput object can use it.Output
- the output stream to which the author output is to be
written.protected static java.lang.String detag(java.lang.String s)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |