Package org.gbif.dwc.terms
Class Terms
- java.lang.Object
-
- org.gbif.dwc.terms.Terms
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetValueOfFirst(Map<Term,String> record, Term... terms)Tries various terms in given order until it finds a non empty value.static List<Term>getVocabularyBackedTerms()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 Detail
-
getValueOfFirst
public static String getValueOfFirst(Map<Term,String> record, Term... terms)
Tries various terms in given order until it finds a non empty value.- Returns:
- value or null
-
isTermValueBlank
public static boolean isTermValueBlank(String termValue)
Check if the value provided should be considered "blank" in the context of aTermvalue.
-
getVocabularyBackedTerms
public static List<Term> getVocabularyBackedTerms()
Returns all theTermthat are annotated withVocabulary.
-
isVocabulary
public static boolean isVocabulary(Term term)
- Returns:
- true if the term is a handled/annotated as Vocabulary.
-
-