public interface VocabularyInputTerm extends VocabularyTerm
reindexing
,
exposing the already parsed fields and allowing new fields to be added.Modifier and Type | Method and Description |
---|---|
VocabularyInputTerm |
append(String name,
Object value)
Generic property setter, additive.
|
VocabularyInputTerm |
set(String name,
Object value)
Generic property setter.
|
VocabularyInputTerm |
setDescription(String description)
Sets the human-readable term description, usually a longer phrase or paragraph that describes the term.
|
VocabularyInputTerm |
setId(String id)
Sets the (mandatory) term identifier.
|
VocabularyInputTerm |
setName(String name)
Sets the short human-readable term name.
|
VocabularyInputTerm |
setParents(Set<VocabularyTerm> parents)
Sets the parents (direct ancestors) of this term.
|
get, getAncestors, getAncestorsAndSelf, getDescription, getDistanceTo, getId, getName, getParents, getTranslatedDescription, getTranslatedName, getTranslatedValues, getVocabulary, toJSON
VocabularyInputTerm setId(String id)
id
- the term identifier to set, in the format <vocabulary prefix>:<term id>
, for example
HP:0002066
or MIM:260540
VocabularyInputTerm setName(String name)
name
- the term name to setVocabularyInputTerm setDescription(String description)
description
- the term description to setVocabularyInputTerm setParents(Set<VocabularyTerm> parents)
parents
- a set of vocabulary terms, null
or an empty set means that the term has no parentsVocabularyInputTerm set(String name, Object value)
name
- the name of the property to setvalue
- the value to set for the requested property, or null
if this field should be removedVocabularyInputTerm append(String name, Object value)
null
value or an empty collection is passed, then the call is ignored and nothing is
changed. If there isn't a value already stored, the passed value is stored as-is. If the stored value is a single
object and the passed value is a single object, then a new set is created with the two values, and stored. If the
stored value is a single object and the passed value is a collection, then the stored value is added to the
passed collection, and the passed collection is stored as-is. If a collection is already stored and the passed
value is a single object, then the passed value is added to that collection. If a collection is already stored
and the passed value is another collection, then the passed collection is merged into the stored one.name
- the name of the property to setvalue
- the value to append for the requested property; null
and empty collections are ignoredCopyright © 2011–2018 University of Toronto, Computational Biology Lab. All rights reserved.