Package edu.upf.taln.dri.lib.model.ext
Class CitationImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.CitationImpl
-
- All Implemented Interfaces:
Citation
public class CitationImpl extends BaseDocumentElem implements Citation
IMPORTANT: Never instantiate directly this class!
CitationImpl represents a citation of the document
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description CitationImpl(DocCacheManager cacheManager)
CitationImpl(DocCacheManager cacheManager, Integer id, String text, List<CitationMarker> citationMarkers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSource(CitationSourceENUM source)
String
asString(boolean compactOutput)
String representation of the objectList<Author>
getAuthorList()
The authors of the paperString
getBibsonomyURL()
The bibsonomy URL of the paperString
getChapter()
The chapter of the paperList<CitationMarker>
getCitaitonMarkers()
The list ofCitationMarkers
, that are the inline references to this citation An empty list is returned if noCitationMarkers
have been associated to the considered citationMap<String,String>
getCitationString()
A map of citation styles as key and complete citation strings as valuesString
getEdition()
The edition of the paperList<Author>
getEditorList()
The list of editors of the paperString
getFirstPage()
The first pageInteger
getId()
Document-wide unambiguous citation IdString
getInstitution()
The institution of the paperString
getIssue()
The issue of the paperString
getJournal()
The journal of the paperString
getLastPage()
The last pageString
getOpenURL()
The open URL of the paperString
getPages()
The pagesString
getPubID(PubIdENUM pubIDtype)
The specific ID of the paper, if anyString
getPublisher()
The publisher of the paperString
getPublisherLoc()
The location of the publisher of the paperString
getSeries()
The series of the paperSet<CitationSourceENUM>
getSource()
The sources from which the citation data have been retrievedString
getText()
The whole text of the citation, usually part of the bibliography of a paperString
getTitle()
The title of the paperString
getVolume()
The volume of the paperString
getYear()
The year of the papervoid
setAuthor(Author author)
void
setBibsonomyURL(String bibsonomyURL)
void
setChapter(String chapter)
void
setCitationStringEntry(String citationStyle, String citationContents)
void
setEdition(String edition)
void
setEditor(Author editor)
void
setFirstPage(String firstPage)
void
setId(Integer id)
void
setInstitution(String institution)
void
setIssue(String issue)
void
setJournal(String journal)
void
setLastPage(String lastPage)
void
setNewCitationMarker(CitationMarker citMarker)
void
setOpenURL(String openURL)
void
setPages(String pages)
void
setPubID(PubIdENUM pubIDtype, String pubIDvalue)
void
setPublisher(String publisher)
void
setPublisherLoc(String publisherLoc)
void
setSeries(String series)
void
setText(String text)
void
setTitle(String title)
void
setVolume(String volume)
void
setYear(String year)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
CitationImpl
public CitationImpl(DocCacheManager cacheManager)
-
CitationImpl
public CitationImpl(DocCacheManager cacheManager, Integer id, String text, List<CitationMarker> citationMarkers)
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:Citation
Document-wide unambiguous citation Id
-
setId
public void setId(Integer id)
-
getText
public String getText()
Description copied from interface:Citation
The whole text of the citation, usually part of the bibliography of a paper
-
setText
public void setText(String text)
-
getSource
public Set<CitationSourceENUM> getSource()
Description copied from interface:Citation
The sources from which the citation data have been retrieved
-
addSource
public void addSource(CitationSourceENUM source)
-
getCitaitonMarkers
public List<CitationMarker> getCitaitonMarkers()
Description copied from interface:Citation
The list ofCitationMarkers
, that are the inline references to this citation An empty list is returned if noCitationMarkers
have been associated to the considered citation- Specified by:
getCitaitonMarkers
in interfaceCitation
- Returns:
-
setNewCitationMarker
public void setNewCitationMarker(CitationMarker citMarker)
-
getTitle
public String getTitle()
Description copied from interface:Citation
The title of the paper
-
setTitle
public void setTitle(String title)
-
getAuthorList
public List<Author> getAuthorList()
Description copied from interface:Citation
The authors of the paper- Specified by:
getAuthorList
in interfaceCitation
- Returns:
-
setAuthor
public void setAuthor(Author author)
-
setYear
public void setYear(String year)
-
setPages
public void setPages(String pages)
-
getFirstPage
public String getFirstPage()
Description copied from interface:Citation
The first page- Specified by:
getFirstPage
in interfaceCitation
- Returns:
-
setFirstPage
public void setFirstPage(String firstPage)
-
getLastPage
public String getLastPage()
Description copied from interface:Citation
The last page- Specified by:
getLastPage
in interfaceCitation
- Returns:
-
setLastPage
public void setLastPage(String lastPage)
-
getPubID
public String getPubID(PubIdENUM pubIDtype)
Description copied from interface:Citation
The specific ID of the paper, if any
-
getBibsonomyURL
public String getBibsonomyURL()
Description copied from interface:Citation
The bibsonomy URL of the paper- Specified by:
getBibsonomyURL
in interfaceCitation
- Returns:
-
setBibsonomyURL
public void setBibsonomyURL(String bibsonomyURL)
-
getChapter
public String getChapter()
Description copied from interface:Citation
The chapter of the paper- Specified by:
getChapter
in interfaceCitation
- Returns:
-
setChapter
public void setChapter(String chapter)
-
getVolume
public String getVolume()
Description copied from interface:Citation
The volume of the paper
-
setVolume
public void setVolume(String volume)
-
getIssue
public String getIssue()
Description copied from interface:Citation
The issue of the paper
-
setIssue
public void setIssue(String issue)
-
getSeries
public String getSeries()
Description copied from interface:Citation
The series of the paper
-
setSeries
public void setSeries(String series)
-
getPublisher
public String getPublisher()
Description copied from interface:Citation
The publisher of the paper- Specified by:
getPublisher
in interfaceCitation
- Returns:
-
setPublisher
public void setPublisher(String publisher)
-
getPublisherLoc
public String getPublisherLoc()
Description copied from interface:Citation
The location of the publisher of the paper- Specified by:
getPublisherLoc
in interfaceCitation
- Returns:
-
setPublisherLoc
public void setPublisherLoc(String publisherLoc)
-
getEdition
public String getEdition()
Description copied from interface:Citation
The edition of the paper- Specified by:
getEdition
in interfaceCitation
- Returns:
-
setEdition
public void setEdition(String edition)
-
getEditorList
public List<Author> getEditorList()
Description copied from interface:Citation
The list of editors of the paper- Specified by:
getEditorList
in interfaceCitation
- Returns:
-
setEditor
public void setEditor(Author editor)
-
setCitationStringEntry
public void setCitationStringEntry(String citationStyle, String citationContents)
-
getCitationString
public Map<String,String> getCitationString()
Description copied from interface:Citation
A map of citation styles as key and complete citation strings as values- Specified by:
getCitationString
in interfaceCitation
- Returns:
-
getJournal
public String getJournal()
Description copied from interface:Citation
The journal of the paper- Specified by:
getJournal
in interfaceCitation
- Returns:
-
setJournal
public void setJournal(String journal)
-
getInstitution
public String getInstitution()
Description copied from interface:Citation
The institution of the paper- Specified by:
getInstitution
in interfaceCitation
- Returns:
-
setInstitution
public void setInstitution(String institution)
-
getOpenURL
public String getOpenURL()
Description copied from interface:Citation
The open URL of the paper- Specified by:
getOpenURL
in interfaceCitation
- Returns:
-
setOpenURL
public void setOpenURL(String openURL)
-
-