public class DefaultKeywords extends ISOMetadata implements Keywords
Defined in the sis-metadata module
identifiers, LOGGER
Constructor and Description |
---|
DefaultKeywords()
Constructs an initially empty keywords.
|
DefaultKeywords(CharSequence... keywords)
Creates keywords initialized to the given key word.
|
DefaultKeywords(Keywords object)
Constructs a new instance initialized with the values from the specified metadata object.
|
Modifier and Type | Method and Description |
---|---|
static DefaultKeywords |
castOrCopy(Keywords object)
Returns a SIS metadata implementation with the values of the given arbitrary implementation.
|
Collection<InternationalString> |
getKeywords()
Returns commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.
|
Citation |
getThesaurusName()
Returns the name of the formally registered thesaurus or a similar authoritative source of keywords.
|
KeywordType |
getType()
Returns the subject matter used to group similar keywords.
|
void |
setKeywords(Collection<? extends InternationalString> newValues)
Sets commonly used word(s) or formalised word(s) or phrase(s) used to describe the subject.
|
void |
setThesaurusName(Citation newValue)
Sets the name of the formally registered thesaurus or a similar authoritative source of keywords.
|
void |
setType(KeywordType newValue)
Sets the subject matter used to group similar keywords.
|
getIdentifierMap, getIdentifiers, getStandard
checkWritePermission, clone, collectionType, copyCollection, copyList, copySet, freeze, isModifiable, nonNullCollection, nonNullList, nonNullSet, singleton, unmodifiable, writeCollection, writeList, writeSet
asMap, asTreeTable, equals, equals, getInterface, hashCode, isEmpty, prune, toString
public DefaultKeywords()
public DefaultKeywords(CharSequence... keywords)
keywords
- Commonly used words or formalised words or phrases used to describe
the subject, or null
if none.public DefaultKeywords(Keywords object)
object
- The metadata to copy values from, or null
if none.castOrCopy(Keywords)
public static DefaultKeywords castOrCopy(Keywords object)
null
, then this method returns null
.DefaultKeywords
, then it is returned unchanged.DefaultKeywords
instance is created using the
copy constructor
and returned. Note that this is a shallow copy operation, since the other
metadata contained in the given object are not recursively copied.object
- The object to get as a SIS implementation, or null
if none.null
if the argument was null.public Collection<InternationalString> getKeywords()
getKeywords
in interface Keywords
public void setKeywords(Collection<? extends InternationalString> newValues)
newValues
- The new keywords.public KeywordType getType()
public void setType(KeywordType newValue)
newValue
- The new keyword type.public Citation getThesaurusName()
getThesaurusName
in interface Keywords
null
.public void setThesaurusName(Citation newValue)
newValue
- The new thesaurus name.Copyright © 2010–2013 The Apache Software Foundation. All rights reserved.