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

java.lang.Object
  extended by de.hpi.fgis.dude.util.bibtex.data.BibtexNode
      extended by de.hpi.fgis.dude.util.bibtex.data.BibtexAbstractValue
          extended by de.hpi.fgis.dude.util.bibtex.data.BibtexMacroReference

public class BibtexMacroReference
extends BibtexAbstractValue

A BibtexMacroReference references a BibtexMacroDefinition.

Author:
henkel

Constructor Summary
protected BibtexMacroReference(BibtexFile file, String key)
          Instantiates a new BibtexMacroReference.
 
Method Summary
 String getKey()
          Returns the key of this reference.
 void printBibtex(PrintWriter writer)
          Prints the node to the passed PrintWriter.
 void setKey(String key)
          Sets the key.
 
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

BibtexMacroReference

protected BibtexMacroReference(BibtexFile file,
                               String key)
Instantiates a new BibtexMacroReference.

Parameters:
file - The file that includes this macro reference.
key - The key of the reference.
Method Detail

getKey

public String getKey()
Returns the key of this reference.

Returns:
The key of this reference or null if it is not set.

setKey

public void setKey(String key)
Sets the key.

Parameters:
key - The key to set.

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.


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