Class TLcdOWSKeywords
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Unordered list of one or more commonly used or formalised word(s) or phrase(s) used to describe the subject. When needed, the optional "type" can name the type of the associated list of keywords that shall all have the same type. Also when needed, the codeSpace attribute of that "type" can reference the type name authority and/or thesaurus.
If the xml:lang attribute is not included in a Keyword element, then no language is specified for that element unless specified by another means. All Keyword elements in the same Keywords element that share the same xml:lang attribute value represent different keywords in that language.
For OWS use, the optional thesaurusName element was omitted as being complex information that could be referenced by the codeSpace attribute of the Type element.
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to theKeyword
element.static final TLcdDataProperty
Data property that maps to theType
element. -
Constructor Summary
ConstructorDescriptionCreates a newTLcdOWSKeywords
instance.TLcdOWSKeywords
(TLcdDataType aType) Creates a newTLcdOWSKeywords
instance with the given data type. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addKeyword
(String aKeyword) Adds a keyword.Returns the value of the property that maps to theKeyword
element.getKeyword
(int aIndex) Gets the keyword at a given position.int
Gets the number of keywords.getType()
Gets the type.void
removeKeyword
(int aIndex) Removes the keyword at a given position.void
setType
(ILcdGML3Code aType) Deprecated.void
setType
(TLcdOWSCode aValue) Sets the value of the property that maps to theType
element.
-
Field Details
-
KEYWORD_PROPERTY
Data property that maps to theKeyword
element. The possible values for this property are instances ofList<TLcdOWSLanguageString>
. -
TYPE_PROPERTY
Data property that maps to theType
element. The possible values for this property are instances ofTLcdOWSCode
.
-
-
Constructor Details
-
TLcdOWSKeywords
public TLcdOWSKeywords()Creates a newTLcdOWSKeywords
instance. -
TLcdOWSKeywords
Creates a newTLcdOWSKeywords
instance with the given data type.- Parameters:
aType
- The data type.
-
-
Method Details
-
addKeyword
Adds a keyword.- Parameters:
aKeyword
- the keyword to be added.
-
getKeywordCount
public int getKeywordCount()Gets the number of keywords.- Returns:
- the number of keywords.
-
removeKeyword
public void removeKeyword(int aIndex) Removes the keyword at a given position.- Parameters:
aIndex
- the index of the given position.
-
getKeyword
Gets the keyword at a given position.- Parameters:
aIndex
- the index of the given position.- Returns:
- the keyword at the given position.
-
getType
Gets the type.- Returns:
- the type.
-
setType
Deprecated.usesetType(TLcdOWSCode)
Sets the type.- Parameters:
aType
- the type to be set.- See Also:
-
getKeyword
Returns the value of the property that maps to theKeyword
element.- Returns:
- the value of the
KEYWORD_PROPERTY
property.
-
setType
Sets the value of the property that maps to theType
element.- Parameters:
aValue
- the value to set for theTYPE_PROPERTY
property.
-
setType(TLcdOWSCode)