Package com.luciad.wms.client.model
Class TLcdOGCWMSDimensionExtent
java.lang.Object
com.luciad.wms.client.model.TLcdOGCWMSDimensionExtent
A dimension extent represents the set of values or intervals that are available
for a dimensional parameter.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterval(String[] aInterval) Adds the specified interval to this dimensional parameter.voidAdds the specified value to this dimensional parameter.booleancanAddInterval(String[] aInterval) Returns whether the specified interval can be added to this dimension parameter.booleancanAddValue(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.intReturns the number of available intervals for the dimensional parameter.getValue(int aIndex) Returns the value at the specified index.intReturns the number of available values for the dimensional parameter.voidremoveInterval(int aIndex) Removes the interval at the specified index.voidremoveValue(int aIndex) Removes the value at the specified index.
-
Constructor Details
-
TLcdOGCWMSDimensionExtent
public TLcdOGCWMSDimensionExtent()
-
-
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,trueis returned. In all other cases,falseis returned.- Parameters:
aValue- A value.- Returns:
trueif no intervals have been added yet,falseotherwise.
-
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,trueis returned. An interval is considered valid when it has length 3 and does not contain anynullvalues. In all other cases,falseis returned.- Parameters:
aInterval- An interval.- Returns:
trueif no values have been added yet and if the interval is valid,falseotherwise.
-
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.
-