Class CharacteristicValueObject
java.lang.Object
ubic.gemma.model.common.IdentifiableValueObject<Characteristic>
ubic.gemma.model.common.description.CharacteristicValueObject
- All Implemented Interfaces:
Serializable,Comparable<CharacteristicValueObject>,Identifiable
public class CharacteristicValueObject
extends IdentifiableValueObject<Characteristic>
implements Comparable<CharacteristicValueObject>
Value object representation of a
Characteristic.- Author:
- poirigui
- See Also:
-
Field Summary
FieldsFields inherited from class ubic.gemma.model.common.IdentifiableValueObject
id -
Constructor Summary
ConstructorsConstructorDescriptionRequired when using the class as a spring bean.CharacteristicValueObject(String value, String valueUri) CharacteristicValueObject(String value, String valueUri, String category, String categoryUri) CharacteristicValueObject(Characteristic characteristic) -
Method Summary
Modifier and TypeMethodDescriptionstatic Collection<CharacteristicValueObject> characteristic2CharacteristicVO(Collection<? extends Characteristic> characteristics) intbooleanintwhat Ontology uses this termlonglongnumber of occurrences in all genesgetTaxon()getUrlId()id used by url on the client sidegetValue()The definition of the value, if it is an ontology term, as supplied by the ontology.A unique ontology identifier (i.e.inthashCode()voidbooleanbooleanbooleanisChild()child term from a rootbooleanisRoot()root of a queryvoidsetAlreadyPresentInDatabase(boolean alreadyPresentInDatabase) voidsetAlreadyPresentOnGene(boolean alreadyPresentOnGene) voidsetCategory(String category) voidsetCategoryUri(String categoryUri) voidsetChild(boolean child) child term from a rootvoidsetNumTimesUsed(int numTimesUsed) voidsetOntologyUsed(String ontologyUsed) what Ontology uses this termvoidsetOriginalValue(String originalValue) voidsetPrivateGeneCount(long privateGeneCount) voidsetPublicGeneCount(long publicGeneCount) number of occurrences in all genesvoidsetRoot(boolean root) root of a queryvoidvoidid used by url on the client sidevoidvoidsetValueDefinition(String valueDefinition) The definition of the value, if it is an ontology term, as supplied by the ontology.voidsetValueId(String valueId) A unique ontology identifier (i.e.voidsetValueUri(String valueUri) toString()Methods inherited from class ubic.gemma.model.common.IdentifiableValueObject
canEqual, getId, setId
-
Field Details
-
valueId
A unique ontology identifier (i.e. IRI) for this characteristic.
-
-
Constructor Details
-
CharacteristicValueObject
public CharacteristicValueObject()Required when using the class as a spring bean. -
CharacteristicValueObject
-
CharacteristicValueObject
-
CharacteristicValueObject
-
CharacteristicValueObject
-
-
Method Details
-
characteristic2CharacteristicVO
public static Collection<CharacteristicValueObject> characteristic2CharacteristicVO(Collection<? extends Characteristic> characteristics) -
hashCode
public int hashCode()- Overrides:
hashCodein classIdentifiableValueObject<Characteristic>
-
equals
- Overrides:
equalsin classIdentifiableValueObject<Characteristic>
-
compareTo
- Specified by:
compareToin interfaceComparable<CharacteristicValueObject>
-
toString
- Overrides:
toStringin classIdentifiableValueObject<Characteristic>
-
incrementOccurrenceCount
public void incrementOccurrenceCount() -
getCategory
-
getCategoryUri
-
getValue
-
getValueUri
-
getOriginalValue
-
getValueId
A unique ontology identifier (i.e. IRI) for this characteristic. -
getUrlId
id used by url on the client side -
isAlreadyPresentInDatabase
public boolean isAlreadyPresentInDatabase() -
isAlreadyPresentOnGene
public boolean isAlreadyPresentOnGene() -
isChild
public boolean isChild()child term from a root -
getNumTimesUsed
public int getNumTimesUsed() -
getOntologyUsed
what Ontology uses this term -
getPrivateGeneCount
public long getPrivateGeneCount() -
getPublicGeneCount
public long getPublicGeneCount()number of occurrences in all genes -
isRoot
public boolean isRoot()root of a query -
getTaxon
-
getValueDefinition
The definition of the value, if it is an ontology term, as supplied by the ontology. If the value is free text, this will be empty -
setCategory
-
setCategoryUri
-
setValue
-
setValueUri
-
setOriginalValue
-
setValueId
A unique ontology identifier (i.e. IRI) for this characteristic. -
setUrlId
id used by url on the client side -
setAlreadyPresentInDatabase
public void setAlreadyPresentInDatabase(boolean alreadyPresentInDatabase) -
setAlreadyPresentOnGene
public void setAlreadyPresentOnGene(boolean alreadyPresentOnGene) -
setChild
public void setChild(boolean child) child term from a root -
setNumTimesUsed
public void setNumTimesUsed(int numTimesUsed) -
setOntologyUsed
what Ontology uses this term -
setPrivateGeneCount
public void setPrivateGeneCount(long privateGeneCount) -
setPublicGeneCount
public void setPublicGeneCount(long publicGeneCount) number of occurrences in all genes -
setRoot
public void setRoot(boolean root) root of a query -
setTaxon
-
setValueDefinition
The definition of the value, if it is an ontology term, as supplied by the ontology. If the value is free text, this will be empty
-