org.codehaus.enunciate.contract.jaxb.util
Class JAXBUtil

java.lang.Object
  extended by org.codehaus.enunciate.contract.jaxb.util.JAXBUtil

public class JAXBUtil
extends java.lang.Object

Consolidation of common logic for implementing the JAXB contract.

Author:
Ryan Heaton

Constructor Summary
JAXBUtil()
           
 
Method Summary
static com.sun.mirror.type.TypeMirror unwrapComponentType(com.sun.mirror.type.TypeMirror typeMirror)
          Unwraps the specified type to its component type if its a collection or an array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAXBUtil

public JAXBUtil()
Method Detail

unwrapComponentType

public static com.sun.mirror.type.TypeMirror unwrapComponentType(com.sun.mirror.type.TypeMirror typeMirror)
Unwraps the specified type to its component type if its a collection or an array. Otherwise, the specified type is returned.

Parameters:
typeMirror - The type to unwrap if necessary.
Returns:
The component type, or the type itself.