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 |
public static final String JAXB_URI
public static void closeUnmarshaller(Unmarshaller u)
public static Object unmarshall(JAXBContext c, Element e) throws JAXBException
JAXBExceptionpublic static <T> JAXBElement<T> unmarshall(JAXBContext c, Element e, Class<T> cls) throws JAXBException
JAXBExceptionpublic static Object unmarshall(JAXBContext c, Source s) throws JAXBException
JAXBExceptionpublic static <T> JAXBElement<T> unmarshall(JAXBContext c, XMLStreamReader reader, Class<T> cls) throws JAXBException
JAXBExceptionpublic static Object unmarshall(JAXBContext c, XMLStreamReader reader) throws JAXBException
JAXBExceptionprotected 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(Bus bus, 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)
public static void setMinimumEscapeHandler(Marshaller marshaller)
public static void setNoEscapeHandler(Marshaller marshaller)
public static void setEscapeHandler(Marshaller marshaller, Object escapeHandler)
Apache CXF