org.apache.cxf.jaxb
Class JAXBUtils

java.lang.Object
  extended by org.apache.cxf.jaxb.JAXBUtils

public final class JAXBUtils
extends java.lang.Object


Nested Class Summary
static class JAXBUtils.IdentifierType
           
 
Field Summary
static java.lang.String JAXB_URI
           
 
Method Summary
static java.lang.String builtInTypeToJavaType(java.lang.String type)
           
static java.lang.Class<?> getValidClass(java.lang.Class<?> cls)
           
static java.lang.Class<?> holderClass(java.lang.String type)
           
static boolean isAsync(java.lang.reflect.Method method)
           
static boolean isAsyncCallback(java.lang.reflect.Method method)
           
static boolean isAsyncPolling(java.lang.reflect.Method method)
           
static boolean isJavaKeyword(java.lang.String word)
          Checks if the specified word is a Java keyword (as of 1.5).
static java.lang.String namespaceURIToPackage(java.lang.String namespaceURI)
          Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0.
static java.lang.String nameSpaceURIToPackage(java.net.URI uri)
          Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0.
static java.lang.String nameToIdentifier(java.lang.String name, JAXBUtils.IdentifierType type)
          Converts an XML name to a Java identifier according to the mapping algorithm outlines in the JAXB specification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXB_URI

public static final java.lang.String JAXB_URI
See Also:
Constant Field Values
Method Detail

builtInTypeToJavaType

public static java.lang.String builtInTypeToJavaType(java.lang.String type)

holderClass

public static java.lang.Class<?> holderClass(java.lang.String type)

isJavaKeyword

public static boolean isJavaKeyword(java.lang.String word)
Checks if the specified word is a Java keyword (as of 1.5).

Parameters:
word - the word to check.
Returns:
true if the word is a keyword.

namespaceURIToPackage

public static java.lang.String namespaceURIToPackage(java.lang.String namespaceURI)
Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0.

Parameters:
namespaceURI - the namespace URI.
Returns:
the package name.

nameSpaceURIToPackage

public static java.lang.String nameSpaceURIToPackage(java.net.URI uri)
Generates a Java package name from a URI according to the algorithm outlined in JAXB 2.0.

Parameters:
namespaceURI - the namespace URI.
Returns:
the package name.

isAsync

public static boolean isAsync(java.lang.reflect.Method method)

isAsyncPolling

public static boolean isAsyncPolling(java.lang.reflect.Method method)

isAsyncCallback

public static boolean isAsyncCallback(java.lang.reflect.Method method)

nameToIdentifier

public static java.lang.String nameToIdentifier(java.lang.String name,
                                                JAXBUtils.IdentifierType type)
Converts an XML name to a Java identifier according to the mapping algorithm outlines in the JAXB specification

Parameters:
name - the XML name
Returns:
the Java identifier

getValidClass

public static java.lang.Class<?> getValidClass(java.lang.Class<?> cls)


Apache CXF