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 TypeMethodDescriptionvoidaddItem(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 propertiesintReturns number of item propertiesGets the selected item in this choicebooleanChecks if choiceValue is setvoidsetChoiceValue(Category choiceValue) Sets the choiceValue propertyvoidsetSelectedItem(int index) Sets the choice selection to the item with the given indexvoidsetSelectedItem(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, setIdMethods inherited from interface net.opengis.swe.v20.AbstractSWEIdentifiable
getDescription, getIdentifier, getLabel, isSetDescription, isSetIdentifier, isSetLabel, setDescription, setIdentifier, setLabelMethods 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:DataComponentReturn a structural copy of this component The copy is done recursively, but only the structure is copied (not the data)- Specified by:
copyin interfaceDataComponent- Specified by:
copyin 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-
-