Package com.luciad.wms.server.model
Class TLcdWMSDimensionExtent
java.lang.Object
com.luciad.wms.server.model.TLcdWMSDimensionExtent
A dimension extent represents the set of values or intervals that are available
for a dimensional parameter.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addInterval
(String[] aInterval) Adds the specified interval to this dimensional parameter.void
Adds the specified value to this dimensional parameter.boolean
canAddInterval
(String[] aInterval) Returns whether the specified interval can be added to this dimension parameter.boolean
canAddValue
(String aValue) Returns whether the specified value can be added to this dimensional parameter.String[]
getInterval
(int aIndex) Returns the interval at the specified index.int
Returns the number of available intervals for the dimensional parameter.getValue
(int aIndex) Returns the value at the specified index.int
Returns the number of available values for the dimensional parameter.void
removeInterval
(int aIndex) Removes the interval at the specified index.void
removeValue
(int aIndex) Removes the value at the specified index.
-
Constructor Details
-
TLcdWMSDimensionExtent
public TLcdWMSDimensionExtent()
-
-
Method Details
-
getValue
Returns the value at the specified index.- Parameters:
aIndex
- The index of the value to be retrieved.- Returns:
- the value at the specified index.
-
getValueCount
public int getValueCount()Returns the number of available values for the dimensional parameter.- Returns:
- the number of available values for the dimensional parameter.
-
canAddValue
Returns whether the specified value can be added to this dimensional parameter. If no intervals have been added yet and the value is notnull
,true
is returned. In all other cases,false
is returned.- Parameters:
aValue
- A value.- Returns:
true
if no intervals have been added yet,false
otherwise.
-
addValue
Adds the specified value to this dimensional parameter.- Parameters:
aValue
- the value to be added.- Throws:
IllegalStateException
- ifcanAddValue(String)
returnsfalse
.
-
removeValue
public void removeValue(int aIndex) Removes the value at the specified index.- Parameters:
aIndex
- The index of the value to be removed.
-
getInterval
Returns the interval at the specified index.- Parameters:
aIndex
- The index of the interval to be retrieved.- Returns:
- the interval at the specified index.
-
getIntervalCount
public int getIntervalCount()Returns the number of available intervals for the dimensional parameter.- Returns:
- the number of available intervals for the dimensional parameter.
-
canAddInterval
Returns whether the specified interval can be added to this dimension parameter. If no values have been added yet and if the interval is valid,true
is returned. An interval is considered valid when it has length 3 and does not contain anynull
values. In all other cases,false
is returned.- Parameters:
aInterval
- An interval.- Returns:
true
if no values have been added yet and if the interval is valid,false
otherwise.
-
addInterval
Adds the specified interval to this dimensional parameter.- Parameters:
aInterval
- the interval to be added.- Throws:
IllegalStateException
- ifcanAddInterval(String[])
returnsfalse
.
-
removeInterval
public void removeInterval(int aIndex) Removes the interval at the specified index.- Parameters:
aIndex
- The index of the interval to be removed.
-