@Entity public class JournalCollection extends java.lang.Object implements java.lang.Cloneable, java.lang.Comparable<JournalCollection>
JournalTitles
(by their issn) contained in this collectionConstructor and Description |
---|
JournalCollection()
general constructor and initialization
|
Modifier and Type | Method and Description |
---|---|
void |
addISSN(java.lang.String issn)
adds an issn to the string of issns (separated by ,) contained in the collection
|
void |
addPrice(double priceJournal)
adds an journal price to the collection price
|
void |
addToOutput(org.jdom2.Element output)
adds the analysis org.jdom2.element to the desired parent element
|
JournalCollection |
clone()
clones the
JournalCollection and returns an identical JournalCollection object |
int |
compareTo(JournalCollection other)
allows for a comparison of two collections with respect to their years.
|
java.util.List<JournalTitle> |
getAllJournals()
returns the individual
JournalTitle objects contained in the collection |
java.lang.String |
getAnchor()
returns the anchor of the collection
|
java.lang.String |
getDescription()
returns the description of the the collection
|
java.lang.String |
getIssns()
returns the ISSNs contained in the collection
|
java.util.List<java.lang.String> |
getIssnsList()
returns the issns contained in the collection as list.
|
java.util.List<JournalTitle> |
getJournals()
returns the individual
JournalTitle objects contained in the collection |
java.util.List<JournalTitle> |
getJournalsForYear(javax.persistence.EntityManager em,
int year)
returns the individual
JournalTitle objects contained in the collection |
java.util.List<JournalTitle> |
getLatestJournals()
returns the individual
JournalTitle objects contained in the collection |
java.lang.Double |
getPrice()
returns the price of the collection
|
int |
getYear()
returns the year of the collection
|
JournalCollection |
setAnchor(java.lang.String anchor)
sets the anchor of the collection
|
JournalCollection |
setDescription(java.lang.String description)
sets the description of the collection
|
JournalCollection |
setIssns(java.lang.String issns)
sets the issns contained in the collection
|
JournalCollection |
setPrice(java.lang.Double price)
sets the price of the collection
|
JournalCollection |
setYear(int year)
sets the year of the collection
|
public JournalCollection()
public java.lang.String getIssns()
public java.lang.String getDescription()
public java.lang.String getAnchor()
public java.lang.Double getPrice()
public int getYear()
public JournalCollection setIssns(java.lang.String issns)
issns
- the issns contained in the collectionpublic JournalCollection setDescription(java.lang.String description)
description
- the description of the collectionpublic JournalCollection setAnchor(java.lang.String anchor)
anchor
- the anchor of the collectionpublic JournalCollection setPrice(java.lang.Double price)
price
- the price of the collectionpublic JournalCollection setYear(int year)
year
- the year of the collectionpublic void addISSN(java.lang.String issn)
issn
- the issnpublic void addPrice(double priceJournal)
priceJournal
- the price of the individual journalpublic java.util.List<JournalTitle> getJournals()
JournalTitle
objects contained in the collectionJournalTitle
objectspublic java.util.List<JournalTitle> getAllJournals()
JournalTitle
objects contained in the collectionJournalTitle
objectspublic java.util.List<JournalTitle> getLatestJournals()
JournalTitle
objects contained in the collectionJournalTitle
objectspublic java.util.List<JournalTitle> getJournalsForYear(javax.persistence.EntityManager em, int year)
JournalTitle
objects contained in the collectionem
- the entity manageryear
- the yearJournalTitle
objectspublic java.util.List<java.lang.String> getIssnsList()
public void addToOutput(org.jdom2.Element output)
output
- the parent org.jdom2.element the analysis shall be added topublic JournalCollection clone()
JournalCollection
and returns an identical JournalCollection
objectclone
in class java.lang.Object
public int compareTo(JournalCollection other)
compareTo
in interface java.lang.Comparable<JournalCollection>