Class AnnotationsWebService.OntologyTermSynonymValueObject

java.lang.Object
ubic.gemma.rest.AnnotationsWebService.OntologyTermSynonymValueObject
Enclosing class:
AnnotationsWebService

public static final class AnnotationsWebService.OntologyTermSynonymValueObject extends Object
A single synonym of an ontology term plus its scope.
Author:
tesarst
  • Constructor Details

    • OntologyTermSynonymValueObject

      public OntologyTermSynonymValueObject(String value, String type)
      Creates a new OntologyTermSynonymValueObject instance.
      Parameters:
      value - The synonym text.
      type - Synonym scope, mirroring the OBO/IAO predicates and the AnnotationsWebService.MatchedVia tokens: exact_synonym, narrow_synonym, broad_synonym, related_synonym, alt_label. Generic oboInOwl#hasSynonym (no declared scope) is reported as related_synonym.
  • Method Details

    • getValue

      public String getValue()
      The synonym text.
    • getType

      public String getType()
      Synonym scope, mirroring the OBO/IAO predicates and the AnnotationsWebService.MatchedVia tokens: exact_synonym, narrow_synonym, broad_synonym, related_synonym, alt_label. Generic oboInOwl#hasSynonym (no declared scope) is reported as related_synonym.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object