Top Description Fields Constructors Methods
com.sun.xml.xsom.impl.parser

pack-priv Class DefaultAnnotationParser

extends AnnotationParser
Class Inheritance
Imports
com.sun.xml.xsom.parser.AnnotationContext, .AnnotationParser, org.xml.sax.ContentHandler, .EntityResolver, .ErrorHandler, org.xml.sax.helpers.DefaultHandler

AnnotationParser that just ignores annotation.

This class doesn't have any state. So it should be used as a singleton.

Author
Kohsuke Kawaguchi ([email protected])

Field Summary

Modifier and TypeField and Description
public static final AnnotationParser

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public ContentHandler
getContentHandler(AnnotationContext contest, String elementName, ErrorHandler errorHandler, EntityResolver entityResolver)

Implements abstract com.sun.xml.xsom.parser.AnnotationParser.getContentHandler.

Called every time a new <xs:annotation> element is found.

public Object
getResult(Object existing)

Implements abstract com.sun.xml.xsom.parser.AnnotationParser.getResult.

Once the SAX events are fed to the ContentHandler, this method will be called to retrieve the parsed result.

Field Detail

theInstanceback to summary
public static final AnnotationParser theInstance

Constructor Detail

DefaultAnnotationParserback to summary
private DefaultAnnotationParser()

Method Detail

getContentHandlerback to summary
public ContentHandler getContentHandler(AnnotationContext contest, String elementName, ErrorHandler errorHandler, EntityResolver entityResolver)

Implements abstract com.sun.xml.xsom.parser.AnnotationParser.getContentHandler.

Doc from com.sun.xml.xsom.parser.AnnotationParser.getContentHandler.

Called every time a new <xs:annotation> element is found. The sub-tree rooted at <xs:annotation> will be sent to this ContentHandler as if it is a whole document.

getResultback to summary
public Object getResult(Object existing)

Implements abstract com.sun.xml.xsom.parser.AnnotationParser.getResult.

Doc from com.sun.xml.xsom.parser.AnnotationParser.getResult.

Once the SAX events are fed to the ContentHandler, this method will be called to retrieve the parsed result.