net.sourceforge.geeboss.model.editors
Class MemoryValueParameter

java.lang.Object
  extended by net.sourceforge.geeboss.model.editors.AbstractParameter
      extended by net.sourceforge.geeboss.model.editors.MemoryValueParameter
All Implemented Interfaces:
LoadConfigurationSupport, Parameter

public class MemoryValueParameter
extends AbstractParameter

MemoryValue based parameter

Author:
Frederic BORRY

Field Summary
 
Fields inherited from class net.sourceforge.geeboss.model.editors.AbstractParameter
mParent
 
Constructor Summary
MemoryValueParameter(MemoryObjectEditorHandler parentEditor, org.apache.avalon.framework.configuration.Configuration configuration, GeebossContainer container)
          Create a new MemoryValueParameter given it's parent memory object editor and it's configuration
 
Method Summary
 int getMax()
          Returns the max value of this parameter
 MemoryValue getMemoryValue()
          Get the memory value associated to this parmeter
 int getMin()
          Returns the min value of this parameter
 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 loadConfiguration(org.apache.avalon.framework.configuration.Configuration configuration, GeebossContainer container)
          Load the configuration of this object
 void setNumberValue(int value)
          Set the number value for this parameter
 void setStringValue(java.lang.String value)
          Set the string value for this parameter
 
Methods inherited from class net.sourceforge.geeboss.model.editors.AbstractParameter
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MemoryValueParameter

public MemoryValueParameter(MemoryObjectEditorHandler parentEditor,
                            org.apache.avalon.framework.configuration.Configuration configuration,
                            GeebossContainer container)
                     throws org.apache.avalon.framework.configuration.ConfigurationException
Create a new MemoryValueParameter given it's parent memory object editor and it's configuration

Parameters:
parentEditor - the parent memory object editor
configuration - this parameter's configuration
container - a reference to the GeebossContainer
Throws:
org.apache.avalon.framework.configuration.ConfigurationException
Method Detail

getMemoryValue

public MemoryValue getMemoryValue()
Get the memory value associated to this parmeter

Returns:
the memory value associated to this parmeter

isNumber

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

Returns:
true is this parameter is a number parameter

isString

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

Returns:
true is this parameter is a string parameter

setNumberValue

public 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

public 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

public 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

public 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

public 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

public 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

loadConfiguration

public void loadConfiguration(org.apache.avalon.framework.configuration.Configuration configuration,
                              GeebossContainer container)
                       throws org.apache.avalon.framework.configuration.ConfigurationException
Load the configuration of this object

Specified by:
loadConfiguration in interface LoadConfigurationSupport
Overrides:
loadConfiguration in class AbstractParameter
Parameters:
configuration - this object's configuration
container - a reference to the GeebossContainer
Throws:
org.apache.avalon.framework.configuration.ConfigurationException


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