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.
- Author:
- poirigui
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Statement.Factory
-
Constructor Summary
Constructors Constructor Description Statement()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description int
compareTo(Characteristic characteristic)
boolean
equals(Object object)
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity.String
getObject()
String
getObjectUri()
String
getPredicate()
String
getPredicateUri()
String
getSecondObject()
String
getSecondObjectUri()
String
getSecondPredicate()
String
getSecondPredicateUri()
String
getSubject()
Obtain the subject of the statement.String
getSubjectUri()
Obtain the subject URI of the statement.String
getValue()
Deprecated.usegetSubject()
insteadString
getValueUri()
Deprecated.usegetSubjectUri()
insteadint
hashCode()
Returns a hash code based on this entity's identifiers.void
setObject(String object)
void
setObjectUri(String objectUri)
void
setPredicate(String predicate)
void
setPredicateUri(String predicateUri)
void
setSecondObject(String secondObject)
void
setSecondObjectUri(String secondObjectUri)
void
setSecondPredicate(String secondPredicate)
void
setSecondPredicateUri(String secondPredicateUri)
void
setSubject(String subject)
void
setSubjectUri(String subject)
void
setValue(String value)
Deprecated.usesetSubject(String)
insteadvoid
setValueUri(String uri)
Deprecated.usesetSubjectUri(String)
insteadString
toString()
-
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:
getValue
in classCharacteristic
- Returns:
- The human-readable term (e.g., "OrganismPart"; "kinase")
-
setValue
@Deprecated public void setValue(String value)
Deprecated.usesetSubject(String)
instead- Overrides:
setValue
in classCharacteristic
-
getValueUri
@Deprecated public String getValueUri()
Deprecated.usegetSubjectUri()
instead- Overrides:
getValueUri
in 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:
setValueUri
in 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)
-
equals
public boolean equals(Object object)
Description copied from class:AbstractDescribable
Returnstrue
if the argument is an Describable instance and all identifiers for this entity equal the identifiers of the argument entity. Returnsfalse
otherwise.- Overrides:
equals
in classCharacteristic
-
hashCode
public int hashCode()
Description copied from class:AbstractDescribable
Returns a hash code based on this entity's identifiers.- Overrides:
hashCode
in classCharacteristic
-
compareTo
public int compareTo(@Nonnull Characteristic characteristic)
- Specified by:
compareTo
in interfaceComparable<Characteristic>
- Overrides:
compareTo
in classCharacteristic
-
toString
public String toString()
- Overrides:
toString
in classCharacteristic
- See Also:
AbstractDescribable.toString()
-
-