de.tudarmstadt.ukp.jwktl.api.entry
Class Quotation

java.lang.Object
  extended by de.tudarmstadt.ukp.jwktl.api.entry.Quotation
All Implemented Interfaces:
IQuotation

@Persistent
public class Quotation
extends Object
implements IQuotation

A quotation consists of a quotation source and a list of real quotations.

For example:

quotation source:2001 — Eoin Colfer, Artemis Fowl, p 221

quotations:Then you could say that the doorway exploded. But the particular verb doesn't do the action justice. Rather, it shattered into infinitesimal pieces.

Author:
Lizhen Qu

Constructor Summary
Quotation()
          Initializes the list of text lines.
 
Method Summary
 void addLine(IWikiString line)
          Add a quotation line, i.e. the text of a quotation.
 List<IWikiString> getLines()
          Returns the text of the quotation as a list of IWikiStrings.
 IWikiString getSource()
          Returns the source of the quotation.
 void setSource(IWikiString source)
          Assigns the given WikiString as the source of the quotation, i.e. its author and publishing reference.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Quotation

public Quotation()
Initializes the list of text lines.

Method Detail

getSource

public IWikiString getSource()
Description copied from interface: IQuotation
Returns the source of the quotation.

Specified by:
getSource in interface IQuotation

setSource

public void setSource(IWikiString source)
Assigns the given WikiString as the source of the quotation, i.e. its author and publishing reference.


addLine

public void addLine(IWikiString line)
Add a quotation line, i.e. the text of a quotation.


getLines

public List<IWikiString> getLines()
Description copied from interface: IQuotation
Returns the text of the quotation as a list of IWikiStrings.

Specified by:
getLines in interface IQuotation

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2013 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.