<serialize>
Purpose/Function
Take a bean object in memory and write it serially as XML to a file.
If the object is ncsa.tools.common.UserFacing
, will use the interface method; otherwise, it does implicit bean serialization using the ncsa.tools.common.util.bean.ImplicitJBeanSerializer
(this is very verbose XML). The latter case is only guaranteed to work if the object follows the Java-bean model.
Attributes
NAME |
TYPE |
DEFAULT VALUE |
DESCRIPTION |
---|---|---|---|
bean |
|
required |
the object (reference) to serialize |
path |
|
required |
the file to which to write the serialization |
Elements
None.
ReturnValues
None.
Examples
... <serialize object="${anObject}" path="serialized-object.xml"/> ...