Class KeywordsImpl
- Object
-
- AbstractMetadata
-
- ModifiableMetadata
-
- MetadataEntity
-
- KeywordsImpl
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Keywords
public class KeywordsImpl extends MetadataEntity implements Keywords
Keywords, their type and reference source.- Since:
- 2.1
- Author:
- Martin Desruisseaux (IRD), Touraïvane
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class AbstractMetadata
LOGGER
-
-
Constructor Summary
Constructors Constructor Description KeywordsImpl()
Constructs an initially empty keywords.KeywordsImpl(Collection<? extends InternationalString> keywords)
Creates keywords initialized to the given list.KeywordsImpl(Keywords source)
Constructs a metadata entity initialized with the values from the specified metadata.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<InternationalString>
getKeywords()
Commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.Citation
getThesaurusName()
Name of the formally registered thesaurus or a similar authoritative source of keywords.KeywordType
getType()
Subject matter used to group similar keywords.void
setKeywords(Collection<? extends InternationalString> newValues)
Set commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.void
setThesaurusName(Citation newValue)
Set the name of the formally registered thesaurus or a similar authoritative source of keywords.void
setType(KeywordType newValue)
Set the subject matter used to group similar keywords.-
Methods inherited from class MetadataEntity
ensureNonNull, getStandard
-
Methods inherited from class ModifiableMetadata
checkWritePermission, clone, copyCollection, copyList, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, unmodifiable
-
Methods inherited from class AbstractMetadata
asMap, asTree, equals, getInterface, hashCode, toString
-
-
-
-
Constructor Detail
-
KeywordsImpl
public KeywordsImpl()
Constructs an initially empty keywords.
-
KeywordsImpl
public KeywordsImpl(Keywords source)
Constructs a metadata entity initialized with the values from the specified metadata.- Since:
- 2.4
-
KeywordsImpl
public KeywordsImpl(Collection<? extends InternationalString> keywords)
Creates keywords initialized to the given list.
-
-
Method Detail
-
getKeywords
public Collection<InternationalString> getKeywords()
Commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.- Specified by:
getKeywords
in interfaceKeywords
- Returns:
- Word(s) or phrase(s) used to describe the subject.
-
setKeywords
public void setKeywords(Collection<? extends InternationalString> newValues)
Set commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.
-
getType
public KeywordType getType()
Subject matter used to group similar keywords.
-
setType
public void setType(KeywordType newValue)
Set the subject matter used to group similar keywords.
-
getThesaurusName
public Citation getThesaurusName()
Name of the formally registered thesaurus or a similar authoritative source of keywords.- Specified by:
getThesaurusName
in interfaceKeywords
- Returns:
- Name of registered thesaurus or similar authoritative source of keywords, or
null
.
-
setThesaurusName
public void setThesaurusName(Citation newValue)
Set the name of the formally registered thesaurus or a similar authoritative source of keywords.
-
-