@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.
Constructor and Description |
---|
Quotation()
Initializes the list of text lines.
|
Modifier and Type | Method and Description |
---|---|
void |
addLine(IWikiString line)
Add a quotation line, i.e.
|
List<IWikiString> |
getLines()
Returns the text of the quotation as a list of
IWikiString s. |
IWikiString |
getSource()
Returns the source of the quotation.
|
void |
setSource(IWikiString source)
Assigns the given
WikiString as the source of the quotation,
i.e. |
String |
toString() |
public IWikiString getSource()
IQuotation
getSource
in interface IQuotation
public void setSource(IWikiString source)
WikiString
as the source of the quotation,
i.e. its author and publishing reference.public void addLine(IWikiString line)
public List<IWikiString> getLines()
IQuotation
IWikiString
s.getLines
in interface IQuotation
Copyright © 2011-2016 Ubiquitous Knowledge Processing (UKP) Lab. All Rights Reserved.