Package org.gbif.dwc.terms
Class Terms
java.lang.Object
org.gbif.dwc.terms.Terms
Utility methods for
Term-
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetValueOfFirst(Map<Term, String> record, Term... terms) Tries various terms in given order until it finds a non empty value.Returns all theTermthat are annotated withVocabulary.static booleanisTermValueBlank(String termValue) Check if the value provided should be considered "blank" in the context of aTermvalue.static booleanisVocabulary(Term term)
-
Method Details
-
getValueOfFirst
Tries various terms in given order until it finds a non empty value.- Returns:
- value or null
-
isTermValueBlank
Check if the value provided should be considered "blank" in the context of aTermvalue. -
getVocabularyBackedTerms
Returns all theTermthat are annotated withVocabulary. -
isVocabulary
- Returns:
- true if the term is a handled/annotated as Vocabulary.
-