|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This interface represents a creator object, creator object can create a specific objects given a specific set of parameters
| Method Summary | |
boolean |
canBeNull(int index)
Tests if the given argument index can be null, if the argument type is a primitive one, it should be converted to its wrapper class, but it will not support null as a value |
java.lang.Object |
create(java.lang.Object[] parameters)
Returns an object of type getReturnClass using the given
parameters as input |
java.lang.Class[] |
getParameterTypes()
Returns the type of parameters that this creator expects to recieve |
java.lang.Class |
getReturnClass()
Return the Class of the expected object that this creator
can create |
| Method Detail |
public java.lang.Class getReturnClass()
Class of the expected object that this creator
can createClass the created object will be instanceofpublic java.lang.Class[] getParameterTypes()
If the parameters given to the create method do not conform to these an exception will be thrown
Class[] representing the expected parameter types
public java.lang.Object create(java.lang.Object[] parameters)
throws JParamException
getReturnClass using the given
parameters as inputparameters - An array of object whose types should conform with
getParameterTypesJParamException - if there was an error during construction of the
object, or if the parameters do not conform to the requiermentpublic boolean canBeNull(int index)
index - The index of the argument to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||