Package edu.upf.taln.dri.lib.model.ext
Class HeaderImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.HeaderImpl
-
- All Implemented Interfaces:
Header
public class HeaderImpl extends BaseDocumentElem implements Header
IMPORTANT: Never instantiate directly this class!
HeaderImpl represents the header of a paper
-
-
Field Summary
Fields Modifier and Type Field Description List<Author>
authorList
List<Institution>
institutions
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description HeaderImpl(DocCacheManager cacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAuthor(Author auth)
void
addInstitution(Institution inst)
void
addTitle(LangENUM language, String title)
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 paperString
getEdition()
The edition of the paperList<Author>
getEditorList()
The list of editors of the paperString
getFirstPage()
The first pageList<Institution>
getInstitutions()
Get all the institutions mentioned in the headerString
getIssue()
The issue of the paperString
getJournal()
The journal of the paperMap<LangENUM,List<String>>
getKeywords()
Get the language specific list of keywordsString
getLastPage()
The last pageString
getOpenURL()
The open URL of the paperString
getPages()
The pagesString
getPlainText()
The plain text of the paper headerString
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 paperMap<LangENUM,String>
getTitles()
The titles of the paper (each one with its own language) Useful in case of papers with multiple titles in multiple languages.String
getVolume()
The volume of the paperString
getYear()
The year of the papervoid
setAuthorList(List<Author> authorList)
void
setBibsonomyURL(String bibsonomyURL)
void
setChapter(String chapter)
void
setEdition(String edition)
void
setEditorList(List<Author> editorList)
void
setFirstPage(String firstPage)
void
setInstitutions(List<Institution> institutions)
void
setIssue(String issue)
void
setJournal(String journal)
void
setKeyword(LangENUM lang, List<String> keywords)
void
setLastPage(String lastPage)
void
setOpenURL(String openURL)
void
setPages(String pages)
void
setPlainText(String plainText)
void
setPubID(PubIdENUM pubIDtype, String pubIDvalue)
void
setPublisher(String publisher)
void
setPublisherLoc(String publisherLoc)
void
setSeries(String series)
void
setVolume(String volume)
void
setYear(String year)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Field Detail
-
institutions
public List<Institution> institutions
-
-
Constructor Detail
-
HeaderImpl
public HeaderImpl(DocCacheManager cacheManager)
-
-
Method Detail
-
getPlainText
public String getPlainText()
Description copied from interface:Header
The plain text of the paper header- Specified by:
getPlainText
in interfaceHeader
- Returns:
-
setPlainText
public void setPlainText(String plainText)
-
getTitles
public Map<LangENUM,String> getTitles()
Description copied from interface:Header
The titles of the paper (each one with its own language) Useful in case of papers with multiple titles in multiple languages.
-
getKeywords
public Map<LangENUM,List<String>> getKeywords()
Description copied from interface:Header
Get the language specific list of keywords- Specified by:
getKeywords
in interfaceHeader
- Returns:
-
getAuthorList
public List<Author> getAuthorList()
Description copied from interface:Header
The authors of the paper- Specified by:
getAuthorList
in interfaceHeader
- Returns:
-
setYear
public void setYear(String year)
-
setPages
public void setPages(String pages)
-
getFirstPage
public String getFirstPage()
Description copied from interface:Header
The first page- Specified by:
getFirstPage
in interfaceHeader
- Returns:
-
setFirstPage
public void setFirstPage(String firstPage)
-
getLastPage
public String getLastPage()
Description copied from interface:Header
The last page- Specified by:
getLastPage
in interfaceHeader
- Returns:
-
setLastPage
public void setLastPage(String lastPage)
-
getOpenURL
public String getOpenURL()
Description copied from interface:Header
The open URL of the paper- Specified by:
getOpenURL
in interfaceHeader
- Returns:
-
setOpenURL
public void setOpenURL(String openURL)
-
getPubID
public String getPubID(PubIdENUM pubIDtype)
Description copied from interface:Header
The specific ID of the paper, if any
-
getBibsonomyURL
public String getBibsonomyURL()
Description copied from interface:Header
The bibsonomy URL of the paper- Specified by:
getBibsonomyURL
in interfaceHeader
- Returns:
-
setBibsonomyURL
public void setBibsonomyURL(String bibsonomyURL)
-
getChapter
public String getChapter()
Description copied from interface:Header
The chapter of the paper- Specified by:
getChapter
in interfaceHeader
- Returns:
-
setChapter
public void setChapter(String chapter)
-
getVolume
public String getVolume()
Description copied from interface:Header
The volume of the paper
-
setVolume
public void setVolume(String volume)
-
setIssue
public void setIssue(String issue)
-
getSeries
public String getSeries()
Description copied from interface:Header
The series of the paper
-
setSeries
public void setSeries(String series)
-
getPublisher
public String getPublisher()
Description copied from interface:Header
The publisher of the paper- Specified by:
getPublisher
in interfaceHeader
- Returns:
-
setPublisher
public void setPublisher(String publisher)
-
getPublisherLoc
public String getPublisherLoc()
Description copied from interface:Header
The location of the publisher of the paper- Specified by:
getPublisherLoc
in interfaceHeader
- Returns:
-
setPublisherLoc
public void setPublisherLoc(String publisherLoc)
-
getJournal
public String getJournal()
Description copied from interface:Header
The journal of the paper- Specified by:
getJournal
in interfaceHeader
- Returns:
-
setJournal
public void setJournal(String journal)
-
getEdition
public String getEdition()
Description copied from interface:Header
The edition of the paper- Specified by:
getEdition
in interfaceHeader
- Returns:
-
setEdition
public void setEdition(String edition)
-
getEditorList
public List<Author> getEditorList()
Description copied from interface:Header
The list of editors of the paper- Specified by:
getEditorList
in interfaceHeader
- Returns:
-
getInstitutions
public List<Institution> getInstitutions()
Description copied from interface:Header
Get all the institutions mentioned in the header- Specified by:
getInstitutions
in interfaceHeader
- Returns:
-
setInstitutions
public void setInstitutions(List<Institution> institutions)
-
addAuthor
public void addAuthor(Author auth)
-
addInstitution
public void addInstitution(Institution inst)
-
-