org.jwarp.service.param
Interface IProperty

All Known Subinterfaces:
IInParameter, IParameter
All Known Implementing Classes:
Property

public interface IProperty

Title: JWeb Developer Header Description: Draft Copyright: Copyright (c) 2001 Company: ORCA Systems GmbH

Version:
1.0
Author:
Anatole Tresch

Method Summary
 boolean getAsBoolean(boolean defaultValue)
          Retrieve the boolean value of the specified parameter.
 double getAsDouble(double defaultValue)
          Retrieve the double value of the specified parameter.
 float getAsFloat(float defaultValue)
          Retrieve the float value of the specified parameter.
 int getAsInteger(int defaultValue)
          Retrieve the int value of the specified parameter.
 long getAsLong(long defaultValue)
          Retrieve the long value of the specified parameter.
 java.lang.String getAsString(java.lang.String defaultValue)
          Retrieve the String value of the specified parameter.
 java.lang.String getName()
           
 java.lang.Object getValue()
          Retrieve the value of the specified parameter.
 java.lang.Object getValue(java.lang.Object defaultValue)
          Retrieve the String value of the specified parameter.
 void setValue(java.lang.Object object)
          Set a new value.
 

Method Detail

getName

public java.lang.String getName()

setValue

public void setValue(java.lang.Object object)
              throws ParameterException
Set a new value.
Parameters:
The - new value
Throws:
ParameterException - Raise if the validation of the new value failes or the parameter is only a IN-parameter (read-only).

getValue

public java.lang.Object getValue(java.lang.Object defaultValue)
Retrieve the String value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getValue

public java.lang.Object getValue()
Retrieve the value of the specified parameter.

getAsInteger

public int getAsInteger(int defaultValue)
Retrieve the int value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getAsLong

public long getAsLong(long defaultValue)
Retrieve the long value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getAsFloat

public float getAsFloat(float defaultValue)
Retrieve the float value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getAsDouble

public double getAsDouble(double defaultValue)
Retrieve the double value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getAsBoolean

public boolean getAsBoolean(boolean defaultValue)
Retrieve the boolean value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


getAsString

public java.lang.String getAsString(java.lang.String defaultValue)
Retrieve the String value of the specified parameter.

If the specified parameter cannot be found, defaultValue is returned.


©   O R C A   S y s t e m s