at.ac.tuwien.infosys.sm4all.copal.api.listener.xml
Class XMLContextListeners

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUtil
      extended by at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayMarshaller<ContextListener>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.listener.xml.XMLContextListeners
All Implemented Interfaces:
Marshaller<ContextListener[]>

public class XMLContextListeners
extends ArrayMarshaller<ContextListener>

Command that marshalls an array of ContextListeners into an Element.

Author:
sanjin

Constructor Summary
XMLContextListeners(Element element)
          Creates instance of ContextListeners marshaller which uses specified Element to marshal the ContextListeners.
 
Method Summary
protected  void marshal(ContextListener listener, Element element)
          Marshals specified ContextListener into specified Element using the XMLContextListener.marshal(ContextListener) method.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ArrayMarshaller
marshal
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.xml.ElementUtil
getChildElement, getChildElement
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContextListeners

public XMLContextListeners(Element element)
Creates instance of ContextListeners marshaller which uses specified Element to marshal the ContextListeners.

Parameters:
element - the Element used for marshalling and unmarshalling.
Throws:
NullPointerException - if specified Element is null.
Method Detail

marshal

protected void marshal(ContextListener listener,
                       Element element)
Marshals specified ContextListener into specified Element using the XMLContextListener.marshal(ContextListener) method.

Specified by:
marshal in class ArrayMarshaller<ContextListener>
Parameters:
listener - the ContextListener to marshal.
element - the Element into which specified ContextListener should be marshalled.


Copyright © 2010 Distributed Systems Group, Vienna University of Technology. All Rights Reserved.