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 String
getValueOfFirst(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 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 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 aTerm
value.
-
getVocabularyBackedTerms
public static List<Term> getVocabularyBackedTerms()
Returns all theTerm
that are annotated withVocabulary
.
-
isVocabulary
public static boolean isVocabulary(Term term)
- Returns:
- true if the term is a handled/annotated as Vocabulary.
-
-