public abstract class JAXBSourceTagHandler<T,C extends GeneratorContext<C>> extends Object implements SourceTagHandler<C>
| Modifier and Type | Field and Description |
|---|---|
protected DocumentToProcess |
documentToProcess |
protected T |
element |
protected Location |
location |
protected Unmarshaller |
unmarshaller |
protected Class<T> |
xmlElementClass |
| Constructor and Description |
|---|
JAXBSourceTagHandler(Class<T> xmlElementClass) |
| Modifier and Type | Method and Description |
|---|---|
void |
declareTargets(C context) |
T |
getElement() |
boolean |
parse(DocumentToProcess documentToProcess,
C context) |
String |
toString() |
protected final Unmarshaller unmarshaller
protected T element
protected DocumentToProcess documentToProcess
protected Location location
public JAXBSourceTagHandler(Class<T> xmlElementClass) throws JAXBException
JAXBExceptionpublic boolean parse(DocumentToProcess documentToProcess, C context)
parse in interface SourceTagHandler<C extends GeneratorContext<C>>public void declareTargets(C context) throws Exception
declareTargets in interface SourceTagHandler<C extends GeneratorContext<C>>Exceptionpublic T getElement()
Copyright © 2015. All rights reserved.