public final class JAXBUtils extends Object
| Modifier and Type | Class and Description | 
|---|---|
| static interface  | JAXBUtils.BridgeWrapper | 
| static class  | JAXBUtils.DefaultClassNameAllocator | 
| static class  | JAXBUtils.IdentifierType | 
| static interface  | JAXBUtils.JCodeModel | 
| static interface  | JAXBUtils.JDefinedClass | 
| static interface  | JAXBUtils.JPackage | 
| static interface  | JAXBUtils.JType | 
| static interface  | JAXBUtils.Mapping | 
| static interface  | JAXBUtils.Options | 
| static interface  | JAXBUtils.S2JJAXBModel | 
| static interface  | JAXBUtils.SchemaCompiler | 
| static interface  | JAXBUtils.TypeAndAnnotation | 
| Modifier and Type | Method and Description | 
|---|---|
| static String | builtInTypeToJavaType(String type) | 
| static JAXBUtils.BridgeWrapper | createBridge(Set<Class<?>> ctxClasses,
            QName qname,
            Class<?> refcls,
            Annotation[] anns) | 
| static Object | createFileCodeWriter(File f) | 
| static Object | createFileCodeWriter(File f,
                    String encoding) | 
| static JAXBContextProxy | createJAXBContextProxy(JAXBContext ctx) | 
| static JAXBContextProxy | createJAXBContextProxy(JAXBContext ctx,
                      SchemaCollection collection,
                      String defaultNs) | 
| static JAXBUtils.SchemaCompiler | createSchemaCompiler() | 
| static JAXBUtils.SchemaCompiler | createSchemaCompilerWithDefaultAllocator(Set<String> allocatorSet) | 
| static List<DOMResult> | generateJaxbSchemas(JAXBContext context,
                   Map<String,DOMResult> builtIns) | 
| static JAXBBeanInfo | getBeanInfo(JAXBContextProxy context,
           Class<?> cls) | 
| static List<String> | getGeneratedClassNames(JAXBUtils.JCodeModel codeModel) | 
| static String | getPackageNamespace(Class<?> cls) | 
| static Class<?> | getParamClass(JAXBUtils.SchemaCompiler sc,
             String method) | 
| static Class<?> | getValidClass(Class<?> cls) | 
| static Class<?> | holderClass(String type) | 
| protected static boolean | isJavaKeyword(String word)Checks if the specified word is a Java keyword (as defined in JavaUtils). | 
| static boolean | isJAXB22() | 
| static void | logGeneratedClassNames(Logger logger,
                      JAXBUtils.JCodeModel codeModel) | 
| static String | namespaceURIToPackage(String namespaceURI)Generates a Java package name from a URI according to the
 algorithm outlined in JAXB 2.0. | 
| static String | nameSpaceURIToPackage(URI uri)Generates a Java package name from a URI according to the
 algorithm outlined in Appendix D of JAXB (2.0+). | 
| static String | nameToIdentifier(String name,
                JAXBUtils.IdentifierType type)Converts an XML name to a Java identifier according to the mapping
 algorithm outlined in the JAXB specification | 
| static void | scanPackages(Set<Class<?>> classes,
            Class<?>[] extraClass,
            Map<Package,CachedClass> objectFactoryCache) | 
| static void | scanPackages(Set<Class<?>> classes,
            Map<Package,CachedClass> objectFactoryCache) | 
| static Object | setNamespaceMapper(Map<String,String> nspref,
                  Marshaller marshaller) | 
public static final String JAXB_URI
protected static boolean isJavaKeyword(String word)
word - the word to check.JavaUtilspublic static String namespaceURIToPackage(String namespaceURI)
namespaceURI - the namespace URI.public static String nameSpaceURIToPackage(URI uri)
uri - the namespace URI.public static String nameToIdentifier(String name, JAXBUtils.IdentifierType type)
name - the XML namepublic static Object setNamespaceMapper(Map<String,String> nspref, Marshaller marshaller) throws PropertyException
PropertyExceptionpublic static JAXBUtils.BridgeWrapper createBridge(Set<Class<?>> ctxClasses, QName qname, Class<?> refcls, Annotation[] anns) throws JAXBException
JAXBExceptionpublic static JAXBUtils.SchemaCompiler createSchemaCompiler() throws JAXBException
JAXBExceptionpublic static JAXBUtils.SchemaCompiler createSchemaCompilerWithDefaultAllocator(Set<String> allocatorSet)
public static void logGeneratedClassNames(Logger logger, JAXBUtils.JCodeModel codeModel)
public static List<String> getGeneratedClassNames(JAXBUtils.JCodeModel codeModel)
public static Object createFileCodeWriter(File f) throws JAXBException
JAXBExceptionpublic static Object createFileCodeWriter(File f, String encoding) throws JAXBException
JAXBExceptionpublic static Class<?> getParamClass(JAXBUtils.SchemaCompiler sc, String method)
public static List<DOMResult> generateJaxbSchemas(JAXBContext context, Map<String,DOMResult> builtIns) throws IOException
IOExceptionpublic static void scanPackages(Set<Class<?>> classes, Map<Package,CachedClass> objectFactoryCache)
public static void scanPackages(Set<Class<?>> classes, Class<?>[] extraClass, Map<Package,CachedClass> objectFactoryCache)
public static boolean isJAXB22()
public static JAXBContextProxy createJAXBContextProxy(JAXBContext ctx)
public static JAXBContextProxy createJAXBContextProxy(JAXBContext ctx, SchemaCollection collection, String defaultNs)
public static JAXBBeanInfo getBeanInfo(JAXBContextProxy context, Class<?> cls)
Copyright © 2018 JBoss by Red Hat. All rights reserved.