at.ac.tuwien.infosys.sm4all.copal.api.event.xml
Class TimeToLive

java.lang.Object
  extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.XMLElement<T>
      extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.ConcreteElement<Long>
          extended by at.ac.tuwien.infosys.sm4all.copal.api.event.xml.TimeToLive

public class TimeToLive
extends ConcreteElement<Long>

The COPAL element for the event's time-to-live,

Author:
sanjin

Field Summary
static TimeToLive INSTANCE
          Singleton instance.
 
Method Summary
protected  Long retrieve(Element element)
          Retrieve the value of this element from specified Element.
 void update(Element element, ContextEvent event)
          Update specified Element with value retrieved from specified ContextEvent.
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.event.xml.ConcreteElement
createElement, getElement, getXPath, retrieve
 
Methods inherited from class at.ac.tuwien.infosys.sm4all.copal.api.event.xml.XMLElement
getExpression, getQualifiedName, getXMLType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final TimeToLive INSTANCE
Singleton instance.

Method Detail

retrieve

protected Long retrieve(Element element)
                 throws FailedUnmarshallingException
Description copied from class: ConcreteElement
Retrieve the value of this element from specified Element.

Specified by:
retrieve in class ConcreteElement<Long>
Parameters:
element - the Element.
Returns:
the value of this property.
Throws:
FailedUnmarshallingException - if retrieving was not successful.

update

public void update(Element element,
                   ContextEvent event)
Description copied from class: ConcreteElement
Update specified Element with value retrieved from specified ContextEvent.

Specified by:
update in class ConcreteElement<Long>
Parameters:
element - the Element to update.
event - the ContextEvent.


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