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

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.query.XMLContextQuery
      extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.query.XMLProcessedEventQuery
All Implemented Interfaces:
Marshaller<ContextQuery>, Unmarshaller<ProcessedEventQuery>

public class XMLProcessedEventQuery
extends XMLContextQuery
implements Unmarshaller<ProcessedEventQuery>

Command that unmarshalls a ProcessedEventQuery from an Element.

Author:
sanjin

Constructor Summary
XMLProcessedEventQuery(ContextQueryFactory factory, Element element)
          Creates instance of ProcessedEventQuery unmarshaller which uses specified Element to unmarshal a ProcessedEventQuery and specified ContextQueryFactory to construct the ProcessedEventQuery.
 
Method Summary
 ProcessedEventQuery unmarshal()
          Unmarshalls a ProcessedEventQuery from specified Element.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.event.xml.query.XMLContextQuery
marshal
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLProcessedEventQuery

public XMLProcessedEventQuery(ContextQueryFactory factory,
                              Element element)
Creates instance of ProcessedEventQuery unmarshaller which uses specified Element to unmarshal a ProcessedEventQuery and specified ContextQueryFactory to construct the ProcessedEventQuery.

Parameters:
factory - the ContextQueryFactory used for constructing the unmarshalled ProcessedEventQuery.
element - the Element used for unmarshalling.
Throws:
NullPointerException - if specified Element is null.
Method Detail

unmarshal

public ProcessedEventQuery unmarshal()
                              throws ParsingException,
                                     RedefinitionOfQueryException
Unmarshalls a ProcessedEventQuery from specified Element.

Specified by:
unmarshal in interface Unmarshaller<ProcessedEventQuery>
Returns:
the unmarshalled ProcessedEventQuery.
Throws:
ParsingException - if unmarshalling was unsuccessful.
RedefinitionOfQueryException - if a ContextQuery with same name and different event type or criteria was already created with specified ContextQueryFactory.


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