public enum ReferenceType extends java.lang.Enum<ReferenceType> implements IEnumTerm<ReferenceType>, java.io.Serializable
reference
.Enum Constant and Description |
---|
Article
Article in a journal.
|
Book |
BookSection
A part in a book, e.g.
|
CdDvd |
Database |
Generic |
InProceedings |
Journal |
Map |
Patent |
PersonalCommunication |
PrintSeries |
Proceedings |
Report |
Section
A reference of type section is a part-of another reference.
|
Thesis |
WebPage |
Modifier and Type | Method and Description |
---|---|
static ReferenceType |
getByKey(java.lang.String key) |
static ReferenceType |
getByUuid(java.util.UUID uuid) |
java.util.Set<ReferenceType> |
getGeneralizationOf()
Returns all defined terms this term is a direct generalization for.
|
java.util.Set<ReferenceType> |
getGeneralizationOf(boolean recursive)
Returns all defined terms this term is a generalization for.
|
java.lang.String |
getKey()
Returns the key for the enumeration.
|
ReferenceType |
getKindOf()
Returns the defined term this term is a kind of.
|
java.lang.String |
getMessage()
Returns a human readable label preferably for the default language.
|
java.lang.String |
getMessage(Language language)
Returns a human readable label preferably for the given language.
|
java.util.UUID |
getUuid() |
static java.util.Set<ReferenceType> |
inReferenceContraints(ReferenceType subReferenceType)
Provides the set of type which are applicable as in-references for
the
subReferenceType passed to this method:
The type specific rules are:
Article -> Journal
Book -> PrintSeries | Journal(Journal is needed here to cover historic situations: In Ehrenberg's times (Phycology) some articles (prior to publication in a journal) were printed and delivered to colleagues and libraries (published preprints). |
boolean |
isArticle() |
boolean |
isBook() |
boolean |
isBookSection() |
boolean |
isKindOf(ReferenceType ancestor)
Computes if
this term is kind of the ancestor term. |
boolean |
isPrintedUnit()
Returns true if references of this type are printed units (inheriting from
IPrintedUnitBase ) and therefore may have an editor, an in-series or an string
representing the series (seriesPart). |
boolean |
isPublication()
Returns true if references of this type are publications (inheriting from
IPublicationBase ) and therefore have a publisher and a publication place. |
boolean |
isSection()
Returns true if references of this type are parts of other references (inheriting from
ISection ) and therefore may have an in-reference and pages. |
boolean |
isVolumeReference()
Returns true if references of this type have volume information.
|
static ReferenceType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReferenceType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReferenceType Section
ISectionBase
public static final ReferenceType Article
Section
.public static final ReferenceType Book
public static final ReferenceType BookSection
Section
public static final ReferenceType CdDvd
public static final ReferenceType Database
public static final ReferenceType Generic
public static final ReferenceType InProceedings
public static final ReferenceType Journal
public static final ReferenceType Map
public static final ReferenceType Patent
public static final ReferenceType PersonalCommunication
public static final ReferenceType PrintSeries
public static final ReferenceType Proceedings
public static final ReferenceType Report
public static final ReferenceType Thesis
public static final ReferenceType WebPage
public static ReferenceType[] values()
for (ReferenceType c : ReferenceType.values()) System.out.println(c);
public static ReferenceType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isVolumeReference()
public boolean isPublication()
IPublicationBase
) and therefore have a publisher and a publication place.public boolean isPrintedUnit()
IPrintedUnitBase
) and therefore may have an editor, an in-series or an string
representing the series (seriesPart).public boolean isSection()
ISection
) and therefore may have an in-reference and pages.public static java.util.Set<ReferenceType> inReferenceContraints(ReferenceType subReferenceType)
subReferenceType
passed to this method:
The type specific rules are:
subReferenceType
matches none of the above rules the returned set will be empty.
NOTE: If these constraints are being used in UI contexts, it might be sensible in specific situations to add Generic
and null
to the list in case it was not empty.
subReferenceType
- The type of the part for which the possible in-refrence types are to be returned.null
public java.lang.String getKey()
IKeyTerm
public java.lang.String getMessage()
IKeyTerm
getMessage
in interface IKeyTerm
public java.lang.String getMessage(Language language)
IKeyTerm
getMessage
in interface IKeyTerm
public java.util.UUID getUuid()
getUuid
in interface ISimpleTerm<ReferenceType>
public ReferenceType getKindOf()
ISimpleTerm
this
termgetKindOf
in interface ISimpleTerm<ReferenceType>
public java.util.Set<ReferenceType> getGeneralizationOf()
ISimpleTerm
this
term.getGeneralizationOf
in interface ISimpleTerm<ReferenceType>
public boolean isKindOf(ReferenceType ancestor)
ISimpleTerm
this
term is kind of the ancestor
term.
So the ancestor
term is direct or indirect (recursive) generalization
of this
term.isKindOf
in interface ISimpleTerm<ReferenceType>
ancestor
- the potential ancestor termISimpleTerm.getKindOf()
,
ISimpleTerm.getGeneralizationOf()
public java.util.Set<ReferenceType> getGeneralizationOf(boolean recursive)
ISimpleTerm
this
term.
If parameter recursive
is false
only the
direct descendants will be returned. If it is true
the direct descendants and there recursive descendants (all descendants)
will be returned.getGeneralizationOf
in interface ISimpleTerm<ReferenceType>
public static ReferenceType getByKey(java.lang.String key)
public static ReferenceType getByUuid(java.util.UUID uuid)
public boolean isArticle()
public boolean isBook()
public boolean isBookSection()
Copyright © 2007-2020 EDIT. All Rights Reserved.