Interface DataChoice

All Superinterfaces:
AbstractSWE, AbstractSWEIdentifiable, DataComponent, HasCopy, Serializable
All Known Implementing Classes:
DataChoiceImpl, GeometryDataImpl

public interface DataChoice extends DataComponent
POJO class for XML type DataChoiceType(@http://www.opengis.net/swe/2.0). This is a complex type.
  • 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 interface DataComponent
      Specified by:
      copy in interface HasCopy
      Returns:
      copy of this component, including sub-components
    • getChoiceValue

      Category getChoiceValue()
      Gets the choiceValue property
    • isSetChoiceValue

      boolean isSetChoiceValue()
      Checks if choiceValue is set
    • setChoiceValue

      void setChoiceValue(Category choiceValue)
      Sets the choiceValue property
    • getItemList

      Gets the list of item properties
    • getNumItems

      int getNumItems()
      Returns number of item properties
    • getItem

      DataComponent getItem(String name)
      Gets the item property with the given name
    • addItem

      void addItem(String name, DataComponent item)
      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

      void setSelectedItem(String name)
      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 -