org.kuali.rice.core.impl.config.property
Class JAXBConfigImpl.ConfigNamespaceURIFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.kuali.rice.core.impl.config.property.JAXBConfigImpl.ConfigNamespaceURIFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader
Enclosing class:
JAXBConfigImpl

public class JAXBConfigImpl.ConfigNamespaceURIFilter
extends XMLFilterImpl

This is a SAX filter that adds the config xml namespace to the document if the document does not have a namespace (for backwards compatibility). This filter assumes unqualified attributes and does not modify their namespace (if any). This could be broken out into a more generic class if Rice makes more use of JAXB.

Author:
Kuali Rice Team (kuali-rice@googlegroups.com)

Field Summary
static String CONFIG_URI
           
 
Constructor Summary
JAXBConfigImpl.ConfigNamespaceURIFilter()
           
 
Method Summary
 void endElement(String uri, String localName, String qName)
           
 void startElement(String uri, String localName, String qName, Attributes atts)
           
 
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, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_URI

public static final String CONFIG_URI
See Also:
Constant Field Values
Constructor Detail

JAXBConfigImpl.ConfigNamespaceURIFilter

public JAXBConfigImpl.ConfigNamespaceURIFilter()
Method Detail

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class XMLFilterImpl
Throws:
SAXException


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.