com.ge.grc.acuity.scriptprocessing
Class SingleValueProcessor
java.lang.Object
com.ge.grc.acuity.scriptprocessing.AcuityScriptProcessor
com.ge.grc.acuity.scriptprocessing.SingleValueProcessor
- public class SingleValueProcessor
- extends AcuityScriptProcessor
- Author:
- 200005201
TODO To change the template for this generated type comment go to
Window - Preferences - Java - Code Style - Code Templates
|
Method Summary |
InteractionContent |
analyze(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script,
InteractionContent ic)
This method is called to analyze a script to determine, if possible, the subject and predicate
of of an InteractionContent. |
java.lang.Object |
process(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script)
Call this method to process a Script represented by an Individual in the model. |
java.lang.Object |
process(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script,
java.util.List filters)
Call this method to process a Script represented by an Individual in the model. |
java.lang.Object |
process(AcuityController ac,
java.lang.String val)
Call this method to process any SPARQL query. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleValueProcessor
public SingleValueProcessor()
process
public java.lang.Object process(AcuityController ac,
java.lang.String val)
throws AcuityException
- Call this method to process any SPARQL query.
- Returns:
- - an array of Lists of results in standard ACUITy data table format:
List[2] where
0th element is a List of variable names (data table column headers)
1st element is a List of Lists, one for row of data. Each row will contain
the same number of elements as there are variables in the query and
represent a set of variable values satisfying the query.
- Throws:
AcuityException
analyze
public InteractionContent analyze(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script,
InteractionContent ic)
- Description copied from class:
AcuityScriptProcessor
- This method is called to analyze a script to determine, if possible, the subject and predicate
of of an InteractionContent. This subject and predicate can allow, for certain kinds of scripts,
the construction of a getter and/or a setter statement for an ontology triple.
- Specified by:
analyze in class AcuityScriptProcessor
- Parameters:
ac - ic -
- Returns:
process
public java.lang.Object process(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script)
throws AcuityException
- Description copied from class:
AcuityScriptProcessor
- Call this method to process a Script represented by an Individual in the model.
- Specified by:
process in class AcuityScriptProcessor
- Parameters:
ac - - the AcuityController instance asking for the script processingscript - - the Individual of type Script to be processed
- Returns:
- - an array of Lists of results in standard ACUITy data table format:
List[2] where
0th element is a List of variable names (data table column headers)
1st element is a List of Lists, one for row of data. Each row will contain
the same number of elements as there are variables in the query and
represent a set of variable values satisfying the query.
- Throws:
AcuityException
process
public java.lang.Object process(AcuityController ac,
com.hp.hpl.jena.ontology.Individual script,
java.util.List filters)
throws AcuityException
- Description copied from class:
AcuityScriptProcessor
- Call this method to process a Script represented by an Individual in the model.
- Specified by:
process in class AcuityScriptProcessor
- Parameters:
ac - - the AcuityController instance asking for the script processingscript - - the Individual of type Script to be processedfilters - - any filters which are to be applied to the returned data
- Returns:
- - an array of Lists of results in standard ACUITy data table format:
List[2] where
0th element is a List of variable names (data table column headers)
1st element is a List of Lists, one for row of data. Each row will contain
the same number of elements as there are variables in the query and
represent a set of variable values satisfying the query.
- Throws:
AcuityException