org.mindswap.owls.grounding
Interface JavaAtomicGrounding

All Superinterfaces:
AtomicGrounding, OWLEntity, OWLIndividual, OWLObject, OWLValue

public interface JavaAtomicGrounding
extends AtomicGrounding

This interface encapsulates the access to a JavaAtomicProcessGrounding.

A JavaAtomicGrounding grounds an OWL-S Service to a Java method invocation. The method call is specified by its method signature in an OWL-S Ontology.

Static methods can be invoked, Exceptions during the execution are catched and redirected in a ExecutionExecpetion. At the time, only primitive datatypes (such as int, boolean and so on) and thier adapters (such as Integer, Boolean and so on) are support as Parameter and ReturnValue types.

The driving parts are:

Author:
dmi
See Also:
OWLExtensions.owl, AtomicGrounding, impl.owls.grounding.AtomicGroundingImpl, OWLetOnt

Method Summary
 java.lang.String getClaz()
          Returns the name of the class, on which the method in the Grounding should be executed
 java.lang.String getMethod()
          Returns the name of the method which should be executed
 void setClaz(java.lang.String claz)
          Sets the name of the class, on which the method in the Grounding should be executed
 void setInputVar(java.lang.String name, java.lang.String type, int index, Input owlsParameter)
          Sets an Input Parameter of the Java Grounding.
 void setMethod(java.lang.String method)
          Sets the name of the method which should be executed
 void setOutputVar(java.lang.String name, java.lang.String type, Output owlsParameter)
          Sets the Output part of the Java Grounding.
 
Methods inherited from interface org.mindswap.owls.grounding.AtomicGrounding
addInputMap, addMessageMap, addMessageMap, addMessageMap, addOutputMap, getDescriptionURL, getInputMap, getOutputMap, getProcess, invoke, invoke, setProcess
 
Methods inherited from interface org.mindswap.owl.OWLIndividual
addProperty, addProperty, addProperty, addProperty, addType, getDifferentIndividuals, getIncomingProperties, getIncomingProperties, getIncomingProperty, getOWLSOntology, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getSameIndividuals, getSourceOntology, getType, getTypes, hasProperty, hasProperty, isDifferentFrom, isSameAs, isType, removeProperties, removeProperty, removeTypes, setProperty, setProperty, setProperty, setProperty, toRDF, toRDF
 
Methods inherited from interface org.mindswap.owl.OWLEntity
addAnnotation, addAnnotation, addAnnotation, getAnnotation, getAnnotation, getAnnotations, getAnonID, getKB, getLabel, getLabel, getLabels, getLocalName, getOntology, getQName, getURI, isAnon, removeAnnotations, setAnnotation, setAnnotation, setAnnotation, setLabel, setLabel
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 
Methods inherited from interface org.mindswap.owl.OWLValue
isDataValue, isIndividual
 
Methods inherited from interface org.mindswap.owl.OWLObject
canCastTo, castTo, debugString, getImplementation, getNextView, setNextView
 

Method Detail

setClaz

void setClaz(java.lang.String claz)
Sets the name of the class, on which the method in the Grounding should be executed

Parameters:
claz - Fully qualified name of the Java class, which implements the method to invoke

getClaz

java.lang.String getClaz()
Returns the name of the class, on which the method in the Grounding should be executed

Returns:
Name of the class specified in the JavaAtomicProcessGrounding

setMethod

void setMethod(java.lang.String method)
Sets the name of the method which should be executed

Parameters:
method - Name of the method to invoke

getMethod

java.lang.String getMethod()
Returns the name of the method which should be executed

Returns:
Name of the method specified in the JavaAtomicProcessGrounding

setOutputVar

void setOutputVar(java.lang.String name,
                  java.lang.String type,
                  Output owlsParameter)
Sets the Output part of the Java Grounding. Declares the return value of the Java method to invoke

Parameters:
name - Name of the OWL-S JavaVariable instance
type - Fully qualified Java type of the return value of the method to invoke
owlsParameter - Reference to the OWL-S Output Variable

setInputVar

void setInputVar(java.lang.String name,
                 java.lang.String type,
                 int index,
                 Input owlsParameter)
Sets an Input Parameter of the Java Grounding. Declares one Parameter of the Jave method to invoke

Parameters:
name - Name of the OWL-S JavaParameter instance
type - Fully qualified Java type of the Java Parameter to set
index - Number of order for this Parameter in the Parameter-List
owlsParameter - Reference to the OWL-S Input Variable


Copyright © 2004 Evren Sirin. All Rights Reserved.