Class Meta
java.lang.Object
org.geneontology.obographs.core.model.AbstractMeta
org.geneontology.obographs.core.model.Meta
@ParametersAreNonnullByDefault
@Generated("org.immutables.processor.ProxyProcessor")
@Immutable
public final class Meta
extends AbstractMeta
A holder for metadata
The information in a Meta object consists sets of
PropertyValue objects,
which associate the Meta object holder with some value via some property.
The set of PropertyValue objects can be partitioned into two subsets:
1. PropertyValues corresponding to a specific explicitly modeled property type (e.g synonym)
2. generic BasicPropertyValues - anything property not explicitly modeled- Author:
- cjm
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic MetacopyOf(AbstractMeta instance) Creates an immutable copy of aAbstractMetavalue.booleanThis instance is equal to all instances ofMetathat have equal attribute values.booleangetXrefs()inthashCode()Computes a hash code from attributes:definition,comments,subsets,synonyms,xrefs,xrefsValues,basicPropertyValues,version,deprecated.toString()Prints the immutable valueMetawith attribute values.final MetawithBasicPropertyValues(Iterable<? extends BasicPropertyValue> elements) Copy the current immutable object with elements that replace the content ofbasicPropertyValues.final MetawithBasicPropertyValues(BasicPropertyValue... elements) Copy the current immutable object with elements that replace the content ofbasicPropertyValues.final MetawithComments(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofcomments.final MetawithComments(String... elements) Copy the current immutable object with elements that replace the content ofcomments.final MetaCopy the current immutable object by setting a value for thedefinitionattribute.final MetawithDeprecated(boolean value) Copy the current immutable object by setting a value for thedeprecatedattribute.final MetawithSubsets(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofsubsets.final MetawithSubsets(String... elements) Copy the current immutable object with elements that replace the content ofsubsets.final MetawithSynonyms(Iterable<? extends SynonymPropertyValue> elements) Copy the current immutable object with elements that replace the content ofsynonyms.final MetawithSynonyms(SynonymPropertyValue... elements) Copy the current immutable object with elements that replace the content ofsynonyms.final MetawithVersion(String value) Copy the current immutable object by setting a value for theversionattribute.final MetawithXrefs(Iterable<? extends XrefPropertyValue> elements) Copy the current immutable object with elements that replace the content ofxrefs.final MetawithXrefs(XrefPropertyValue... elements) Copy the current immutable object with elements that replace the content ofxrefs.final MetawithXrefsValues(Iterable<String> elements) Copy the current immutable object with elements that replace the content ofxrefsValues.final MetawithXrefsValues(String... elements) Copy the current immutable object with elements that replace the content ofxrefsValues.
-
Method Details
-
getDefinition
- Specified by:
getDefinitionin classAbstractMeta- Returns:
- The value of the
definitionattribute
-
getComments
- Specified by:
getCommentsin classAbstractMeta- Returns:
- The value of the
commentsattribute
-
getSubsets
- Specified by:
getSubsetsin classAbstractMeta- Returns:
- The value of the
subsetsattribute
-
getSynonyms
- Specified by:
getSynonymsin classAbstractMeta- Returns:
- The value of the
synonymsattribute
-
getXrefs
- Specified by:
getXrefsin classAbstractMeta- Returns:
- The value of the
xrefsattribute
-
getXrefsValues
- Overrides:
getXrefsValuesin classAbstractMeta- Returns:
- The value of the
xrefsValuesattribute
-
getBasicPropertyValues
- Specified by:
getBasicPropertyValuesin classAbstractMeta- Returns:
- The value of the
basicPropertyValuesattribute
-
getVersion
- Overrides:
getVersionin classAbstractMeta- Returns:
- The value of the
versionattribute
-
getDeprecated
public boolean getDeprecated()- Overrides:
getDeprecatedin classAbstractMeta- Returns:
- The value of the
deprecatedattribute
-
withDefinition
Copy the current immutable object by setting a value for thedefinitionattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for definition (can benull)- Returns:
- A modified copy of the
thisobject
-
withComments
Copy the current immutable object with elements that replace the content ofcomments.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withComments
Copy the current immutable object with elements that replace the content ofcomments. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of comments elements to set- Returns:
- A modified copy of
thisobject
-
withSubsets
Copy the current immutable object with elements that replace the content ofsubsets.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSubsets
Copy the current immutable object with elements that replace the content ofsubsets. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of subsets elements to set- Returns:
- A modified copy of
thisobject
-
withSynonyms
Copy the current immutable object with elements that replace the content ofsynonyms.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withSynonyms
Copy the current immutable object with elements that replace the content ofsynonyms. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of synonyms elements to set- Returns:
- A modified copy of
thisobject
-
withXrefs
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
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
-
withXrefsValues
Copy the current immutable object with elements that replace the content ofxrefsValues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withXrefsValues
Copy the current immutable object with elements that replace the content ofxrefsValues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of xrefsValues elements to set- Returns:
- A modified copy of
thisobject
-
withBasicPropertyValues
Copy the current immutable object with elements that replace the content ofbasicPropertyValues.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withBasicPropertyValues
Copy the current immutable object with elements that replace the content ofbasicPropertyValues. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of basicPropertyValues elements to set- Returns:
- A modified copy of
thisobject
-
withVersion
Copy the current immutable object by setting a value for theversionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for version- Returns:
- A modified copy of the
thisobject
-
withDeprecated
Copy the current immutable object by setting a value for thedeprecatedattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for deprecated- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofMetathat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:definition,comments,subsets,synonyms,xrefs,xrefsValues,basicPropertyValues,version,deprecated. -
toString
Prints the immutable valueMetawith attribute values. -
copyOf
Creates an immutable copy of aAbstractMetavalue. 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 Meta instance
-