Package org.molgenis.vibe.core.formats
Class Disease
- java.lang.Object
-
- org.molgenis.vibe.core.formats.Entity
-
- org.molgenis.vibe.core.formats.BiologicalEntity
-
- org.molgenis.vibe.core.formats.Disease
-
- All Implemented Interfaces:
Comparable<Entity>,AllFieldsEquals,ResourceUri
public class Disease extends BiologicalEntity
A disease. Note that equality is determined throughURIsfrom the domain http://linkedlifedata.com describing an identifier from the Unified Medical Language System (UMLS).
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetIdPrefix()The entity prefix.protected StringgetIdRegex()protected intgetRegexIdGroup()The group within the regular expression the actualEntity.idis stored in.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
allFieldsEquals, compareTo, equals, getFormattedId, getId, getName, getUri, hashCode, retrieveIdFromString, setName
-
-
-
-
Field Detail
-
ID_PREFIX
public static final String ID_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Disease
public Disease(String id)
-
Disease
public Disease(URI uri)
-
Disease
public Disease(String id, String name) throws InvalidStringFormatException
- Throws:
InvalidStringFormatException
-
Disease
public Disease(URI uri, String name) throws InvalidStringFormatException
- Throws:
InvalidStringFormatException
-
-
Method Detail
-
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:
-
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.
-
-