public class TypeProcessor extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TypeProcessor.ContextEvaluator
This class identifies the context type to be associated
with the value extracted using the expression evaluator.
|
static class |
TypeProcessor.PropertyEvaluator
This class identifies the property name to be associated
with the value extracted using the expression evaluator.
|
Constructor and Description |
---|
TypeProcessor() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the type processor.
|
List<TypeProcessor.ContextEvaluator> |
getContexts()
This method returns the context evaluators.
|
List<TypeProcessor.PropertyEvaluator> |
getProperties()
This method returns the property evaluators.
|
ScriptEvaluator |
getScript()
This method returns the script evaluator.
|
InformationTransformer |
getTransformer()
This method returns the information transformer used
to derived the public representation of the information.
|
void |
init()
Initialize the type processor.
|
String |
process(Object information,
Map<String,Object> headers,
ActivityType actType)
This method processes the supplied information to extract the
context and property details for association with the supplied
activity type.
|
void |
setContexts(List<TypeProcessor.ContextEvaluator> ce)
This method sets the context evaluators.
|
void |
setProperties(List<TypeProcessor.PropertyEvaluator> pe)
This method sets the property evaluators.
|
void |
setScript(ScriptEvaluator script)
This method sets the script evaluator.
|
void |
setTransformer(InformationTransformer transformer)
This method sets the information transformer used
to derived the public representation of the information.
|
public void init() throws Exception
Exception
- Failed to initializepublic InformationTransformer getTransformer()
public void setTransformer(InformationTransformer transformer)
transformer
- The public representation's transformerpublic List<TypeProcessor.ContextEvaluator> getContexts()
public void setContexts(List<TypeProcessor.ContextEvaluator> ce)
ce
- The context evaluatorspublic List<TypeProcessor.PropertyEvaluator> getProperties()
public void setProperties(List<TypeProcessor.PropertyEvaluator> pe)
pe
- The property evaluatorspublic ScriptEvaluator getScript()
public void setScript(ScriptEvaluator script)
script
- The script evaluatorpublic String process(Object information, Map<String,Object> headers, ActivityType actType)
information
- The informationheaders
- The optional header informationactType
- The activity typeCopyright © 2013-2015 JBoss by Red Hat. All Rights Reserved.