Spring Web Services Framework

org.springframework.oxm.xmlbeans
Class XmlBeansUtils

java.lang.Object
  extended by org.springframework.oxm.xmlbeans.XmlBeansUtils

public class XmlBeansUtils
extends Object

Generic utility methods for working with XMLBeans. Mainly for internal use within the framework.

Since:
1.0.0
Author:
Arjen Poutsma

Constructor Summary
XmlBeansUtils()
           
 
Method Summary
static XmlMappingException convertXmlBeansException(Exception ex, boolean marshalling)
          Converts the given XMLBeans exception 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
 

Constructor Detail

XmlBeansUtils

public XmlBeansUtils()
Method Detail

convertXmlBeansException

public static XmlMappingException convertXmlBeansException(Exception ex,
                                                           boolean marshalling)
Converts the given XMLBeans exception 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 XMLBeans itself does not make this distinction in its exception hierarchy.

Parameters:
ex - XMLBeans Exception that occured
marshalling - indicates whether the exception occurs during marshalling (true), or unmarshalling (false)
Returns:
the corresponding XmlMappingException

Spring Web Services Framework

Copyright © 2005-2010 The Spring Web Services Framework. All Rights Reserved.