public class XMLFileHandler
extends java.lang.Object
ObjectData objects by serializing a collection
of them into and out of an XML file.| Constructor and Description |
|---|
XMLFileHandler(XMLConfiguration conf)
Constructor; supply configuration.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection |
load(ClassMetaData meta)
Loads all instances of
meta into a list of objects. |
void |
store(ClassMetaData meta,
java.util.Collection datas)
Stores all instances in
datas into the appropriate file,
as dictated by meta. |
void |
writeDataValue(java.io.Writer out,
int type,
java.lang.Object val)
Write out the data value.
|
public XMLFileHandler(XMLConfiguration conf)
public java.util.Collection load(ClassMetaData meta)
meta into a list of objects.
The given meta must represent a least-derived
persistence-capable type.public void store(ClassMetaData meta, java.util.Collection datas)
datas into the appropriate file,
as dictated by meta.meta - the least-derived type of the instances being storeddatas - a collection of ObjectData instances, each
of which represents an object of type metapublic void writeDataValue(java.io.Writer out,
int type,
java.lang.Object val)
throws java.io.IOException
java.io.IOExceptionCopyright © 2006-2013 Apache Software Foundation. All Rights Reserved.