|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.processing.pipelets.JSONWriterPipelet
public class JSONWriterPipelet
Writes an Any object to JSON.
Copyright (c) 2012 Attensity Europe GmbH
| Field Summary | |
|---|---|
static java.lang.String |
INPUT_ATTRIBUTES_PROPERTY
Name of the property that contains the names of the input attributes. |
static java.lang.String |
OUTPUT_NAME_PROPERTY
Name of the property that contains the type of the output (attribute/attachment). |
static java.lang.String |
OUTPUT_TYPE_PROPERTY
Name of the property that contains the name of the output attribute or attachment. |
static java.lang.String |
PRINT_PRETTY_PROPERTY
Name of the property that indicates to format the output for better readability. |
| Constructor Summary | |
|---|---|
JSONWriterPipelet()
|
|
| Method Summary | |
|---|---|
void |
configure(AnyMap config)
Initializes parameters. |
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String INPUT_ATTRIBUTES_PROPERTY
public static final java.lang.String OUTPUT_NAME_PROPERTY
public static final java.lang.String OUTPUT_TYPE_PROPERTY
public static final java.lang.String PRINT_PRETTY_PROPERTY
| Constructor Detail |
|---|
public JSONWriterPipelet()
| Method Detail |
|---|
public void configure(AnyMap config)
throws ProcessingException
configure in interface Pipeletconfig - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)Pipelet.configure(AnyMap)
public java.lang.String[] process(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
Pipelet
process in interface Pipeletblackboard - Blackboard holding and managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.Pipelet.process(Blackboard, String[])
|
SMILA 1.0 API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||