Package org.smooks.io.payload
Class Exports
- java.lang.Object
-
- org.smooks.io.payload.Exports
-
- All Implemented Interfaces:
ContentHandler
public class Exports extends Object implements ContentHandler
An Exports instance holds a Map ofExports that Smooks produces/exports. The map uses the type of sink as its key and theExportas its value.- Since:
- 1.4
- Author:
- Daniel Bevenius
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExport(Export export)Sink[]createSinks()static List<Object>extractSinks(Sink[] sinks, Exports exports)Will return the Objects contained in the sinks array.ExportgetExport(Class<?> type)Collection<Export>getExports()Collection<Export>getProducts()Set<Class<?>>getSinkTypes()booleanhasExports()
-
-
-
Method Detail
-
addExport
public void addExport(Export export)
-
getExports
public Collection<Export> getExports()
-
hasExports
public boolean hasExports()
-
createSinks
public Sink[] createSinks()
-
getProducts
public Collection<Export> getProducts()
-
extractSinks
public static List<Object> extractSinks(Sink[] sinks, Exports exports)
Will return the Objects contained in the sinks array. If the correspondingExportfor that sink type was configured with an extract property only that portion of the sink will be returned.- Parameters:
sinks- The sinks produced by a Smooks filtering operation.exports- The exports.- Returns:
- List
-
-