unitee.server
Class  AbstractTestParameters
java.lang.Object
  |
  +--unitee.server.AbstractTestParameters
- Direct Known Subclasses: 
 - DefaultTestParameters
 
- public abstract class AbstractTestParameters
- extends java.lang.Object
- implements TestParameters
   
Abstract implementation for TestParameters. This class specifies 
 the actions needed to be taken when accessing parameters: 
 input validation , input conversion. The class does not specify
 how or where the parameters are stored. The class maintains 
 a reference to a parent TestParameters. This Chain of responsibility 
 helps this class to find parameters easily.
 
| 
Method Summary | 
protected abstract  java.lang.Object | 
get(java.lang.String name)
 
          The main get method depends on the parameters storing implementation,
 and therefore is not implemented here. | 
 byte[] | 
getByteArray(java.lang.String name)
 
          The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid. | 
 TestParameters | 
getChainedParameters()
 
            | 
 double | 
getDouble(java.lang.String name)
 
          The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid. | 
 long | 
getLong(java.lang.String name)
 
          The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid. | 
 java.lang.Class | 
getParameterType(java.lang.String name)
 
            | 
 java.lang.String | 
getPassword(java.lang.String name)
 
            | 
 java.lang.String | 
getString(java.lang.String name)
 
          The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid. | 
protected abstract  void | 
set(java.lang.String name,
    java.lang.Class clazz,
    java.lang.Object value)
 
          The main set method depends on the parameters storing implementation,
 and therefor is not implemented here. | 
 void | 
setByteArray(java.lang.String name,
             byte[] data)
 
            | 
 void | 
setChainedParameters(TestParameters params)
 
            | 
 void | 
setDouble(java.lang.String name,
          double value)
 
            | 
 void | 
setLong(java.lang.String name,
        long value)
 
            | 
 void | 
setPassword(java.lang.String name,
            java.lang.String password)
 
            | 
 void | 
setString(java.lang.String name,
          java.lang.String value)
 
            | 
 
| Methods inherited from class java.lang.Object | 
clone, 
equals, 
finalize, 
getClass, 
hashCode, 
notify, 
notifyAll, 
toString, 
wait, 
wait, 
wait | 
 
AbstractTestParameters
public AbstractTestParameters(TestParameters chained)
get
protected abstract java.lang.Object get(java.lang.String name)
- The main get method depends on the parameters storing implementation,
 and therefore is not implemented here.
 
 
getString
public java.lang.String getString(java.lang.String name)
                           throws ParameterException
- The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid.
- Specified by: 
 - getString in interface TestParameters
 
 
 
getLong
public long getLong(java.lang.String name)
             throws ParameterException
- The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid.
- Specified by: 
 - getLong in interface TestParameters
 
 
 
getDouble
public double getDouble(java.lang.String name)
                 throws ParameterException
- The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid.
- Specified by: 
 - getDouble in interface TestParameters
 
 
 
getByteArray
public byte[] getByteArray(java.lang.String name)
                    throws ParameterException
- The method gets a result from the get method and runs checks to make 
 sure there is a value and the value is valid.
- Specified by: 
 - getByteArray in interface TestParameters
 
 
 
getPassword
public java.lang.String getPassword(java.lang.String name)
                             throws ParameterException
- Specified by: 
 - getPassword in interface TestParameters
 
 
set
protected abstract void set(java.lang.String name,
                            java.lang.Class clazz,
                            java.lang.Object value)
- The main set method depends on the parameters storing implementation,
 and therefor is not implemented here.
 
 
setString
public void setString(java.lang.String name,
                      java.lang.String value)
- Specified by: 
 - setString in interface TestParameters
 
 
setLong
public void setLong(java.lang.String name,
                    long value)
- Specified by: 
 - setLong in interface TestParameters
 
 
setDouble
public void setDouble(java.lang.String name,
                      double value)
- Specified by: 
 - setDouble in interface TestParameters
 
 
setByteArray
public void setByteArray(java.lang.String name,
                         byte[] data)
- Specified by: 
 - setByteArray in interface TestParameters
 
 
setPassword
public void setPassword(java.lang.String name,
                        java.lang.String password)
- Specified by: 
 - setPassword in interface TestParameters
 
 
getChainedParameters
public TestParameters getChainedParameters()
 
setChainedParameters
public void setChainedParameters(TestParameters params)
 
getParameterType
public java.lang.Class getParameterType(java.lang.String name)
- Specified by: 
 - getParameterType in interface TestParameters