public class CastorXMLUtility extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
CASTOR_XML_SERIALIZER_FACTORY |
| Constructor and Description |
|---|
CastorXMLUtility(ResourceLoader aResourceLoader,
Properties aAppProperties,
URL mapURL)
Looks for a file called 'index.xml' at the given URL, and loads every
file listed in there by relative path
|
public static final String CASTOR_XML_SERIALIZER_FACTORY
public CastorXMLUtility(ResourceLoader aResourceLoader, Properties aAppProperties, URL mapURL) throws InvalidDataException
aResourceLoader - the resource loader able to return the right class loaderaAppProperties - the application properties containing optional castor
configurationmapURL - the root URL for the mapfilesInvalidDataExceptionpublic String marshall(Object obj) throws IOException, org.exolab.castor.mapping.MappingException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOExceptionorg.exolab.castor.mapping.MappingExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionpublic Object unmarshall(String data) throws IOException, org.exolab.castor.mapping.MappingException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
IOExceptionorg.exolab.castor.mapping.MappingExceptionorg.exolab.castor.xml.MarshalExceptionorg.exolab.castor.xml.ValidationExceptionCopyright © 1997–2016 CRISTAL-iSE. All rights reserved.