AnnotationParserFactory that parses annotations into a W3C DOM.
If you use this parser factory, you'll get Element that represents
<xs:annotation> from XSAnnotation#getAnnotation().
When multiple <xs:annotation>s are found for the given schema component,
you'll see all <xs:appinfo>s and <xs:documentation>s combined under
one <xs:annotation> element.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final ContextClassloaderLocal |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AnnotationParser | |
| public AnnotationParser |
| stf | back to summary |
|---|---|
| private static final ContextClassloaderLocal<SAXTransformerFactory> stf | |
| DomAnnotationParserFactory | back to summary |
|---|---|
| public DomAnnotationParserFactory() Default constructor. | |
| create | back to summary |
|---|---|
| public AnnotationParser create() Implements com. | |
| create | back to summary |
|---|---|
| public AnnotationParser create(boolean disableSecureProcessing) | |
| Modifier and Type | Field and Description |
|---|---|
| private DOMResult | |
| private final TransformerHandler | transformer
Identity transformer used to parse SAX into DOM. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public ContentHandler | getContentHandler(AnnotationContext context, String parentElementName, ErrorHandler errorHandler, EntityResolver entityResolver)
Implements abstract com. Called every time a new |
| public Object | getResult(Object existing)
Implements abstract com. Once the SAX events are fed to the ContentHandler, this method will be called to retrieve the parsed result. |
| result | back to summary |
|---|---|
| private DOMResult result | |
| transformer | back to summary |
|---|---|
| private final TransformerHandler transformer Identity transformer used to parse SAX into DOM. | |
| AnnotationParserImpl | back to summary |
|---|---|
| pack-priv AnnotationParserImpl() | |
| AnnotationParserImpl | back to summary |
|---|---|
| pack-priv AnnotationParserImpl(boolean disableSecureProcessing) | |
| getContentHandler | back to summary |
|---|---|
| public ContentHandler getContentHandler(AnnotationContext context, String parentElementName, ErrorHandler errorHandler, EntityResolver entityResolver) Implements abstract com. Doc from com. Called every time a new | |
| getResult | back to summary |
|---|---|
| public Object getResult(Object existing) Implements abstract com. Doc from com. Once the SAX events are fed to the ContentHandler, this method will be called to retrieve the parsed result. | |