| java.lang.Object com.sun.xml.xsom.parser.AnnotationParser
All known Subclasses: com.sun.xml.xsom.impl.parser.DefaultAnnotationParser,
AnnotationParser | abstract public class AnnotationParser (Code) | | Used to parse <xs:annotation>.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
Method Summary | |
abstract public ContentHandler | getContentHandler(AnnotationContext context, String parentElementName, ErrorHandler errorHandler, EntityResolver entityResolver) 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.
Parameters: context - indicates the schema component that owns this annotation.Always non-null. Parameters: parentElementName - local name of the element that contains <xs:annotation>.(e.g., "element", "attribute", ... | abstract public Object | getResult(Object existing) Once the SAX events are fed to the ContentHandler,
this method will be called to retrieve the parsed result.
Parameters: existing - An annotation object which was returned from anotherAnnotationParser before. |
getContentHandler | abstract public ContentHandler getContentHandler(AnnotationContext context, String parentElementName, ErrorHandler errorHandler, EntityResolver entityResolver)(Code) | | 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.
Parameters: context - indicates the schema component that owns this annotation.Always non-null. Parameters: parentElementName - local name of the element that contains <xs:annotation>.(e.g., "element", "attribute", ... ) Parameters: errorHandler - The error handler that the client application specifies.The returned content handler can send its errors to thisobject. Parameters: entityResolver - The entity resolver that is currently in use. Again,The returned content handler can use this objectif it needs to resolve entities. |
getResult | abstract public Object getResult(Object existing)(Code) | | Once the SAX events are fed to the ContentHandler,
this method will be called to retrieve the parsed result.
Parameters: existing - An annotation object which was returned from anotherAnnotationParser before. Sometimes, one schema componentcan have multiple <:xs:annotation> elements andthis parameter is used to merge all those annotationstogether. If there is no existing object, null will bepassed.Any object, including null. |
|
|