|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
com.sun.xml.bind.marshaller.SchemaLocationFilter
public class SchemaLocationFilter
This filter will insert the xsi:schemaLocation and xsi:noNamespaceSchemaLocation attributes on the root element of the marshalled xml if the properties are set on the javax.xml.bind.Marshaller. It will modify the namespace prefix if necessary to avoid a collision with an existing "xsi" prefix that doesn't point to the XMLSchema-Instance uri. If the client needs to have finer grained control over where these attributes appear in the marshalled xml data, then they have to write their own filter to add the values.
Constructor Summary | |
---|---|
SchemaLocationFilter(java.lang.String _schemaLocation,
java.lang.String _noNSSchemaLocation,
org.xml.sax.ContentHandler _writer)
|
Method Summary | |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qname)
|
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qname,
org.xml.sax.Attributes atts)
|
void |
startPrefixMapping(java.lang.String prefix,
java.lang.String uri)
|
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
---|
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SchemaLocationFilter(java.lang.String _schemaLocation, java.lang.String _noNSSchemaLocation, org.xml.sax.ContentHandler _writer)
Method Detail |
---|
public void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
ContentHandler.startElement(String, String, String, Attributes)
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
ContentHandler.endElement(String, String, String)
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.XMLFilterImpl
org.xml.sax.SAXException
ContentHandler.startPrefixMapping(String, String)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |