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 ofExport
s that Smooks produces/exports. The map uses the type of of result as its key and theExport
as its value.- Since:
- 1.4
- Author:
- Daniel Bevenius
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExport(Export export)
Result[]
createResults()
static List<Object>
extractResults(Result[] results, Exports exports)
Will return the Objects contained in the results array.Export
getExport(Class<?> type)
Collection<Export>
getExports()
Collection<Export>
getProducts()
Set<Class<?>>
getResultTypes()
boolean
hasExports()
-
-
-
Method Detail
-
addExport
public void addExport(Export export)
-
getExports
public Collection<Export> getExports()
-
hasExports
public boolean hasExports()
-
createResults
public Result[] createResults()
-
getProducts
public Collection<Export> getProducts()
-
extractResults
public static List<Object> extractResults(Result[] results, Exports exports)
Will return the Objects contained in the results array. If the correspondingExport
for that result type was configured with an extract property only that portion of the result will be returned.- Parameters:
results
- The results produced by a Smooks filtering operation.exports
- The exports.- Returns:
- List
-
-