Top Description Fields Constructors Methods
com.sun.tools.xjc.reader.internalizer

pack-priv final Class JAXBv2NSHandler

extends XMLFilterImpl
Class Inheritance
Imports
com.sun.tools.xjc.reader.Const, org.xml.sax.Attributes, .ContentHandler, .EntityResolver, .ErrorHandler, .Locator, .SAXException, .SAXParseException, org.xml.sax.helpers.AttributesImpl, .LocatorImpl, .XMLFilterImpl

Upgrades the jaxb 2.x customizations in a XML Schema document to version 3.0 and prints warnings.

Field Summary

Modifier and TypeField and Description
private Locator
private Locator
rootTagStart

Stores the location of the start tag of the root tag.

private boolean
seenOldBindings

Will be set to true once we hit a JAXB 2.x binding declaration.

private boolean
seenOldBindingsVersion

Will be set to true once we hit a JAXB 2.x binding version attribute declaration.

private boolean
seenRoot

Will be set to true once we hit the root element.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
public void
public void
startElement(String uri, String localName, String qName, Attributes atts)

Overrides org.xml.sax.helpers.XMLFilterImpl.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Filter a start element event.

Inherited from org.xml.sax.helpers.XMLFilterImpl:
charactersendElementendPrefixMappingerrorfatalErrorgetContentHandlergetDTDHandlergetEntityResolvergetErrorHandlergetFeaturegetParentgetPropertyignorableWhitespacenotationDeclparseparseprocessingInstructionresolveEntitysetContentHandlersetDTDHandlersetEntityResolversetErrorHandlersetFeaturesetParentsetPropertyskippedEntitystartDocumentstartPrefixMappingunparsedEntityDeclwarning

Field Detail

locatorback to summary
private Locator locator

Hides org.xml.sax.helpers.XMLFilterImpl.locator.

rootTagStartback to summary
private Locator rootTagStart

Stores the location of the start tag of the root tag.

seenOldBindingsback to summary
private boolean seenOldBindings

Will be set to true once we hit a JAXB 2.x binding declaration.

seenOldBindingsVersionback to summary
private boolean seenOldBindingsVersion

Will be set to true once we hit a JAXB 2.x binding version attribute declaration.

seenRootback to summary
private boolean seenRoot

Will be set to true once we hit the root element.

Constructor Detail

JAXBv2NSHandlerback to summary
public JAXBv2NSHandler(ContentHandler handler, ErrorHandler eh, EntityResolver er)

Method Detail

endDocumentback to summary
public void endDocument() throws SAXException

Overrides org.xml.sax.helpers.XMLFilterImpl.endDocument.

Implements org.xml.sax.ContentHandler.endDocument.

Doc from org.xml.sax.helpers.XMLFilterImpl.endDocument.

Filter an end document event.

Annotations
@Override
Exceptions
SAXException:
The client may throw an exception during processing.
setDocumentLocatorback to summary
public void setDocumentLocator(Locator locator)

Overrides org.xml.sax.helpers.XMLFilterImpl.setDocumentLocator.

Implements org.xml.sax.ContentHandler.setDocumentLocator.

Doc from org.xml.sax.helpers.XMLFilterImpl.setDocumentLocator.

Filter a new document locator event.

Annotations
@Override
startElementback to summary
public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException

Overrides org.xml.sax.helpers.XMLFilterImpl.startElement.

Implements org.xml.sax.ContentHandler.startElement.

Doc from org.xml.sax.helpers.XMLFilterImpl.startElement.

Filter a start element event.

Annotations
@Override
Exceptions
SAXException:
The client may throw an exception during processing.