|
SMILA (incubation) 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.SetAnnotationPipelet
public class SetAnnotationPipelet
Pipelet that sets an root metadata object or attribute annotation on the records in process. The annotation to set is specified in the pipelet configuration. The possible properties are:
| Field Summary | |
|---|---|
static java.lang.String |
PROP_ANONVALUE
Name of the AnonValue property: "AnonValue". |
static java.lang.String |
PROP_NAME
Name of the Name property: "Name". |
static java.lang.String |
PROP_NAMEDVALUE
Name of the NamedValue property: "NamedValue". |
static java.lang.String |
PROP_PATH
Name of the Path property: "Path". |
| Constructor Summary | |
|---|---|
SetAnnotationPipelet()
|
|
| Method Summary | |
|---|---|
protected void |
addAnonValue(java.lang.String value)
add an anonymous value. |
void |
configure(PipeletConfiguration configuration)
set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow. |
Id[] |
process(Blackboard blackboard,
Id[] recordIds)
set configured annotation on each record on blackboard as specified by the recordIds. |
protected void |
putNamedValue(java.lang.String name,
java.lang.String value)
|
protected void |
setAnnotationName(java.lang.String value)
|
protected void |
setAttributePath(java.lang.String value)
create path for annotation from string. sets index of final step to PathStep.ATTRIBUTE_ANNOTATION
regardless of the actual final index given in the string. |
| 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 PROP_PATH
public static final java.lang.String PROP_NAME
public static final java.lang.String PROP_ANONVALUE
public static final java.lang.String PROP_NAMEDVALUE
| Constructor Detail |
|---|
public SetAnnotationPipelet()
| Method Detail |
|---|
public void configure(PipeletConfiguration configuration)
throws ProcessingException
configure in interface IPipeletconfiguration - configuration of pipelet.
ProcessingException - configuration is not applicable for pipelet (missing properties, wrong datatypes)#configure(org.eclipse.smila.processing.configuration.PipeletConfiguration)
protected void putNamedValue(java.lang.String name,
java.lang.String value)
name - name of an named valuevalue - valueprotected void addAnonValue(java.lang.String value)
value - another anonymous valueprotected void setAnnotationName(java.lang.String value)
value - name of annotationprotected void setAttributePath(java.lang.String value)
PathStep.ATTRIBUTE_ANNOTATION
regardless of the actual final index given in the string.
value - a path string
public Id[] process(Blackboard blackboard,
Id[] recordIds)
throws ProcessingException
process in interface SimplePipeletblackboard - Blackboard service managing the records.recordIds - Ids of records to process.
ProcessingException - error during processing.SimplePipelet.process(org.eclipse.smila.blackboard.Blackboard,
org.eclipse.smila.datamodel.id.Id[])
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||