org.objectweb.proactive.core.xml.handler
Class AbstractUnmarshallerDecorator

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
All Implemented Interfaces:
UnmarshallerHandler, XMLHandler
Direct Known Subclasses:
BasicUnmarshallerDecorator, BindingsHandler, CollectionUnmarshaller, ComponentHandler, ComponentsDescriptorHandler, ComponentsHandler, ComponentTypeHandler, MasterFileHandler, PassiveCompositeUnmarshaller, ProActiveDescriptorHandler, ProActiveSecurityDescriptorHandler, ProcessDefinitionHandler, ProcessDefinitionHandler.ProcessHandler, PropertiesHandler

public abstract class AbstractUnmarshallerDecorator
extends java.lang.Object
implements UnmarshallerHandler

Receives SAX event and pass them on

Version:
0.91
Author:
Lionel Mestre

Field Summary
 
Fields inherited from interface org.objectweb.proactive.core.xml.handler.UnmarshallerHandler
logger
 
Constructor Summary
AbstractUnmarshallerDecorator()
           
AbstractUnmarshallerDecorator(boolean lenient)
           
 
Method Summary
 void addHandler(java.lang.String elementName, UnmarshallerHandler handler)
           
protected  void checkActiveHandler()
           
protected  boolean checkNonEmpty(java.lang.String s)
           
 void endElement(java.lang.String name)
          Receives notification that the end of an XML element of given name has been read in the XML being deserialized
 void endPrefixMapping(java.lang.String prefix)
          Receives notification that the scope of an XML prefix has just ended
protected  UnmarshallerHandler getHandler(java.lang.String elementName)
           
protected abstract  void notifyEndActiveHandler(java.lang.String name, UnmarshallerHandler activeHandler)
           
 void readValue(java.lang.String value)
          Receives notification that an XML value has been read in the XML being deserialized
 void startElement(java.lang.String name, Attributes attributes)
          Receives notification that an XML element of given name and attributes has been read in the XML being deserialized
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Receives notification that an XML prefix has just been defined
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.objectweb.proactive.core.xml.handler.UnmarshallerHandler
getResultObject, startContextElement
 

Constructor Detail

AbstractUnmarshallerDecorator

public AbstractUnmarshallerDecorator(boolean lenient)

AbstractUnmarshallerDecorator

public AbstractUnmarshallerDecorator()
Method Detail

addHandler

public void addHandler(java.lang.String elementName,
                       UnmarshallerHandler handler)

startElement

public void startElement(java.lang.String name,
                         Attributes attributes)
                  throws org.xml.sax.SAXException
Description copied from interface: XMLHandler
Receives notification that an XML element of given name and attributes has been read in the XML being deserialized

Specified by:
startElement in interface XMLHandler
Parameters:
name - the name of the element just opened
attributes - the attributes of this element
Throws:
org.xml.sax.SAXException - if an exception occur during processing

endElement

public void endElement(java.lang.String name)
                throws org.xml.sax.SAXException
Description copied from interface: XMLHandler
Receives notification that the end of an XML element of given name has been read in the XML being deserialized

Specified by:
endElement in interface XMLHandler
Parameters:
name - the name of the element just ended
Throws:
org.xml.sax.SAXException - if an exception occur during processing

readValue

public void readValue(java.lang.String value)
               throws org.xml.sax.SAXException
Description copied from interface: XMLHandler
Receives notification that an XML value has been read in the XML being deserialized

Specified by:
readValue in interface XMLHandler
Parameters:
value - the value just read
Throws:
org.xml.sax.SAXException - if an exception occur during processing

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
                        throws org.xml.sax.SAXException
Description copied from interface: XMLHandler
Receives notification that an XML prefix has just been defined

Specified by:
startPrefixMapping in interface XMLHandler
Parameters:
prefix - the name of the prefix defined
uri - the uri qualifying the prefix
Throws:
org.xml.sax.SAXException - if an exception occur during processing

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
                      throws org.xml.sax.SAXException
Description copied from interface: XMLHandler
Receives notification that the scope of an XML prefix has just ended

Specified by:
endPrefixMapping in interface XMLHandler
Parameters:
prefix - the name of the prefix ended
Throws:
org.xml.sax.SAXException - if an exception occur during processing

checkActiveHandler

protected void checkActiveHandler()
                           throws org.xml.sax.SAXException
org.xml.sax.SAXException

notifyEndActiveHandler

protected abstract void notifyEndActiveHandler(java.lang.String name,
                                               UnmarshallerHandler activeHandler)
                                        throws org.xml.sax.SAXException
org.xml.sax.SAXException

checkNonEmpty

protected boolean checkNonEmpty(java.lang.String s)

getHandler

protected UnmarshallerHandler getHandler(java.lang.String elementName)


Copyright © April 2004 INRIA All Rights Reserved.