com.businessobjects.sdk.plugin.desktop.common
Interface IValidRange


public interface IValidRange

This interface is used to specify the range of values that are allowed for a configuration property that contains Integer or Double values.

See Also:
IConfigProperty.getValidRanges()

Method Summary
 double getMaxDouble()
          Returns the upper bound of the range as a double value.
 int getMaxInteger()
          Returns the upper bound of the range as an integer value.
 double getMinDouble()
          Returns the lower bound of the range as a double value.
 int getMinInteger()
          Returns the lower bound of the range as an integer value.
 boolean isDouble()
          Returns whether the bounds of the range are double values.
 void setRange(double min, double max)
          Sets the lower and upper bounds of the range to the specified double values.
 void setRange(int min, int max)
          Sets the lower and upper bounds of the range to the specified integer values.
 

Method Detail

getMinInteger

int getMinInteger()
Returns the lower bound of the range as an integer value.

Returns:
The lower bound of the range.

getMinDouble

double getMinDouble()
Returns the lower bound of the range as a double value.

Returns:
The lower bound of the range.

getMaxInteger

int getMaxInteger()
Returns the upper bound of the range as an integer value.

Returns:
The upper bound of the range.

getMaxDouble

double getMaxDouble()
Returns the upper bound of the range as a double value.

Returns:
The upper bound of the range.

setRange

void setRange(int min,
              int max)
Sets the lower and upper bounds of the range to the specified integer values.

Parameters:
min - The lower bound for the range
max - The upper bound for the range

setRange

void setRange(double min,
              double max)
Sets the lower and upper bounds of the range to the specified double values.

Parameters:
min - The lower bound for the range
max - The upper bound for the range

isDouble

boolean isDouble()
Returns whether the bounds of the range are double values.

Returns:
true if the upper and lower bound are double values, false if they are integer values.