net.sourceforge.geeboss.model.editors
Interface Parameter

All Known Implementing Classes:
AbstractParameter, MemoryValueParameter

public interface Parameter

Interface for parameters in the geeboss application

Author:
Frederic BORRY

Method Summary
 int getMax()
          Returns the max value of this parameter
 int getMin()
          Returns the min value of this parameter
 java.lang.String getName()
          Getter for parameter name
 int getNumberValue()
          Returns the number value of this parameter
 java.lang.String getStringValue()
          Returns the string value of this parameter
 boolean isNumber()
          Returns true it this parameter is a number parameter
 boolean isString()
          Returns true it this parameter is a string parameter
 void setNumberValue(int value)
          Set the number value for this parameter
 void setStringValue(java.lang.String value)
          Set the string value for this parameter
 

Method Detail

getName

java.lang.String getName()
Getter for parameter name

Returns:
the name of the parameter

isNumber

boolean isNumber()
Returns true it this parameter is a number parameter

Returns:
true is this parameter is a number parameter

isString

boolean isString()
Returns true it this parameter is a string parameter

Returns:
true is this parameter is a string parameter

setNumberValue

void setNumberValue(int value)
Set the number value for this parameter

Parameters:
value - the number value for this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a number parameter

getNumberValue

int getNumberValue()
Returns the number value of this parameter

Returns:
the number value of this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a number parameter

getMin

int getMin()
Returns the min value of this parameter

Returns:
the min value of this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a number parameter

getMax

int getMax()
Returns the max value of this parameter

Returns:
the max value of this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a number parameter

setStringValue

void setStringValue(java.lang.String value)
Set the string value for this parameter

Parameters:
value - the string value for this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a string parameter

getStringValue

java.lang.String getStringValue()
Returns the string value of this parameter

Returns:
the string value of this parameter
Throws:
java.lang.UnsupportedOperationException - if this parameter is not a string parameter


Copyright (c) 2005 The Geeboss team (http://geeboss.sourceforge.net). All Rights Reserved.