Class TLcdOWSDomain

All Implemented Interfaces:
ILcdDataObject, ILcdCloneable, ILcdDeepCloneable, Cloneable

public class TLcdOWSDomain extends TLcdOWSUnNamedDomain
Class for representing a valid domain (or set of values) of one parameter or other quantity used by an OpenGIS Web Service (OWS).
  • Field Details

    • NAME_PROPERTY

      public static final TLcdDataProperty NAME_PROPERTY
      Data property that maps to the name attribute. The possible values for this property are instances of String.
  • Constructor Details

    • TLcdOWSDomain

      public TLcdOWSDomain()
      Creates a new TLcdOWSDomain.
    • TLcdOWSDomain

      public TLcdOWSDomain(String aName, String[] aValues)
      Creates a new TLcdOWSDomain with the given name and values.
      Parameters:
      aName - the domain name
      aValues - the domain values
  • Method Details

    • addValue

      public void addValue(String aValue)
      Adds a value to this domain.

      The value list is an unordered list of all the valid values for this domain. Adding a value overrides any previously set ranges or other value types.

      Parameters:
      aValue - the value to be added
    • getValueCount

      public int getValueCount()
      Returns the number of values.
      Returns:
      the number of values.
    • removeValue

      public void removeValue(int aIndex)
      Removes the value at the given index.
      Parameters:
      aIndex - the index of the value to be removed
    • getValue

      public String getValue(int aIndex)
      Returns the value at the given index.

      The value list is an unordered list of all the valid values for this domain.

      Parameters:
      aIndex - the index of the value to be retrieved
      Returns:
      the value at the given index.
    • addMetadata

      public void addMetadata(TLcdOWSMetadata aMetadata)
      Adds a metadata object to this domain.
      Parameters:
      aMetadata - the metadata object to be added.
    • getMetadataCount

      public int getMetadataCount()
      Returns the number of metadata objects.
      Returns:
      the number of metadata objects.
    • removeMetadata

      public void removeMetadata(int aIndex)
      Removes the metadata object at the given index.
      Parameters:
      aIndex - the index of the metadata object to be removed
    • getMetadata

      public TLcdOWSMetadata getMetadata(int aIndex)
      Returns the metadata object at the given index.
      Parameters:
      aIndex - the index of the metadata object to be retrieved
      Returns:
      the metadata at the given index.
    • getValues

      public String[] getValues()
      Returns all the values associated to this domain. The returned array is allocated each time.
      Returns:
      an array that contains all the values associated to this domain.
    • getName

      public String getName()
      Returns the value of the property that maps to the name attribute.

      Name or identifier of this quantity.

      Returns:
      the value of the NAME_PROPERTY property.
    • setName

      public void setName(String aValue)
      Sets the value of the property that maps to the name attribute.

      Name or identifier of this quantity.

      Parameters:
      aValue - the value to set for the NAME_PROPERTY property.