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

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

public final class BibtexPersonList
extends BibtexAbstractValue

A list of BibtexPerson objects that can be used for author or editor fields - use the PersonListExpander to convert all editor/author field values of a particular BibtexFile to BibtexPersonLists.

Author:
henkel

Constructor Summary
protected BibtexPersonList(BibtexFile file)
          Instantiates a new BibtexPersonList.
 
Method Summary
 void add(BibtexPerson bibtexPerson)
          Adds a BibtexPerson to this list.
 List<BibtexPerson> getList()
          Returns a read-only list whose members are instances of BibtexPerson.
 void printBibtex(PrintWriter writer)
          Prints the node to the passed PrintWriter.
 
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

BibtexPersonList

protected BibtexPersonList(BibtexFile file)
Instantiates a new BibtexPersonList.

Parameters:
file - The file that includes this list.
Method Detail

getList

public List<BibtexPerson> getList()
Returns a read-only list whose members are instances of BibtexPerson.

Returns:
A unmodifiable List representation of this instance.

add

public void add(BibtexPerson bibtexPerson)
Adds a BibtexPerson to this list.

Parameters:
bibtexPerson - The BibtexPerson instance that shall be added.

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.