org.apache.ws.jaxme.impl
Class JMHandlerBase

java.lang.Object
  extended byorg.apache.ws.jaxme.impl.JMHandlerBase
All Implemented Interfaces:
org.xml.sax.ContentHandler, JMHandler, Observable
Direct Known Subclasses:
AtomicHandler, JMHandlerImpl

public abstract class JMHandlerBase
extends java.lang.Object
implements JMHandler

A common base class for the AtomicHandler and the JMHandlerImpl.

Version:
$Id: JMHandlerBase.java,v 1.4 2004/02/16 23:39:57 jochen Exp $
Author:
Jochen Wiedmann

Nested Class Summary
protected  class JMHandlerBase.DataImpl
           
 
Nested classes inherited from class org.apache.ws.jaxme.JMHandler
JMHandler.Data
 
Constructor Summary
JMHandlerBase()
           
 
Method Summary
 void endDocument()
           
 void endPrefixMapping(java.lang.String pPrefix)
           
 JMHandler.Data getData()
          Returns the handlers Data.
 org.xml.sax.Locator getDocumentLocator()
          Returns the Locator previously set by setDocumentLocator(), if any.
 Observer getObserver()
          Returns the Observer.
 void init(JMHandler.Data pData)
          Initializes the handler by setting its Data.
 void init(JMUnmarshaller pUnmarshaller)
          Initializes the handler by creating a new Data instance and calling init(Data).
 void processingInstruction(java.lang.String pTarget, java.lang.String pData)
           
 void setDocumentLocator(org.xml.sax.Locator pLocator)
           
 void setObserver(Observer pObserver)
          Sets the Observer.
 void skippedEntity(java.lang.String name)
           
 void startPrefixMapping(java.lang.String pPrefix, java.lang.String pURI)
           
protected  void validationEvent(int pSeverity, java.lang.String pMsg, java.lang.String pErrorCode)
           
protected  void validationEvent(int pSeverity, java.lang.String pMsg, java.lang.String pErrorCode, java.lang.Exception pException)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.ws.jaxme.JMHandler
getResult
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endElement, ignorableWhitespace, startDocument, startElement
 

Constructor Detail

JMHandlerBase

public JMHandlerBase()
Method Detail

init

public void init(JMUnmarshaller pUnmarshaller)
          throws JAXBException
Description copied from interface: JMHandler

Initializes the handler by creating a new Data instance and calling init(Data).

Specified by:
init in interface JMHandler
Throws:
JAXBException

init

public void init(JMHandler.Data pData)
          throws JAXBException
Description copied from interface: JMHandler

Initializes the handler by setting its Data.

Specified by:
init in interface JMHandler
Parameters:
pData - An instance of JMHandler.Data providing access to the handlers configuration..
Throws:
JAXBException

getData

public JMHandler.Data getData()
Description copied from interface: JMHandler

Returns the handlers Data.

Specified by:
getData in interface JMHandler

setDocumentLocator

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

getDocumentLocator

public org.xml.sax.Locator getDocumentLocator()

Returns the Locator previously set by setDocumentLocator(), if any.


setObserver

public void setObserver(Observer pObserver)
Description copied from interface: Observable

Sets the Observer.

Specified by:
setObserver in interface Observable

getObserver

public Observer getObserver()
Description copied from interface: Observable

Returns the Observer.

Specified by:
getObserver in interface Observable

validationEvent

protected void validationEvent(int pSeverity,
                               java.lang.String pMsg,
                               java.lang.String pErrorCode)
                        throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

validationEvent

protected void validationEvent(int pSeverity,
                               java.lang.String pMsg,
                               java.lang.String pErrorCode,
                               java.lang.Exception pException)
                        throws org.xml.sax.SAXException
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

skippedEntity

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

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

endDocument

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