public class JavaResult extends FilterResult implements ResultExtractor<JavaResult>
result
" Map from the transformation.
Simply set an instance of this class as the Result
arg in the call
to Smooks.filterSource(org.milyn.container.ExecutionContext, javax.xml.transform.Source, javax.xml.transform.Result...)
.Modifier and Type | Class and Description |
---|---|
static class |
JavaResult.ResultMap<K,V> |
CONTEXT_KEY
PI_DISABLE_OUTPUT_ESCAPING, PI_ENABLE_OUTPUT_ESCAPING
Constructor and Description |
---|
JavaResult()
Public default constructor.
|
JavaResult(boolean preserveOrder)
Public default constructor.
|
JavaResult(Map<String,Object> resultMap)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
extractFromResult(JavaResult result,
Export export) |
<T> T |
getBean(Class<T> beanType)
Get the first instance of the specified bean type
from this JavaResult instance.
|
Object |
getBean(String name)
Get the named bean from the Java Result Map.
|
Map<String,Object> |
getResultMap()
Get the Java result map.
|
void |
setResultMap(Map<String,Object> resultMap)
Set the Java result map.
|
String |
toString()
XML Serialized form of the bean Map associate with the
result instance.
|
getResult, getResults, getSystemId, setResults, setSystemId
public JavaResult()
public JavaResult(boolean preserveOrder)
public JavaResult(Map<String,Object> resultMap)
setResultMap(java.util.Map)
.resultMap
- Result Map. This is the map onto which Java "result" objects will be set.public Object getBean(String name)
name
- the name of the bean.getResultMap()
public <T> T getBean(Class<T> beanType)
beanType
- The bean runtime class type.public Map<String,Object> getResultMap()
getBean(String)
public void setResultMap(Map<String,Object> resultMap)
resultMap
- The Java result map.public String toString()
public Object extractFromResult(JavaResult result, Export export)
extractFromResult
in interface ResultExtractor<JavaResult>
Copyright © 2020. All rights reserved.