at.ac.tuwien.infosys.sm4all.copal.rest.provider
Class XMLProcessedEventQueryReader

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLReader<ProcessedEventQuery>
      extended by at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLProcessedEventQueryReader
All Implemented Interfaces:
javax.ws.rs.ext.MessageBodyReader<ProcessedEventQuery>

public class XMLProcessedEventQueryReader
extends XMLReader<ProcessedEventQuery>
implements javax.ws.rs.ext.MessageBodyReader<ProcessedEventQuery>

A ProcessedEventQuery XMLReader.

Author:
sanjin

Constructor Summary
XMLProcessedEventQueryReader()
          Creates instance of ProcessedEventQuery XMLReader.
 
Method Summary
static ContextQueryFactory getFactory()
          Returns the ContextQueryFactory all instances of XMLProcessedEventQueryReader are using.
static void setFactory(ContextQueryFactory factory)
          Sets the ContextQueryFactory all instances of XMLProcessedEventQueryReader should use.
protected  ProcessedEventQuery unmarshal(org.w3c.dom.Element element)
          Unmarshal a value from specified Element.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.rest.provider.XMLReader
isReadable, readFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ws.rs.ext.MessageBodyReader
isReadable, readFrom
 

Constructor Detail

XMLProcessedEventQueryReader

public XMLProcessedEventQueryReader()
Creates instance of ProcessedEventQuery XMLReader.

Method Detail

getFactory

public static ContextQueryFactory getFactory()
Returns the ContextQueryFactory all instances of XMLProcessedEventQueryReader are using.

Returns:
the ContextQueryFactory all instances of XMLProcessedEventQueryReader are using.

setFactory

public static void setFactory(ContextQueryFactory factory)
Sets the ContextQueryFactory all instances of XMLProcessedEventQueryReader should use.

Parameters:
factory - the ContextQueryFactory.

unmarshal

protected ProcessedEventQuery unmarshal(org.w3c.dom.Element element)
                                 throws FailedUnmarshallingException
Description copied from class: XMLReader
Unmarshal a value from specified Element.

Specified by:
unmarshal in class XMLReader<ProcessedEventQuery>
Parameters:
element - the Element used for unmarshalling.
Returns:
value the unmarshaled value.
Throws:
FailedUnmarshallingException - if unmarshalling was unsuccessful.


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