A manipulator requires a PipelineComponentConfiguration class to describe the extension's configuration, to validate the manipulator's configuration, and to determine whether a full acquisition is required by the manipulator.
To create a manipulator configuration class:
public class SubstringManipulatorConfig extends PipelineComponentConfiguration<SubstringManipulatorConfig> {
}
private String mSourceProperty; private String mTargetProperty; private int mStartIndex;
@StringProperty(isRequired=true, name="sourceProperty", displayName="Source Property") private String mSourceProperty; @StringProperty(isRequired=true, name="targetProperty", displayName="Target Property") private String mTargetProperty; @IntegerProperty(isRequired=false, name="startIndex", displayName="Substring Start Index", description="Substring start index (zero based)", defaultValue="0") private int mStartIndex;
@ConfigurationGroupOrder({
@ConfigurationGroup(propertyOrder={"sourceProperty", "targetProperty", "length", "startIndex"})
})
public class SubstringManipulatorConfig extends PipelineComponentConfiguration<SubstringManipulatorConfig> {
}
To see many of the steps above, refer to the sample data source extension in <install path>\CAS\version\sample\cas-extensions\src\main\com\endeca\cas\extension\sample\ source\csv\SubstringManipulatorConfig.java.