public abstract class NodeDataTransformer extends Object
The transformation class must be declared under the element
xs:annotation/xs:appinfo
where<osd:transform class="com.foo.MyTransformation" />
com.foo.MyTransformation
is
the fully qualified name of the class extending NodeDataTransformer
.
It is also possible to set additional JavaBean properties:
where<osd:transform class="com.foo.MyTransformation"> <param1>...</param1> <param2>...</param2> </osd:transform>
param1
and param2
are JavaBean properties of the specified class.
For more information, see the JavaBean specification.
setParam1(...)
and
setParam2(...)
);
transformOnExport(Object, NodeDataTransformerContext)
is called for each value to export to an archive.
Constructor and Description |
---|
NodeDataTransformer() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
transformOnExport(Object rawValue,
NodeDataTransformerContext aContext)
Method called when exporting an archive or performing a D3 broadcast.
|
public abstract Object transformOnExport(Object rawValue, NodeDataTransformerContext aContext)
This method is not called if the current node is
not a terminal node
,
is a computed value node
,
or the current value is the inherit indicator
.
Otherwise, this method is called for each value of the associated node to be exported.
rawValue
- the value as it is persisted in the repository.aContext
- can be used to access other local values or to know more about the execution context.maxOccurs > 1
, a List
must be returned.