net.sf.jaxme.xs.parser.impl
Class XsSAXParserImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.parser.impl.XsSAXParserImpl
All Implemented Interfaces:
org.xml.sax.ContentHandler, XsSAXParser

public class XsSAXParserImpl
extends java.lang.Object
implements org.xml.sax.ContentHandler, XsSAXParser

Author:
Jochen Wiedmann

Constructor Summary
XsSAXParserImpl(java.lang.Object pBean)
           
 
Method Summary
 void characters(char[] pBuffer, int pOffset, int pLen)
           
 void endDocument()
           
 void endElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName)
           
 void endPrefixMapping(java.lang.String pPrefix)
           
 java.lang.Object getBean()
          Returns the bean configured by the XsSAXParser.
 org.xml.sax.ContentHandler getChildHandler()
           
protected  XSContext getData()
           
 java.lang.String getLocalName()
          Returns the current elements local name.
 java.lang.String getNamespaceURI()
          Returns the current elements namespace URI.
 java.lang.String getQName()
          Returns the current elements fully qualified name.
 void ignorableWhitespace(char[] pBuffer, int pOffset, int pLen)
           
 void processingInstruction(java.lang.String pTarget, java.lang.String pData)
           
 void setDocumentLocator(org.xml.sax.Locator pLocator)
           
 void setLocalName(java.lang.String pLocalName)
           
 void setNamespaceURI(java.lang.String pNamespaceURI)
           
 void setQName(java.lang.String pQName)
           
 void skippedEntity(java.lang.String pEntity)
           
 void startDocument()
           
 void startElement(java.lang.String pNamespaceURI, java.lang.String pLocalName, java.lang.String pQName, org.xml.sax.Attributes pAttr)
           
 void startPrefixMapping(java.lang.String pPrefix, java.lang.String pURI)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XsSAXParserImpl

public XsSAXParserImpl(java.lang.Object pBean)
Method Detail

getData

protected XSContext getData()

getBean

public java.lang.Object getBean()
Description copied from interface: XsSAXParser

Returns the bean configured by the XsSAXParser.

Specified by:
getBean in interface XsSAXParser

setQName

public void setQName(java.lang.String pQName)

setNamespaceURI

public void setNamespaceURI(java.lang.String pNamespaceURI)

getNamespaceURI

public java.lang.String getNamespaceURI()
Description copied from interface: XsSAXParser

Returns the current elements namespace URI.

Specified by:
getNamespaceURI in interface XsSAXParser

setLocalName

public void setLocalName(java.lang.String pLocalName)

getLocalName

public java.lang.String getLocalName()
Description copied from interface: XsSAXParser

Returns the current elements local name.

Specified by:
getLocalName in interface XsSAXParser

getQName

public java.lang.String getQName()
Description copied from interface: XsSAXParser

Returns the current elements fully qualified name.

Specified by:
getQName in interface XsSAXParser

getChildHandler

public org.xml.sax.ContentHandler getChildHandler()

startPrefixMapping

public void startPrefixMapping(java.lang.String pPrefix,
                               java.lang.String pURI)
                        throws org.xml.sax.SAXException
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endPrefixMapping

public void endPrefixMapping(java.lang.String pPrefix)
                      throws org.xml.sax.SAXException
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

characters

public void characters(char[] pBuffer,
                       int pOffset,
                       int pLen)
                throws org.xml.sax.SAXException
Specified by:
characters in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

ignorableWhitespace

public void ignorableWhitespace(char[] pBuffer,
                                int pOffset,
                                int pLen)
                         throws org.xml.sax.SAXException
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

skippedEntity

public void skippedEntity(java.lang.String pEntity)
                   throws org.xml.sax.SAXException
Specified by:
skippedEntity in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

processingInstruction

public void processingInstruction(java.lang.String pTarget,
                                  java.lang.String pData)
                           throws org.xml.sax.SAXException
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String pNamespaceURI,
                         java.lang.String pLocalName,
                         java.lang.String pQName,
                         org.xml.sax.Attributes pAttr)
                  throws org.xml.sax.SAXException
Specified by:
startElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

endElement

public void endElement(java.lang.String pNamespaceURI,
                       java.lang.String pLocalName,
                       java.lang.String pQName)
                throws org.xml.sax.SAXException
Specified by:
endElement in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator pLocator)
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler