com.sun.xml.bind.marshaller
Class SchemaLocationFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by com.sun.xml.bind.marshaller.SchemaLocationFilter
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

Deprecated. not used in 2.0

public class SchemaLocationFilter
extends org.xml.sax.helpers.XMLFilterImpl

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.

Since:
JAXB1.0

Constructor Summary
SchemaLocationFilter(java.lang.String _schemaLocation, java.lang.String _noNSSchemaLocation, org.xml.sax.ContentHandler _writer)
          Deprecated.  
 
Method Summary
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname)
          Deprecated.  
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes atts)
          Deprecated.  
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Deprecated.  
 
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

SchemaLocationFilter

public SchemaLocationFilter(java.lang.String _schemaLocation,
                            java.lang.String _noNSSchemaLocation,
                            org.xml.sax.ContentHandler _writer)
Deprecated. 
Method Detail

startElement

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
Deprecated. 
Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startElement(String, String, String, Attributes)

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qname)
                throws org.xml.sax.SAXException
Deprecated. 
Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.endElement(String, String, String)

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Deprecated. 
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Overrides:
startPrefixMapping in class org.xml.sax.helpers.XMLFilterImpl
Throws:
org.xml.sax.SAXException
See Also:
ContentHandler.startPrefixMapping(String, String)