public class RuntimeUtil
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RuntimeUtil.ToStringAdapter
XmlAdapter for printing arbitrary object by using
Object.toString() . |
Modifier and Type | Field and Description |
---|---|
static java.util.Map<java.lang.Class,java.lang.Class> |
boxToPrimitive
Map from
Class objects representing primitive types
to Class objects representing their boxed types. |
static java.util.Map<java.lang.Class,java.lang.Class> |
primitiveToBox
Reverse map of
boxToPrimitive . |
Constructor and Description |
---|
RuntimeUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
handlePrintConversionException(java.lang.Object caller,
java.lang.Exception e,
XMLSerializer serializer)
Reports a print conversion error while marshalling.
|
static void |
handleTypeMismatchError(XMLSerializer serializer,
java.lang.Object parentObject,
java.lang.String fieldName,
java.lang.Object childObject)
Reports that the type of an object in a property is unexpected.
|
public static final java.util.Map<java.lang.Class,java.lang.Class> boxToPrimitive
Class
objects representing primitive types
to Class
objects representing their boxed types.
e.g., int -> Integer.
public static final java.util.Map<java.lang.Class,java.lang.Class> primitiveToBox
boxToPrimitive
.public static void handlePrintConversionException(java.lang.Object caller, java.lang.Exception e, XMLSerializer serializer) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public static void handleTypeMismatchError(XMLSerializer serializer, java.lang.Object parentObject, java.lang.String fieldName, java.lang.Object childObject) throws org.xml.sax.SAXException
org.xml.sax.SAXException