Class Statement
- java.lang.Object
-
- ubic.gemma.model.common.AbstractDescribable
-
- ubic.gemma.model.common.description.Characteristic
-
- ubic.gemma.model.expression.experiment.Statement
-
- All Implemented Interfaces:
Serializable,Comparable<Characteristic>,Describable,Identifiable
public class Statement extends Characteristic
A special kind of characteristic that act as a statement.It can relate to up to two other objects, essentially forming two statements. This is a limited form of RDF-style triplet with the main limitation that a given subject can have up to two predicates and objects.
You can make abstraction of that implementation detail by using
getSubject(int),getPredicate(int),getObject(int)andgetNumberOfStatements().- Author:
- poirigui
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStatement.Factory
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description intcompareTo(Characteristic characteristic)booleanequals(Object object)Returnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.intgetNumberOfStatements()StringgetObject()StringgetObject(int index)StringgetObjectUri()StringgetObjectUri(int index)StringgetPredicate()StringgetPredicate(int index)StringgetPredicateUri()StringgetPredicateUri(int index)StringgetSecondObject()StringgetSecondObjectUri()StringgetSecondPredicate()StringgetSecondPredicateUri()StringgetSubject()Obtain the subject of the statement.StringgetSubject(int index)StringgetSubjectUri()Obtain the subject URI of the statement.StringgetSubjectUri(int index)StringgetValue()Deprecated.usegetSubject()insteadStringgetValueUri()Deprecated.usegetSubjectUri()insteadinthashCode()Returns a hash code based on this entity's identifiers.voidsetObject(String object)voidsetObjectUri(String objectUri)voidsetPredicate(String predicate)voidsetPredicateUri(String predicateUri)voidsetSecondObject(String secondObject)voidsetSecondObjectUri(String secondObjectUri)voidsetSecondPredicate(String secondPredicate)voidsetSecondPredicateUri(String secondPredicateUri)voidsetSubject(String subject)voidsetSubjectUri(String subject)voidsetValue(String value)Deprecated.usesetSubject(String)insteadvoidsetValueUri(String uri)Deprecated.usesetSubjectUri(String)insteadStringtoString()-
Methods inherited from class ubic.gemma.model.common.description.Characteristic
getByCategoryAndValueComparator, getByCategoryComparator, getCategory, getCategoryUri, getComparator, getEvidenceCode, getId, getOriginalValue, isMigratedToStatement, setCategory, setCategoryUri, setEvidenceCode, setMigratedToStatement, setOriginalValue
-
Methods inherited from class ubic.gemma.model.common.AbstractDescribable
getDescription, getName, setDescription, setId, setName
-
-
-
-
Method Detail
-
getValue
@Deprecated public String getValue()
Deprecated.usegetSubject()instead- Overrides:
getValuein classCharacteristic- Returns:
- The human-readable term (e.g., "OrganismPart"; "kinase")
-
setValue
@Deprecated public void setValue(String value)
Deprecated.usesetSubject(String)instead- Overrides:
setValuein classCharacteristic
-
getValueUri
@Deprecated public String getValueUri()
Deprecated.usegetSubjectUri()instead- Overrides:
getValueUriin classCharacteristic- Returns:
- This can be a URI to any resources that describes the characteristic. Often it might be a URI to an OWL ontology term. If the URI is an instance of an abstract class, the classUri should be filled in with the URI for the abstract class.
-
setValueUri
@Deprecated public void setValueUri(@Nullable String uri)
Deprecated.usesetSubjectUri(String)instead- Overrides:
setValueUriin classCharacteristic
-
getSubject
public String getSubject()
Obtain the subject of the statement.
-
setSubject
public void setSubject(String subject)
-
getSubjectUri
public String getSubjectUri()
Obtain the subject URI of the statement.
-
setSubjectUri
public void setSubjectUri(String subject)
-
getNumberOfStatements
public int getNumberOfStatements()
-
equals
public boolean equals(Object object)
Description copied from class:AbstractDescribableReturnstrueif the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalseotherwise.- Overrides:
equalsin classCharacteristic
-
hashCode
public int hashCode()
Description copied from class:AbstractDescribableReturns a hash code based on this entity's identifiers.- Overrides:
hashCodein classCharacteristic
-
compareTo
public int compareTo(@Nonnull Characteristic characteristic)
- Specified by:
compareToin interfaceComparable<Characteristic>- Overrides:
compareToin classCharacteristic
-
toString
public String toString()
- Overrides:
toStringin classCharacteristic- See Also:
AbstractDescribable.toString()
-
-