org.infinispan.config.parsing
Class NamespaceFilter

java.lang.Object
  extended by org.xml.sax.helpers.XMLFilterImpl
      extended by org.infinispan.config.parsing.NamespaceFilter
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler, XMLFilter, XMLReader

public class NamespaceFilter
extends XMLFilterImpl

Adds namespace where needed when parsing an XML document


Field Summary
static String ISPN_NS
           
 
Constructor Summary
NamespaceFilter()
           
 
Method Summary
 void endElement(String arg0, String arg1, String arg2)
           
 void startDocument()
           
 void startElement(String arg0, String arg1, String arg2, Attributes arg3)
           
 void startPrefixMapping(String prefix, String url)
           
 
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, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ISPN_NS

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

NamespaceFilter

public NamespaceFilter()
Method Detail

startDocument

public void startDocument()
                   throws SAXException
Specified by:
startDocument in interface ContentHandler
Overrides:
startDocument in class XMLFilterImpl
Throws:
SAXException

startElement

public void startElement(String arg0,
                         String arg1,
                         String arg2,
                         Attributes arg3)
                  throws SAXException
Specified by:
startElement in interface ContentHandler
Overrides:
startElement in class XMLFilterImpl
Throws:
SAXException

endElement

public void endElement(String arg0,
                       String arg1,
                       String arg2)
                throws SAXException
Specified by:
endElement in interface ContentHandler
Overrides:
endElement in class XMLFilterImpl
Throws:
SAXException

startPrefixMapping

public void startPrefixMapping(String prefix,
                               String url)
                        throws SAXException
Specified by:
startPrefixMapping in interface ContentHandler
Overrides:
startPrefixMapping in class XMLFilterImpl
Throws:
SAXException

-->

Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.