Package com.luciad.ogc.ows.model
Class TLcdOWSDomain
java.lang.Object
com.luciad.datamodel.TLcdDataObject
com.luciad.ogc.ows.model.TLcdOWSUnNamedDomain
com.luciad.ogc.ows.model.TLcdOWSDomain
- All Implemented Interfaces:
ILcdDataObject
,ILcdCloneable
,ILcdDeepCloneable
,Cloneable
Class for representing a valid domain (or set of values) of one parameter or other
quantity used by an OpenGIS Web Service (OWS).
-
Field Summary
Modifier and TypeFieldDescriptionstatic final TLcdDataProperty
Data property that maps to thename
attribute.Fields inherited from class com.luciad.ogc.ows.model.TLcdOWSUnNamedDomain
DEFAULT_VALUE_PROPERTY, DOMAIN_META_DATA_TYPE_PROPERTY, MEANING_PROPERTY, METADATA_PROPERTY, REFERENCE_SYSTEM_PROPERTY, UOM_PROPERTY, VALUE_OBJECTS_PROPERTY
-
Constructor Summary
ConstructorDescriptionCreates a newTLcdOWSDomain
.TLcdOWSDomain
(String aName, String[] aValues) Creates a newTLcdOWSDomain
with the given name and values. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addMetadata
(TLcdOWSMetadata aMetadata) Adds a metadata object to this domain.void
Adds a value to this domain.getMetadata
(int aIndex) Returns the metadata object at the given index.int
Returns the number of metadata objects.getName()
Returns the value of the property that maps to thename
attribute.getValue
(int aIndex) Returns the value at the given index.int
Returns the number of values.String[]
Returns all the values associated to this domain.void
removeMetadata
(int aIndex) Removes the metadata object at the given index.void
removeValue
(int aIndex) Removes the value at the given index.void
Sets the value of the property that maps to thename
attribute.Methods inherited from class com.luciad.ogc.ows.model.TLcdOWSUnNamedDomain
getDefaultValue, getDomainMetaDataType, getMeaning, getMetadata, getReferenceSystem, getUOM, getValueObjects, setDefaultValue, setDomainMetaDataType, setMeaning, setReferenceSystem, setUOM, setValueObjects
-
Field Details
-
NAME_PROPERTY
Data property that maps to thename
attribute. The possible values for this property are instances ofString
.
-
-
Constructor Details
-
TLcdOWSDomain
public TLcdOWSDomain()Creates a newTLcdOWSDomain
. -
TLcdOWSDomain
Creates a newTLcdOWSDomain
with the given name and values.- Parameters:
aName
- the domain nameaValues
- the domain values
-
-
Method Details
-
addValue
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
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
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
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
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
Returns the value of the property that maps to thename
attribute.Name or identifier of this quantity.
- Returns:
- the value of the
NAME_PROPERTY
property.
-
setName
Sets the value of the property that maps to thename
attribute.Name or identifier of this quantity.
- Parameters:
aValue
- the value to set for theNAME_PROPERTY
property.
-