Lines Matching defs:method
36 * A JavaAtomicGrounding grounds an OWL-S Service to a Java method invocation. The method call
37 * is specified by its method signature in an OWL-S Ontology. The driving parts are:
40 * <li>method name</li>
77 public void setMethod(String method) {
78 setProperty(MoreGroundings.javaMethod, method);
128 Method method = null;
138 // get and check method
149 // get class and method reference
152 method = claz.getDeclaredMethod(strMethod, params);
174 // invoke java method
177 if (method.getReturnType().toString().equalsIgnoreCase("void"))
178 method.invoke(obj, paramValues);
180 result = method.invoke(obj, paramValues);
182 throw new ExecutionException("JavaAtomicGrounding: Error in executed method\n" + e.getTargetException().toString() + " ocurred: ");
184 throw new ExecutionException("JavaAtomicGrounding: Error while executing method\n" + e.getClass().toString() + " ocurred: ");
191 throw new ExecutionException("JavaAtomicGrounding: Output in Grounding not specified although method provides a return value.");