Package net.opengis.swe.v20
Interface DataChoice
- All Superinterfaces:
AbstractSWE
,AbstractSWEIdentifiable
,DataComponent
,HasCopy
,Serializable
- All Known Implementing Classes:
DataChoiceImpl
,GeometryDataImpl
POJO class for XML type DataChoiceType(@http://www.opengis.net/swe/2.0).
This is a complex type.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addItem
(String name, DataComponent item) Adds a new item propertycopy()
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)Gets the choiceValue propertyGets the item property with the given nameGets the list of item propertiesint
Returns number of item propertiesGets the selected item in this choiceboolean
Checks if choiceValue is setvoid
setChoiceValue
(Category choiceValue) Sets the choiceValue propertyvoid
setSelectedItem
(int index) Sets the choice selection to the item with the given indexvoid
setSelectedItem
(String name) Sets the choice selection to the item with the given nameMethods inherited from interface net.opengis.swe.v20.AbstractSWE
addExtension, getExtensionList, getId, getNumExtensions, isSetId, setId
Methods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabel
Methods inherited from interface net.opengis.swe.v20.DataComponent
accept, addComponent, assignNewDataBlock, clearData, clone, createDataBlock, getComponent, getComponent, getComponentCount, getComponentIndex, getData, getDefinition, getName, getOptional, getParent, getUpdatable, hasConstraints, hasData, isSetDefinition, isSetOptional, isSetUpdatable, removeComponent, removeComponent, renewDataBlock, setData, setDefinition, setName, setOptional, setUpdatable, unSetOptional, unSetUpdatable, validateData
-
Method Details
-
copy
DataChoice copy()Description copied from interface:DataComponent
Return a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
copy
in interfaceDataComponent
- Specified by:
copy
in interfaceHasCopy
- Returns:
- copy of this component, including sub-components
-
getChoiceValue
Category getChoiceValue()Gets the choiceValue property -
isSetChoiceValue
boolean isSetChoiceValue()Checks if choiceValue is set -
setChoiceValue
Sets the choiceValue property -
getItemList
OgcPropertyList<DataComponent> getItemList()Gets the list of item properties -
getNumItems
int getNumItems()Returns number of item properties -
getItem
Gets the item property with the given name -
addItem
Adds a new item property -
getSelectedItem
DataComponent getSelectedItem()Gets the selected item in this choice- Returns:
- the selected component or null if non is selected
-
setSelectedItem
Sets the choice selection to the item with the given name- Parameters:
name
-
-
setSelectedItem
void setSelectedItem(int index) Sets the choice selection to the item with the given index- Parameters:
name
-
-