Package org.gbif.api.model.registry.eml
Class KeywordCollection
- java.lang.Object
-
- org.gbif.api.model.registry.eml.KeywordCollection
-
- All Implemented Interfaces:
Serializable
,Keywords
public class KeywordCollection extends Object implements Serializable, Keywords
Allows a collection of keywords which may declare a thesaurus from which they come from.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description KeywordCollection()
KeywordCollection(String thesaurus, Set<String> keywords)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addKeyword(String keyword)
Add keyword to keywords Set.boolean
equals(Object o)
Set<String>
getKeywords()
String
getThesaurus()
int
hashCode()
void
setKeywords(Set<String> keywords)
void
setThesaurus(String thesaurus)
Collection<String>
toKeywords()
String
toString()
-
-
-
Constructor Detail
-
KeywordCollection
public KeywordCollection()
-
KeywordCollection
public KeywordCollection(String thesaurus, Set<String> keywords)
-
-
Method Detail
-
getKeywords
public Set<String> getKeywords()
-
setKeywords
public void setKeywords(Set<String> keywords)
-
getThesaurus
public String getThesaurus()
-
setThesaurus
public void setThesaurus(String thesaurus)
-
toKeywords
public Collection<String> toKeywords()
- Specified by:
toKeywords
in interfaceKeywords
-
addKeyword
public void addKeyword(String keyword)
Add keyword to keywords Set.
-
-