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