Top Inners Fields Constructors Methods
org.glassfish.jaxb.core.v2.runtime

public Class RuntimeUtil

extends Object
Class Inheritance
Imports
java.util.Collections, .HashMap, .Map, jakarta.xml.bind.annotation.adapters.XmlAdapter

Author
Kohsuke Kawaguchi

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
RuntimeUtil.ToStringAdapter

XmlAdapter for printing arbitrary object by using Object#toString().

Field Summary

Modifier and TypeField and Description
public static final Map<Class<?>, Class<?>>
boxToPrimitive

Map from Class objects representing primitive types to Class objects representing their boxed types.

public static final Map<Class<?>, Class<?>>

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

boxToPrimitiveback to summary
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.

primitiveToBoxback to summary
public static final Map<Class<?>, Class<?>> primitiveToBox

Reverse map of boxToPrimitive.

Constructor Detail

RuntimeUtilback to summary
private RuntimeUtil()

Method Detail

getTypeNameback to summary
private static String getTypeName(Object o)
org.glassfish.jaxb.core.v2.runtime back to summary

public final Class RuntimeUtil.ToStringAdapter

extends XmlAdapter<String, Object>
Class Inheritance

XmlAdapter for printing arbitrary object by using Object#toString().

Constructor Summary

AccessConstructor and Description
public
ToStringAdapter()

Default constructor.

Method Summary

Modifier and TypeMethod and Description
public String
marshal(Object o)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

public Object
unmarshal(String s)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Constructor Detail

ToStringAdapterback to summary
public ToStringAdapter()

Default constructor.

Method Detail

marshalback to summary
public String marshal(Object o)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.marshal.

Convert a bound type to a value type.

Annotations
@Override
unmarshalback to summary
public Object unmarshal(String s)

Implements abstract jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Doc from jakarta.xml.bind.annotation.adapters.XmlAdapter.unmarshal.

Convert a value type to a bound type.

Annotations
@Override