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

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.BibtexConcatenatedValue

public class BibtexConcatenatedValue
extends BibtexAbstractValue

Two abstract values concatenated by the hash-operator (#). Examples:

Author:
henkel

Constructor Summary
protected BibtexConcatenatedValue(BibtexFile file, BibtexAbstractValue left, BibtexAbstractValue right)
          Instantiates a new BibtexConcatenatedValue using the specified values.
 
Method Summary
 BibtexAbstractValue getLeft()
          Returns the left value of this concatenation.
 BibtexAbstractValue getRight()
          Returns the right value of this concatenation.
 void printBibtex(PrintWriter writer)
          Prints the node to the passed PrintWriter.
 void setLeft(BibtexAbstractValue left)
          Sets the left.
 void setRight(BibtexAbstractValue right)
          Sets the right.
 
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

BibtexConcatenatedValue

protected BibtexConcatenatedValue(BibtexFile file,
                                  BibtexAbstractValue left,
                                  BibtexAbstractValue right)
Instantiates a new BibtexConcatenatedValue using the specified values.

Parameters:
file - The file that includes this concatenation.
left - The left value of the concatenated value.
right - The right value of the concatenated value.
Method Detail

getLeft

public BibtexAbstractValue getLeft()
Returns the left value of this concatenation.

Returns:
The left value or null if it is not set.

getRight

public BibtexAbstractValue getRight()
Returns the right value of this concatenation.

Returns:
The right value or null if it is not set.

setLeft

public void setLeft(BibtexAbstractValue left)
Sets the left.

Parameters:
left - The left to set.

setRight

public void setRight(BibtexAbstractValue right)
Sets the right.

Parameters:
right - The right 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.