public class JAXBSourceFileHandlerFactory<C extends GeneratorContext<C>> extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Class<? extends JAXBSourceTagHandler<?,C>>> |
registeredSourceTagHandlerClassByTagName |
protected XMLInputFactory |
xmlInputFactory |
| Constructor and Description |
|---|
JAXBSourceFileHandlerFactory() |
| Modifier and Type | Method and Description |
|---|---|
JAXBSourceFileHandler<C> |
createSourceFileHandler(Path path) |
<T> SourceTagHandler<C> |
createSourceTagHandler(Class<? extends JAXBSourceTagHandler<T,C>> sourceTagHandlerClass) |
SourceTagHandler<C> |
createSourceTagHandler(QName name,
C context) |
<T,S extends JAXBSourceTagHandler<T,C>> |
registerSourceTagHandlerClass(Class<S> sourceTagHandlerClass) |
<T,S extends JAXBSourceTagHandler<T,C>> |
registerSourceTagHandlerClass(Class<S> sourceTagHandlerClass,
Object objectFactory) |
<T> void |
registerSourceTagHandlerClassForTagName(String tagName,
Class<? extends JAXBSourceTagHandler<T,C>> sourceTagHandlerClass) |
protected Map<String,Class<? extends JAXBSourceTagHandler<?,C extends GeneratorContext<C>>>> registeredSourceTagHandlerClassByTagName
protected final XMLInputFactory xmlInputFactory
public <T> void registerSourceTagHandlerClassForTagName(String tagName, Class<? extends JAXBSourceTagHandler<T,C>> sourceTagHandlerClass)
public <T,S extends JAXBSourceTagHandler<T,C>> void registerSourceTagHandlerClass(Class<S> sourceTagHandlerClass) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
public <T,S extends JAXBSourceTagHandler<T,C>> void registerSourceTagHandlerClass(Class<S> sourceTagHandlerClass, Object objectFactory) throws NoSuchMethodException, InvocationTargetException, IllegalAccessException
public JAXBSourceFileHandler<C> createSourceFileHandler(Path path)
public SourceTagHandler<C> createSourceTagHandler(QName name, C context) throws JAXBException, NoSuchMethodException, IllegalAccessException, InstantiationException, InvocationTargetException
public <T> SourceTagHandler<C> createSourceTagHandler(Class<? extends JAXBSourceTagHandler<T,C>> sourceTagHandlerClass) throws JAXBException, NoSuchMethodException, IllegalAccessException, InvocationTargetException, InstantiationException
Copyright © 2015. All rights reserved.