org.springframework.oxm.castor
Class CastorUtils
java.lang.Object
org.springframework.oxm.castor.CastorUtils
public class CastorUtils
- extends Object
Generic utility methods for working with Castor. Mainly for internal use within the framework.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
Method Summary |
static XmlMappingException |
convertXmlException(org.exolab.castor.xml.XMLException ex,
boolean marshalling)
Converts the given XMLException to an appropriate exception from the
org.springframework.oxm hierarchy. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CastorUtils
public CastorUtils()
convertXmlException
public static XmlMappingException convertXmlException(org.exolab.castor.xml.XMLException ex,
boolean marshalling)
- Converts the given
XMLException
to an appropriate exception from the
org.springframework.oxm
hierarchy.
A boolean flag is used to indicate whether this exception occurs during marshalling or unmarshalling, since
Castor itself does not make this distinction in its exception hierarchy.
- Parameters:
ex
- Castor XMLException
that occuredmarshalling
- indicates whether the exception occurs during marshalling (true
), or
unmarshalling (false
)
- Returns:
- the corresponding
XmlMappingException
Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.