at.ac.tuwien.infosys.sm4all.copal.api.event.xml.processor
Class XMLContextProcessors

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

public class XMLContextProcessors
extends Object
implements Marshaller<ContextProcessor[]>

Command that marshalls an array of ContextProcessors into an Element.

Author:
sanjin

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

Constructor Detail

XMLContextProcessors

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

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

marshal

public void marshal(ContextProcessor[] processors)
Removes all child Elements of specified Element and appends marshalled ContextProcessors from specified array of ContextProcessors using the XMLContextProcessor.marshal(ContextProcessor) method.

Specified by:
marshal in interface Marshaller<ContextProcessor[]>
Parameters:
processors - the ContextProcessors.
Throws:
NullPointerException - if specified array of ContextProcessors is null.


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