at.ac.tuwien.infosys.sm4all.copal.api.event.xml.publisher
Class XMLContextPublishers

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

public class XMLContextPublishers
extends Object
implements Marshaller<ContextPublisher[]>

Command that marshalls an array of ContextPublishers into an Element.

Author:
sanjin

Constructor Summary
XMLContextPublishers(Element element)
          Creates instance of ContextPublishers marshaller which uses specified Element to marshal the ContextPublishers.
 
Method Summary
 void marshal(ContextPublisher[] publishers)
          Removes all child Elements of specified Element and appends marshalled ContextPublishers from specified array of ContextPublishers using the XMLContextPublisher.marshal(ContextPublisher) method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLContextPublishers

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

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

marshal

public void marshal(ContextPublisher[] publishers)
Removes all child Elements of specified Element and appends marshalled ContextPublishers from specified array of ContextPublishers using the XMLContextPublisher.marshal(ContextPublisher) method.

Specified by:
marshal in interface Marshaller<ContextPublisher[]>
Parameters:
publishers - the ContextPublishers.
Throws:
NullPointerException - if specified array of ContextPublishers is null.


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