|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.dbxml.core.objects.Reflector
Reflector is an Object reflection and method invocation utility for dbXML Reflectable implementations (XMLObjects).
| Constructor Summary | |
Reflector()
|
|
Reflector(java.lang.Class c)
|
|
| Method Summary | |
void |
addMethod(java.lang.String name,
java.lang.String[] params)
|
void |
addMethod(java.lang.String name,
java.lang.String[] params,
java.lang.String[] defaults)
|
void |
addMethod(java.lang.String name,
java.lang.String[] params,
java.lang.String[] defaults,
java.lang.String[] errors)
addMethod adds method meta data to the reflected Class definition. |
java.lang.String |
getParamDefault(java.lang.String method,
java.lang.String param)
getParamDefault returns the default value (String) for the specified parameter in the specified method. |
int |
getParamType(java.lang.String method,
java.lang.String param)
getParamType returns the parameter type for the specified parameter in the specified method. |
int |
getReturnType(java.lang.String method)
getReturnType returns the return type for the specified method.. |
java.lang.Object |
invoke(Reflectable obj,
java.lang.String name,
Args params)
invoke invokes the named method against the specified Reflectable Object, passing to the method the set of specified parameters. |
java.lang.Object |
invoke(Reflectable obj,
java.lang.String name,
org.w3c.dom.Element element)
invoke invokes the named method against the specified Reflectable Object, passing to the method the set of specified parameters. |
java.lang.Object |
invoke(Reflectable obj,
java.lang.String name,
java.lang.Object[] params)
invoke invokes the named method against the specified Reflectable Object, passing to the method the set of specified parameters. |
java.lang.Object |
invoke(Reflectable obj,
java.lang.String name,
Variant[] args)
invoke invokes the named method against the specified Reflectable Object, passing to the method the set of specified parameters. |
boolean |
isParamArray(java.lang.String method,
java.lang.String param)
isParamArray returns whether or not the parameter type for the specified parameter is an array type.. |
java.lang.String[] |
listMethodParams(java.lang.String name)
getMethodParams returns the names of the parameters that a method would require to be invoked. |
java.lang.String[] |
listMethods()
getMethods returns the names of the publicly accessible methods for the reflected class. |
void |
reflect(java.lang.Class c)
reflect performs an initial reflection against the Class that this Reflector will support. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Reflector()
public Reflector(java.lang.Class c)
throws XMLObjectException
| Method Detail |
public void reflect(java.lang.Class c)
throws XMLObjectException
public void addMethod(java.lang.String name,
java.lang.String[] params,
java.lang.String[] defaults,
java.lang.String[] errors)
throws XMLObjectException
name - The method nameparams - The parameter namesdefaults - Default values for the parameterserrors - Errors values on conversion failureXMLObjectException - If a mapping error occurs
public void addMethod(java.lang.String name,
java.lang.String[] params)
throws XMLObjectException
public void addMethod(java.lang.String name,
java.lang.String[] params,
java.lang.String[] defaults)
throws XMLObjectException
public java.lang.String[] listMethods()
public java.lang.String[] listMethodParams(java.lang.String name)
name - The method namepublic int getReturnType(java.lang.String method)
method - The Method nameTypes
public int getParamType(java.lang.String method,
java.lang.String param)
method - The Method nameparam - The Parameter nameTypes
public java.lang.String getParamDefault(java.lang.String method,
java.lang.String param)
method - The Method nameparam - The Parameter name
public boolean isParamArray(java.lang.String method,
java.lang.String param)
method - The Method nameparam - The Parameter name
public java.lang.Object invoke(Reflectable obj,
java.lang.String name,
java.lang.Object[] params)
throws XMLObjectException
obj - The target Reflectablename - The method nameparams - The parameter valuesXMLObjectException - if an invocation error occurs
public java.lang.Object invoke(Reflectable obj,
java.lang.String name,
Variant[] args)
throws XMLObjectException
obj - The target Reflectablename - The method nameargs - The parameter valuesXMLObjectException - if an invocation error occurs
public java.lang.Object invoke(Reflectable obj,
java.lang.String name,
Args params)
throws XMLObjectException
obj - The target Reflectablename - The method nameparams - The parameter valuesXMLObjectException - if an invocation error occurs
public java.lang.Object invoke(Reflectable obj,
java.lang.String name,
org.w3c.dom.Element element)
throws XMLObjectException
obj - The target Reflectablename - The method nameelement - The Element to use for AttributesXMLObjectException - if an invocation error occurs
|
dbXML API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||