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
JAXBException
public static <T> JAXBElement<T> unmarshall(JAXBContext c, Element e, Class<T> cls) throws JAXBException
JAXBException
public static Object unmarshall(JAXBContext c, Source s) throws JAXBException
JAXBException
public static <T> JAXBElement<T> unmarshall(JAXBContext c, XMLStreamReader reader, Class<T> cls) throws JAXBException
JAXBException
public static Object unmarshall(JAXBContext c, XMLStreamReader reader) throws JAXBException
JAXBException
protected static boolean isJavaKeyword(String word)
word
- the word to check.JavaUtils
public 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
PropertyException
public static JAXBUtils.BridgeWrapper createBridge(Set<Class<?>> ctxClasses, QName qname, Class<?> refcls, Annotation[] anns) throws JAXBException
JAXBException
public static JAXBUtils.SchemaCompiler createSchemaCompiler() throws JAXBException
JAXBException
public 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
JAXBException
public static Object createFileCodeWriter(File f, String encoding) throws JAXBException
JAXBException
public static Class<?> getParamClass(JAXBUtils.SchemaCompiler sc, String method)
public static List<DOMResult> generateJaxbSchemas(JAXBContext context, Map<String,DOMResult> builtIns) throws IOException
IOException
public 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