Package org.molgenis.vibe.core.formats
Class PubmedEvidence
- java.lang.Object
-
- org.molgenis.vibe.core.formats.Entity
-
- org.molgenis.vibe.core.formats.PubmedEvidence
-
- All Implemented Interfaces:
Comparable<Entity>,AllFieldsEquals,EntityWithIntId,ResourceUri
public class PubmedEvidence extends Entity implements EntityWithIntId
-
-
Field Summary
Fields Modifier and Type Field Description static StringID_PREFIXstatic Comparator<PubmedEvidence>RELEASE_YEAR_COMPARATORSortsPubmedEvidencefirst ongetReleaseYear()(most recent first) and then by ID (asint, lowest to highest).
-
Constructor Summary
Constructors Constructor Description PubmedEvidence(String id, int year)PubmedEvidence(URI uri, int year)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallFieldsEquals(Object o)intcompareTo(Entity o)intgetIdInt()protected StringgetIdPrefix()The entity prefix.protected StringgetIdRegex()protected intgetRegexIdGroup()The group within the regular expression the actualEntity.idis stored in.intgetReleaseYear()protected StringgetUriPrefix()The String describing the URI prefix it should match with.StringtoString()While uniqueness is based on theEntity.id(as eachEntity.idshould only occur once and data belonging to it should be consistent),Entity.toString()can be used for testing whether data retrieval from external sources yielded the expected results.-
Methods inherited from class org.molgenis.vibe.core.formats.Entity
equals, getFormattedId, getId, getName, getUri, hashCode, retrieveIdFromString, setName
-
-
-
-
Field Detail
-
ID_PREFIX
public static final String ID_PREFIX
- See Also:
- Constant Field Values
-
RELEASE_YEAR_COMPARATOR
public static final Comparator<PubmedEvidence> RELEASE_YEAR_COMPARATOR
SortsPubmedEvidencefirst ongetReleaseYear()(most recent first) and then by ID (asint, lowest to highest).
-
-
Method Detail
-
getIdInt
public int getIdInt()
- Specified by:
getIdIntin interfaceEntityWithIntId
-
getIdPrefix
protected String getIdPrefix()
Description copied from class:EntityThe entity prefix.- Specified by:
getIdPrefixin classEntity- Returns:
- a
Stringcontaining the prefix.
-
getIdRegex
protected String getIdRegex()
Description copied from class:Entity- Specified by:
getIdRegexin classEntity- Returns:
-
getRegexIdGroup
protected int getRegexIdGroup()
Description copied from class:EntityThe group within the regular expression the actualEntity.idis stored in.- Specified by:
getRegexIdGroupin classEntity- Returns:
-
getUriPrefix
protected String getUriPrefix()
Description copied from class:EntityThe String describing the URI prefix it should match with.- Specified by:
getUriPrefixin classEntity- Returns:
-
getReleaseYear
public int getReleaseYear()
-
compareTo
public int compareTo(Entity o)
- Specified by:
compareToin interfaceComparable<Entity>- Overrides:
compareToin classEntity
-
allFieldsEquals
public boolean allFieldsEquals(Object o)
- Specified by:
allFieldsEqualsin interfaceAllFieldsEquals- Overrides:
allFieldsEqualsin classEntity
-
toString
public String toString()
Description copied from class:EntityWhile uniqueness is based on theEntity.id(as eachEntity.idshould only occur once and data belonging to it should be consistent),Entity.toString()can be used for testing whether data retrieval from external sources yielded the expected results.
-
-