com.sun.xml.bind.marshaller
Class SchemaLocationFilter
java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
com.sun.xml.bind.marshaller.SchemaLocationFilter
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
Deprecated. not used in 2.0
public class SchemaLocationFilter
- extends 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
- Author:
- Ryan Shoemaker, Sun Microsystems, Inc.
| 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 |
SchemaLocationFilter
public SchemaLocationFilter(String _schemaLocation,
String _noNSSchemaLocation,
ContentHandler _writer)
- Deprecated.
startElement
public void startElement(String namespaceURI,
String localName,
String qname,
Attributes atts)
throws SAXException
- Deprecated.
- Specified by:
startElement in interface ContentHandler- Overrides:
startElement in class XMLFilterImpl
- Throws:
SAXException- See Also:
ContentHandler.startElement(String, String, String, Attributes)
endElement
public void endElement(String namespaceURI,
String localName,
String qname)
throws SAXException
- Deprecated.
- Specified by:
endElement in interface ContentHandler- Overrides:
endElement in class XMLFilterImpl
- Throws:
SAXException- See Also:
ContentHandler.endElement(String, String, String)
startPrefixMapping
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
- Deprecated.
- Specified by:
startPrefixMapping in interface ContentHandler- Overrides:
startPrefixMapping in class XMLFilterImpl
- Throws:
SAXException- See Also:
ContentHandler.startPrefixMapping(String, String)
Copyright © 2005-2011 Oracle Corporation. All Rights Reserved.