| java.lang.Object org.xml.sax.helpers.XMLFilterImpl com.sun.tools.xjc.reader.xmlschema.parser.IncorrectNamespaceURIChecker
IncorrectNamespaceURIChecker | public class IncorrectNamespaceURIChecker extends XMLFilterImpl (Code) | | This filter detects the use of incorrect JAXB namespace URI.
When the binding compiler looks at a schema file, it always look
for the namespace URI of the elements (which is correct, BTW.)
However, one unfortunate downside of this philosophically correct
behavior is that there is no provision or safety check when an user
misspelled JAXB binding customization namespace.
This checker inspects the input document and look for the use of the
prefix "jaxb". If the document doesn't associate any prefix to the
JAXB customization URI and if it does associate the jaxb prefix,
this checker will issue a warning.
This warning can happen to completely correct schema (because
nothing prevents you from using the prefix "jaxb" for other purpose
while using a JAXB compiler on the same schema) but in practice
this would be quite unlikely.
This justifies the use of this filter.
author: Kohsuke Kawaguchi (kohsuke.kawaguchi@sun.com) |
IncorrectNamespaceURIChecker | public IncorrectNamespaceURIChecker(ErrorHandler handler)(Code) | | |
setDocumentLocator | public void setDocumentLocator(Locator locator)(Code) | | |
Methods inherited from org.xml.sax.helpers.XMLFilterImpl | public void characters(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void endDocument() throws SAXException(Code)(Java Doc) public void endElement(String uri, String localName, String qName) throws SAXException(Code)(Java Doc) public void endPrefixMapping(String prefix) throws SAXException(Code)(Java Doc) public void error(SAXParseException e) throws SAXException(Code)(Java Doc) public void fatalError(SAXParseException e) throws SAXException(Code)(Java Doc) public ContentHandler getContentHandler()(Code)(Java Doc) public DTDHandler getDTDHandler()(Code)(Java Doc) public EntityResolver getEntityResolver()(Code)(Java Doc) public ErrorHandler getErrorHandler()(Code)(Java Doc) public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public XMLReader getParent()(Code)(Java Doc) public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void ignorableWhitespace(char ch, int start, int length) throws SAXException(Code)(Java Doc) public void notationDecl(String name, String publicId, String systemId) throws SAXException(Code)(Java Doc) public void parse(InputSource input) throws SAXException, IOException(Code)(Java Doc) public void parse(String systemId) throws SAXException, IOException(Code)(Java Doc) public void processingInstruction(String target, String data) throws SAXException(Code)(Java Doc) public InputSource resolveEntity(String publicId, String systemId) throws SAXException, IOException(Code)(Java Doc) public void setContentHandler(ContentHandler handler)(Code)(Java Doc) public void setDTDHandler(DTDHandler handler)(Code)(Java Doc) public void setDocumentLocator(Locator locator)(Code)(Java Doc) public void setEntityResolver(EntityResolver resolver)(Code)(Java Doc) public void setErrorHandler(ErrorHandler handler)(Code)(Java Doc) public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void setParent(XMLReader parent)(Code)(Java Doc) public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException(Code)(Java Doc) public void skippedEntity(String name) throws SAXException(Code)(Java Doc) public void startDocument() throws SAXException(Code)(Java Doc) public void startElement(String uri, String localName, String qName, Attributes atts) throws SAXException(Code)(Java Doc) public void startPrefixMapping(String prefix, String uri) throws SAXException(Code)(Java Doc) public void unparsedEntityDecl(String name, String publicId, String systemId, String notationName) throws SAXException(Code)(Java Doc) public void warning(SAXParseException e) throws SAXException(Code)(Java Doc)
|
|
|