com.sun.xml.bind.v2.runtime
Class RuntimeUtil
java.lang.Object
com.sun.xml.bind.v2.runtime.RuntimeUtil
public class RuntimeUtil
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boxToPrimitive
public static final Map<Class,Class> boxToPrimitive
- Map from
Class
objects representing primitive types
to Class
objects representing their boxed types.
e.g., int -> Integer.
primitiveToBox
public static final Map<Class,Class> primitiveToBox
- Reverse map of
boxToPrimitive
.
RuntimeUtil
public RuntimeUtil()
handlePrintConversionException
public static void handlePrintConversionException(Object caller,
Exception e,
XMLSerializer serializer)
throws SAXException
- Reports a print conversion error while marshalling.
- Throws:
SAXException
handleTypeMismatchError
public static void handleTypeMismatchError(XMLSerializer serializer,
Object parentObject,
String fieldName,
Object childObject)
throws SAXException
- Reports that the type of an object in a property is unexpected.
- Throws:
SAXException