de.hpi.fgis.dude.util.bibtex.data
Class BibtexPreamble

java.lang.Object
  extended by de.hpi.fgis.dude.util.bibtex.data.BibtexNode
      extended by de.hpi.fgis.dude.util.bibtex.data.BibtexAbstractEntry
          extended by de.hpi.fgis.dude.util.bibtex.data.BibtexPreamble

public class BibtexPreamble
extends BibtexAbstractEntry

A preamble can be used to include pretty much arbitrary LaTex/Tex at the beginning of a generated bibliography. There is usually only one preamble per BibTex file.

Author:
henkel

Constructor Summary
protected BibtexPreamble(BibtexFile file, BibtexAbstractValue content)
          Instantiates a new BibtexPreamble.
 
Method Summary
 BibtexAbstractValue getContent()
          Returns the content of this preamble.
 void printBibtex(PrintWriter writer)
          Prints the node to the passed PrintWriter.
 void setContent(BibtexAbstractValue content)
          Sets the content.
 
Methods inherited from class de.hpi.fgis.dude.util.bibtex.data.BibtexNode
getOwnerFile, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BibtexPreamble

protected BibtexPreamble(BibtexFile file,
                         BibtexAbstractValue content)
Instantiates a new BibtexPreamble.

Parameters:
file - The file that includes this preamble.
content - The content of this preamble.
Method Detail

printBibtex

public void printBibtex(PrintWriter writer)
Description copied from class: BibtexNode
Prints the node to the passed PrintWriter. This method needs to be implemented by each sub-class.

Specified by:
printBibtex in class BibtexNode
Parameters:
writer - The writer that shall be used for writing the String representation of this node.

getContent

public BibtexAbstractValue getContent()
Returns the content of this preamble.

Returns:
The content value of this preamble or null if it is not set.

setContent

public void setContent(BibtexAbstractValue content)
Sets the content.

Parameters:
content - The content to set.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.