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

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

public class XMLContextListeners
extends Object
implements Marshaller<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
 void marshal(ContextListener[] listeners)
          Removes all child Elements of specified Element and appends marshalled ContextListeners from specified array of ContextListeners using the XMLContextListener.marshal(ContextListener) method.
 
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

public void marshal(ContextListener[] listeners)
Removes all child Elements of specified Element and appends marshalled ContextListeners from specified array of ContextListeners using the XMLContextListener.marshal(ContextListener) method.

Specified by:
marshal in interface Marshaller<ContextListener[]>
Parameters:
listeners - the ContextListeners.
Throws:
NullPointerException - if specified array of ContextListeners is null.


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