if ( dataElements.contains(SEPARATOR_DE_NAME, DataType.STRING) )
separator = dataElements.get(SEPARATOR_DE_NAME, DataType.STRING).getValue();
if ( dataElements.contains(SEGMENTS_DE_NAME, DataType.STRING) )
segments = dataElements.get(SEGMENTS_DE_NAME, DataType.STRING).getValue();
if ( segments.isEmpty() ) {
throw new PipelinePluginException("No segment list was specified. Not enough information to perform line break cleanup");
}
String[] segment_arr = segments.split(separator);
Set<String> segmentSet = new HashSet<String>(segment_arr.length);
for( String s : segment_arr ) {
if ( s == null || s.isEmpty() || s.equals(separator) ) {
continue;
}
segmentSet.add(s);
}
if ( segmentSet.isEmpty() ) {
throw new PipelinePluginException("No segments were defined. Segment variable was '" + segments + ",");
}
OutputFiles outputFiles = output.getOutputFiles();
for (InputFile plugin_input_file : files.getFiles()) {