|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecteu.etaxonomy.cdm.model.common.CdmBase
eu.etaxonomy.cdm.model.common.VersionableEntity
eu.etaxonomy.cdm.model.common.AnnotatableEntity
eu.etaxonomy.cdm.model.common.IdentifiableEntity<S>
eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity<S>
eu.etaxonomy.cdm.model.reference.Reference<S>
@Entity @InReference(groups=Level2.class) @ReferenceCheck(groups=Level2.class) public class Reference<S extends IReferenceBaseCacheStrategy>
The upmost (abstract) class for references (information sources).
This class corresponds to:
| Field Summary | |
|---|---|
protected String |
edition
|
protected String |
editor
|
protected Reference |
inReference
|
protected Institution |
institution
|
protected String |
isbn
|
protected String |
issn
|
protected String |
organization
|
protected String |
pages
|
protected String |
placePublished
|
protected String |
publisher
|
protected Institution |
school
|
protected String |
series
|
protected String |
seriesPart
|
protected ReferenceType |
type
|
protected String |
volume
|
| Fields inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
cacheStrategy, NOT_PROTECTED, PROTECTED, protectedTitleCache, titleCache |
| Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
annotations, markers |
| Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
uuid |
| Fields inherited from interface eu.etaxonomy.cdm.model.reference.INomenclaturalReference |
|---|
MICRO_REFERENCE_TOKEN |
| Constructor Summary | |
|---|---|
protected |
Reference()
|
protected |
Reference(ReferenceType type)
|
| Method Summary | |
|---|---|
void |
addParsingProblem(ParserProblem warning)
Adds a parsing problem to the list of parsing problems |
IArticle |
castReferenceToArticle()
Generates, according to the cache strategy
assigned to this reference, a string that identifies this
reference and returns it. |
IBook |
castReferenceToBook()
|
IBookSection |
castReferenceToBookSection()
|
ICdDvd |
castReferenceToCdDvd()
|
IDatabase |
castReferenceToDatabase()
|
IGeneric |
castReferenceToGeneric()
|
IInProceedings |
castReferenceToInProceedings()
|
IJournal |
castReferenceToJournal()
|
IMap |
castReferenceToMap()
|
IPatent |
castReferenceToPatent()
|
IPersonalCommunication |
castReferenceToPersonalCommunication()
|
IPrintSeries |
castReferenceToPrintSeries()
|
IProceedings |
castReferenceToProceedings()
|
IReport |
castReferenceToReport()
|
IThesis |
castReferenceToThesis()
|
IWebPage |
castReferenceToWebPage()
|
Object |
clone()
Clones this reference. |
String |
generateTitle()
|
TeamOrPersonBase |
getAuthorTeam()
Returns the author (team) who created the
content of this reference. |
String |
getCitation()
Returns a formatted string containing the entire reference citation, including authors, corresponding to this reference. |
TimePeriod |
getDatePublished()
Returns the date (mostly only the year) of publication / creation of this reference. |
String |
getDatePublishedString()
Convenience method that returns a string representation for the publication date / creation of this reference. |
String |
getEdition()
Returns this books edition |
String |
getEditor()
Returns the editor of this reference |
IBook |
getInBook()
Returns this book sections book |
IJournal |
getInJournal()
Returns this articles journal. |
IProceedings |
getInProceedings()
Returns the proceedings for these inProceedings |
Reference |
getInReference()
Returns the in-reference of this reference. |
IPrintSeries |
getInSeries()
Returns the print series of this printed unit |
Institution |
getInstitution()
Returns the institution that published this report |
String |
getIsbn()
Returns this books isbn (international standard book number) |
String |
getIssn()
Returns the ISSN (International Standard Serial Number) |
String |
getNomenclaturalCitation(String microReference)
Returns a formatted string containing the reference citation excluding authors but including the details as used in a taxon name. |
String |
getOrganization()
Returns the organization which published this reference |
String |
getPages()
Returns the pages this reference covers in its in-reference. |
int |
getParsingProblem()
Returns an integer value indicating whether the used parser method was able to parse a string successfully into this object ( 0)
or not (!=0). |
List<ParserProblem> |
getParsingProblems()
Returns a list of all warnings and errors that have been recognized during the parsing and not yet handled. |
String |
getPlacePublished()
Returns the string which represents the place where this reference was published |
int |
getProblemEnds()
Returns the integer value of the position where a parsing problem ends. |
int |
getProblemStarts()
Returns the integer value of the position where a parsing problem starts. |
String |
getPublisher()
Returns the publisher string for this reference |
String |
getReferenceAbstract()
Returns the references abstract which is a summary of the content |
Institution |
getSchool()
Returns the school which published this thesis |
String |
getSeries()
Returns the series information for this article |
String |
getSeriesPart()
Returns the series part for this printed unit |
String |
getTitle()
Returns a string representing the title of this reference. |
ReferenceType |
getType()
Returns the reference type |
URI |
getUri()
Returns the Uniform Resource Identifier (URI) corresponding to this reference. |
String |
getVolume()
Returns the volume of a reference. |
String |
getYear()
Returns a string representation for the year of publication / creation of this reference. |
boolean |
hasDatePublished()
|
boolean |
hasProblem()
Returns true if any parsing problem (warning or error) exists. |
boolean |
hasProblem(ParserProblem problem)
Returns true, if the specified problem exists. |
boolean |
isNomenclaturallyRelevant()
Returns "true" if the isNomenclaturallyRelevant flag is set. |
boolean |
isOfType(ReferenceType type)
Whether this reference is of the given type |
void |
removeParsingProblem(ParserProblem problem)
Removes a parsing problem from the list of parsing problems. |
void |
setAuthorTeam(TeamOrPersonBase authorTeam)
Sets the references author(s) |
void |
setCacheStrategy(ArticleDefaultCacheStrategy cacheStrategy)
|
void |
setCacheStrategy(BookDefaultCacheStrategy cacheStrategy)
|
void |
setCacheStrategy(BookSectionDefaultCacheStrategy cacheStrategy)
|
void |
setCacheStrategy(GenericDefaultCacheStrategy cacheStrategy)
|
void |
setCacheStrategy(IReferenceBaseCacheStrategy iReferenceBaseCacheStrategy)
Sets the cache strategy for this reference |
void |
setCacheStrategy(JournalDefaultCacheStrategy cacheStrategy)
|
void |
setCacheStrategy(ReferenceBaseDefaultCacheStrategy cacheStrategy)
|
void |
setDatePublished(TimePeriod datePublished)
Sets the date when the reference was published. |
void |
setEdition(String edition)
Sets this books edition |
void |
setEditor(String editor)
Sets the editor for this reference |
void |
setInBook(IBook book)
Sets this book sections book. |
void |
setInJournal(IJournal journal)
Sets this articles journal |
void |
setInProceedings(IProceedings proceeding)
Sets the proceedings for these inProceedings |
void |
setInReference(Reference inReference)
Sets the in-reference of this reference. |
void |
setInSeries(IPrintSeries inSeries)
Sets the print series of this printed unit |
void |
setInstitution(Institution institution)
Sets the institution that published this report |
void |
setIsbn(String isbn)
Sets this books isbn (international standard book number) |
void |
setIssn(String issn)
Sets the ISSN (International Standard Serial Number) |
void |
setNomenclaturallyRelevant(boolean nomenclaturallyRelevant)
|
void |
setOrganization(String organization)
Sets the organization which published this reference |
void |
setPages(String pages)
Sets the pages that this reference covers in its in-reference |
void |
setParsingProblem(int parsingProblem)
|
void |
setPlacePublished(String placePublished)
Sets the string which represents the place where this reference was published |
void |
setProblemEnds(int end)
|
void |
setProblemStarts(int start)
|
void |
setPublisher(String publisher)
Sets the publisher string for this reference |
void |
setPublisher(String publisher,
String placePublished)
Sets the publisher and the publication place |
void |
setReferenceAbstract(String referenceAbstract)
Sets the references abstract which is a summary of the content |
void |
setSchool(Institution school)
Sets the school which published this thesis |
void |
setSeries(String series)
Sets the series information for this article |
void |
setSeriesPart(String seriesPart)
Sets the series part for this printed unit |
void |
setTitle(String title)
Sets the references title |
void |
setType(ReferenceType type)
Sets the reference type |
void |
setUri(URI uri)
|
void |
setVolume(String volume)
Sets the volume of the reference. |
| Methods inherited from class eu.etaxonomy.cdm.model.media.IdentifiableMediaEntity |
|---|
addMedia, getMedia, removeMedia |
| Methods inherited from class eu.etaxonomy.cdm.model.common.IdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addExtension, addRights, addSource, addSource, compareTo, getCacheStrategy, getCredits, getCredits, getData, getExtensions, getExtensions, getExtensions, getLsid, getRights, getSources, getTitleCache, getTruncatedCache, initListener, isProtectedTitleCache, regenerateTitleCache, removeCredit, removeCredit, removeExtension, removeRights, removeSource, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity |
|---|
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase |
|---|
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, instanceToString, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IIdentifiableEntity |
|---|
addCredit, addCredit, addExtension, addRights, getCredits, getCredits, getData, getExtensions, getLsid, getRights, getTitleCache, isProtectedTitleCache, removeCredit, removeCredit, removeExtension, removeRights, setLsid, setProtectedTitleCache, setTitleCache, setTitleCache, toString |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.ISourceable |
|---|
addSource, addSource, getSources, removeSource |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IAnnotatableEntity |
|---|
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker |
| Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity |
|---|
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy |
| Field Detail |
|---|
protected ReferenceType type
@Field @Length(max=255) protected String editor
@Field @Length(max=255) protected String series
@Field @Length(max=255) protected String volume
@Field @Length(max=255) protected String pages
@Field @Length(max=255) protected String edition
@Field
@Length(max=255)
@Pattern(regexp="(?=.{13}$)\\d{1,5}([- ])\\d{1,7}\\1\\d{1,6}\\1(\\d|X)$",
groups=Level2.class,
message="{eu.etaxonomy.cdm.model.reference.Reference.isbn.message}")
protected String isbn
@Field
@Length(max=255)
@Pattern(regexp="(?=.{9}$)\\d{4}([- ])\\d{4} (\\d|X)$",
groups=Level2.class,
message="{eu.etaxonomy.cdm.model.reference.Reference.issn.message}")
protected String issn
@Field @Length(max=255) protected String seriesPart
@Field @Length(max=255) protected String organization
@Field @Length(max=255) protected String publisher
@Field @Length(max=255) protected String placePublished
@IndexedEmbedded protected Institution institution
@IndexedEmbedded protected Institution school
protected Reference inReference
| Constructor Detail |
|---|
protected Reference()
protected Reference(ReferenceType type)
| Method Detail |
|---|
public String getEditor()
IPrintedUnitBase
getEditor in interface IGenericgetEditor in interface IPrintedUnitBasepublic void setEditor(String editor)
IPrintedUnitBase
setEditor in interface IGenericsetEditor in interface IPrintedUnitBasepublic String getSeries()
IArticle
getSeries in interface IArticlegetSeries in interface IGenericpublic void setSeries(String series)
IArticle
setSeries in interface IArticlesetSeries in interface IGenericpublic String getVolume()
IVolumeReference
getVolume in interface IVolumeReferencepublic void setVolume(String volume)
IVolumeReference
setVolume in interface IVolumeReferencepublic String getPages()
ISectionBase
getPages in interface IGenericgetPages in interface ISectionBasepublic void setPages(String pages)
ISectionBase
setPages in interface IGenericsetPages in interface ISectionBaseISectionBase.getPages()public String getEdition()
IBook
getEdition in interface IBookpublic void setEdition(String edition)
IBook
setEdition in interface IBookpublic String getIsbn()
IBook
getIsbn in interface IBookpublic void setIsbn(String isbn)
IBook
setIsbn in interface IBookpublic String getIssn()
IJournal
getIssn in interface IJournalpublic void setIssn(String issn)
IJournal
setIssn in interface IJournalpublic String getSeriesPart()
IPrintedUnitBase
getSeriesPart in interface IPrintedUnitBasepublic void setSeriesPart(String seriesPart)
IPrintedUnitBase
setSeriesPart in interface IPrintedUnitBasepublic String getOrganization()
IProceedings
getOrganization in interface IProceedingspublic void setOrganization(String organization)
IProceedings
setOrganization in interface IProceedingspublic String getPublisher()
IPublicationBase
getPublisher in interface IPublicationBasepublic void setPublisher(String publisher)
IPublicationBase
setPublisher in interface IPublicationBase
public void setPublisher(String publisher,
String placePublished)
IPublicationBase
setPublisher in interface IPublicationBasepublisher - the publisher to setplacePublished - the place where the publication was publishedIPublicationBase.setPublisher(String),
IPublicationBase.setPlacePublished(String)public String getPlacePublished()
IPublicationBase
getPlacePublished in interface IPublicationBasepublic void setPlacePublished(String placePublished)
IPublicationBase
setPlacePublished in interface IPublicationBasepublic Institution getInstitution()
IReport
getInstitution in interface IReportpublic void setInstitution(Institution institution)
IReport
setInstitution in interface IReportpublic Institution getSchool()
IThesis
getSchool in interface IThesispublic void setSchool(Institution school)
IThesis
setSchool in interface IThesispublic Reference getInReference()
ISectionBase
getInReference in interface IGenericgetInReference in interface ISectionBasegetInReference in interface IWebPagepublic void setInReference(Reference inReference)
ISectionBase
setInReference in interface IGenericsetInReference in interface ISectionBasesetInReference in interface IWebPageinReference - The inReference.public void setType(ReferenceType type)
IReference
setType in interface IReferencepublic ReferenceType getType()
IReference
getType in interface IReferencepublic boolean isOfType(ReferenceType type)
isOfType in interface IReferencetype -
public String getTitle()
getTitle in interface IReferencegetCitation()public void setTitle(String title)
IReference
setTitle in interface IReferencegetTitle()public TimePeriod getDatePublished()
getDatePublished in interface IReferencepublic void setDatePublished(TimePeriod datePublished)
IReference
setDatePublished in interface INomenclaturalReferencesetDatePublished in interface IReferencegetDatePublished()public boolean hasDatePublished()
public TeamOrPersonBase getAuthorTeam()
author (team) who created the
content of this reference.
getAuthorTeam in interface IReferenceTeamOrPersonBasepublic void setAuthorTeam(TeamOrPersonBase authorTeam)
IReference
setAuthorTeam in interface IReferencegetAuthorTeam()public URI getUri()
getUri in interface IReferencepublic void setUri(URI uri)
setUri in interface IReferencegetUri()public String getReferenceAbstract()
IReference
getReferenceAbstract in interface IReferencepublic void setReferenceAbstract(String referenceAbstract)
IReference
setReferenceAbstract in interface IReferencereferenceAbstract - the referenceAbstract to setpublic boolean isNomenclaturallyRelevant()
taxon name has been originally
published in this reference following the rules of a
nomenclature code and is therefore used for
nomenclatural citations. This flag will be set as soon as this
reference is used as a nomenclatural reference for any taxon name.
public void setNomenclaturallyRelevant(boolean nomenclaturallyRelevant)
isNomenclaturallyRelevant()public String getCitation()
generateTitle()public String generateTitle()
generateTitle in interface IIdentifiableEntitygenerateTitle in class IdentifiableEntity<S extends IReferenceBaseCacheStrategy>public String getYear()
datePublished
of this reference contains more date information then (starting) year
only the year is returned.
than attribute.
getYear in interface INomenclaturalReferencepublic String getDatePublishedString()
the string representation
of the date published.
public int getParsingProblem()
IParsable0)
or not (!=0). The the parsing was not successful the value returned
defines in more detail what the problem was. The definition of these values depends
on the parser that has been used for parsing.
getParsingProblem in interface IParsablepublic void setParsingProblem(int parsingProblem)
setParsingProblem in interface IParsableIParsable.getParsingProblem()public boolean hasProblem()
IParsable
hasProblem in interface IParsable#getHasProblem()public boolean hasProblem(ParserProblem problem)
IParsable
hasProblem in interface IParsablepublic int getProblemStarts()
IParsable
getProblemStarts in interface IParsable#getHasProblem()public void setProblemStarts(int start)
setProblemStarts in interface IParsableIParsable.getProblemStarts()public int getProblemEnds()
IParsable
getProblemEnds in interface IParsable#getHasProblem()public void setProblemEnds(int end)
setProblemEnds in interface IParsableIParsable.getProblemEnds()public void addParsingProblem(ParserProblem warning)
IParsable
addParsingProblem in interface IParsablepublic void removeParsingProblem(ParserProblem problem)
IParsablenull, nothing happens.
removeParsingProblem in interface IParsablepublic List<ParserProblem> getParsingProblems()
IParsable
getParsingProblems in interface IParsablepublic String getNomenclaturalCitation(String microReference)
INomenclaturalReferencetaxon name.
getNomenclaturalCitation in interface INomenclaturalReferencegetNomenclaturalCitation in interface IReferencemicroReference - the detail, e.g. a page number, a figure, ...
public IArticle castReferenceToArticle()
cache strategy
assigned to this reference, a string that identifies this
reference and returns it. This string may be stored in the inherited
titleCache attribute.IdentifiableEntity.
getCitation(),
IdentifiableEntity.getTitleCache(),
IdentifiableEntity.generateTitle(),
eu.etaxonomy.cdm.strategy.strategy.cache.common.IIdentifiableEntityCacheStrategy#getTitleCache()public IBook castReferenceToBook()
public IBookSection castReferenceToBookSection()
public ICdDvd castReferenceToCdDvd()
public IDatabase castReferenceToDatabase()
public IGeneric castReferenceToGeneric()
public IInProceedings castReferenceToInProceedings()
public IJournal castReferenceToJournal()
public IMap castReferenceToMap()
public IPatent castReferenceToPatent()
public IPersonalCommunication castReferenceToPersonalCommunication()
public IPrintSeries castReferenceToPrintSeries()
public IWebPage castReferenceToWebPage()
public IProceedings castReferenceToProceedings()
public IReport castReferenceToReport()
public IThesis castReferenceToThesis()
public IJournal getInJournal()
IArticle
getInJournal in interface IArticlepublic void setInJournal(IJournal journal)
IArticle
setInJournal in interface IArticlepublic IPrintSeries getInSeries()
IPrintedUnitBase
getInSeries in interface IPrintedUnitBasepublic void setInSeries(IPrintSeries inSeries)
IPrintedUnitBase
setInSeries in interface IPrintedUnitBasepublic IBook getInBook()
IBookSection
getInBook in interface IBookSectionpublic void setInBook(IBook book)
IBookSection
setInBook in interface IBookSectionpublic IProceedings getInProceedings()
IInProceedings
getInProceedings in interface IInProceedingspublic void setInProceedings(IProceedings proceeding)
IInProceedings
setInProceedings in interface IInProceedingspublic void setCacheStrategy(IReferenceBaseCacheStrategy iReferenceBaseCacheStrategy)
IReference
setCacheStrategy in interface IReferencesetCacheStrategy in class IdentifiableEntity<S extends IReferenceBaseCacheStrategy>IdentifiableEntity.getCacheStrategy()public void setCacheStrategy(ArticleDefaultCacheStrategy cacheStrategy)
setCacheStrategy in interface IArticlepublic void setCacheStrategy(BookDefaultCacheStrategy cacheStrategy)
setCacheStrategy in interface IBookpublic void setCacheStrategy(JournalDefaultCacheStrategy cacheStrategy)
setCacheStrategy in interface IJournalpublic void setCacheStrategy(BookSectionDefaultCacheStrategy cacheStrategy)
setCacheStrategy in interface IBookSectionpublic void setCacheStrategy(GenericDefaultCacheStrategy cacheStrategy)
setCacheStrategy in interface IGenericpublic void setCacheStrategy(ReferenceBaseDefaultCacheStrategy cacheStrategy)
public Object clone()
clone in class IdentifiableMediaEntity<S extends IReferenceBaseCacheStrategy>IdentifiableMediaEntity.clone(),
Object.clone()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||