Class SynonymPropertyValue
- java.lang.Object
-
- org.geneontology.obographs.core.model.meta.AbstractSynonymPropertyValue
-
- org.geneontology.obographs.core.model.meta.SynonymPropertyValue
-
- All Implemented Interfaces:
Comparable<PropertyValue>,PropertyValue
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class SynonymPropertyValue extends AbstractSynonymPropertyValue
APropertyValuethat represents a an alternative term for a node- Author:
- cjm
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSynonymPropertyValue.BuilderBuilds instances of typeSynonymPropertyValue.-
Nested classes/interfaces inherited from class org.geneontology.obographs.core.model.meta.AbstractSynonymPropertyValue
AbstractSynonymPropertyValue.SCOPES
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SynonymPropertyValuecopyOf(AbstractSynonymPropertyValue instance)Creates an immutable copy of aAbstractSynonymPropertyValuevalue.booleanequals(Object another)This instance is equal to all instances ofSynonymPropertyValuethat have equal attribute values.MetagetMeta()StringgetPred()Predicates correspond to OWL properties.StringgetSynonymType()StringgetVal()The value of the property-valuecom.google.common.collect.ImmutableList<String>getXrefs()An array denoting objects that support the property value assertioninthashCode()Computes a hash code from attributes:pred,val,xrefs,meta,synonymType.StringtoString()Prints the immutable valueSynonymPropertyValuewith attribute values.SynonymPropertyValuewithMeta(Meta value)Copy the current immutable object by setting a value for themetaattribute.SynonymPropertyValuewithPred(String value)Copy the current immutable object by setting a value for thepredattribute.SynonymPropertyValuewithSynonymType(String value)Copy the current immutable object by setting a value for thesynonymTypeattribute.SynonymPropertyValuewithVal(String value)Copy the current immutable object by setting a value for thevalattribute.SynonymPropertyValuewithXrefs(Iterable<String> elements)Copy the current immutable object with elements that replace the content ofxrefs.SynonymPropertyValuewithXrefs(String... elements)Copy the current immutable object with elements that replace the content ofxrefs.-
Methods inherited from class org.geneontology.obographs.core.model.meta.AbstractSynonymPropertyValue
getTypes, isBroad, isExact, isNarrow, isRelated
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.geneontology.obographs.core.model.meta.PropertyValue
compareTo
-
-
-
-
Method Detail
-
getPred
public String getPred()
Predicates correspond to OWL properties. Like all preds in this datamodel, a pred is represented as a String which denotes a CURIE- Returns:
- the pred
-
getVal
public String getVal()
The value of the property-value- Returns:
- the val
-
getXrefs
public com.google.common.collect.ImmutableList<String> getXrefs()
An array denoting objects that support the property value assertion- Returns:
- the xrefs
-
getMeta
@Nullable public Meta getMeta()
- Returns:
- The value of the
metaattribute
-
getSynonymType
public String getSynonymType()
- Overrides:
getSynonymTypein classAbstractSynonymPropertyValue- Returns:
- The value of the
synonymTypeattribute
-
withPred
public final SynonymPropertyValue withPred(String value)
Copy the current immutable object by setting a value for thepredattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for pred- Returns:
- A modified copy of the
thisobject
-
withVal
public final SynonymPropertyValue withVal(String value)
Copy the current immutable object by setting a value for thevalattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for val- Returns:
- A modified copy of the
thisobject
-
withXrefs
public final SynonymPropertyValue withXrefs(String... elements)
Copy the current immutable object with elements that replace the content ofxrefs.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withXrefs
public final SynonymPropertyValue withXrefs(Iterable<String> elements)
Copy the current immutable object with elements that replace the content ofxrefs. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of xrefs elements to set- Returns:
- A modified copy of
thisobject
-
withMeta
public final SynonymPropertyValue withMeta(@Nullable Meta value)
Copy the current immutable object by setting a value for themetaattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for meta (can benull)- Returns:
- A modified copy of the
thisobject
-
withSynonymType
public final SynonymPropertyValue withSynonymType(String value)
Copy the current immutable object by setting a value for thesynonymTypeattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for synonymType- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofSynonymPropertyValuethat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:pred,val,xrefs,meta,synonymType.
-
toString
public String toString()
Prints the immutable valueSynonymPropertyValuewith attribute values.
-
copyOf
public static SynonymPropertyValue copyOf(AbstractSynonymPropertyValue instance)
Creates an immutable copy of aAbstractSynonymPropertyValuevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable SynonymPropertyValue instance
-
-