org.objectweb.proactive.core.component.xml
Class ComponentsHandler

java.lang.Object
  |
  +--org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
        |
        +--org.objectweb.proactive.core.component.xml.ComponentsHandler
All Implemented Interfaces:
ContainerHandlerMarker, UnmarshallerHandler, XMLHandler

public class ComponentsHandler
extends AbstractUnmarshallerDecorator
implements ContainerHandlerMarker

Author:
Matthieu Morel

Field Summary
static org.apache.log4j.Logger logger
           
 
Constructor Summary
ComponentsHandler(ProActiveDescriptor deploymentDescriptor, ComponentsCache componentsCache, java.util.HashMap componentTypes, AbstractContainerComponentHandler fatherHandler)
           
 
Method Summary
 void disable()
           
 void enable()
           
 ContainerElementHierarchy getContainerElementHierarchy()
           
 java.lang.Object getResultObject()
          Returns the object resulting of the processing of the SAX events.
 boolean isEnabled()
           
protected  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 startContextElement(java.lang.String name, Attributes attributes)
          Receives notification that the XML element of given name and attributes 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
 
Methods inherited from class org.objectweb.proactive.core.xml.handler.AbstractUnmarshallerDecorator
addHandler, checkActiveHandler, checkNonEmpty, endElement, endPrefixMapping, getHandler, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static org.apache.log4j.Logger logger
Constructor Detail

ComponentsHandler

public ComponentsHandler(ProActiveDescriptor deploymentDescriptor,
                         ComponentsCache componentsCache,
                         java.util.HashMap componentTypes,
                         AbstractContainerComponentHandler fatherHandler)
Method Detail

notifyEndActiveHandler

protected void notifyEndActiveHandler(java.lang.String name,
                                      UnmarshallerHandler activeHandler)
                               throws org.xml.sax.SAXException
Specified by:
notifyEndActiveHandler in class AbstractUnmarshallerDecorator
org.xml.sax.SAXException

getResultObject

public java.lang.Object getResultObject()
                                 throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Returns the object resulting of the processing of the SAX events.

Specified by:
getResultObject in interface UnmarshallerHandler
Returns:
the object resulting of the processing of the SAX events or null
Throws:
org.xml.sax.SAXException - if the state of the handler does not allow to return any resulting object.

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
Overrides:
readValue in class AbstractUnmarshallerDecorator
Parameters:
value - the value just read
Throws:
org.xml.sax.SAXException - if an exception occur during processing

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
Overrides:
startElement in class AbstractUnmarshallerDecorator
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

enable

public void enable()
Specified by:
enable in interface ContainerHandlerMarker

disable

public void disable()
Specified by:
disable in interface ContainerHandlerMarker

isEnabled

public boolean isEnabled()
Specified by:
isEnabled in interface ContainerHandlerMarker

getContainerElementHierarchy

public ContainerElementHierarchy getContainerElementHierarchy()
Specified by:
getContainerElementHierarchy in interface ContainerHandlerMarker

startContextElement

public void startContextElement(java.lang.String name,
                                Attributes attributes)
                         throws org.xml.sax.SAXException
Description copied from interface: UnmarshallerHandler
Receives notification that the XML element of given name and attributes has been read in the XML being deserialized. This element is the context element of the Object being unmarshalled. This context element is the element that has triggered the use of this handler.

Specified by:
startContextElement in interface UnmarshallerHandler
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


Copyright © April 2004 INRIA All Rights Reserved.