at.ac.tuwien.infosys.sm4all.copal.api.event.xml.query
Class XMLContextQueries

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

public class XMLContextQueries
extends Object
implements Marshaller<ContextQuery[]>

Command that marshalls an array of ContextQuerys into an Element.

Author:
sanjin

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

Constructor Detail

XMLContextQueries

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

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

marshal

public void marshal(ContextQuery[] queries)
Removes all child Elements of specified Element and appends marshalled ContextQuerys from specified array of ContextQuerys using the XMLContextQuery.marshal(ContextQuery) method.

Specified by:
marshal in interface Marshaller<ContextQuery[]>
Parameters:
queries - the ContextQuerys.
Throws:
NullPointerException - if specified array of ContextQuerys is null.


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