Sxml (v.1.0.2) API documentation

siena.sxml
Class XMLNotifiableWrapper

java.lang.Object
  |
  +--siena.sxml.XMLNotifiableWrapper
All Implemented Interfaces:
siena.Notifiable

public class XMLNotifiableWrapper
extends java.lang.Object
implements siena.Notifiable

a wrapper for using an XMLNotifiable as a subscriber with Siena. serves as an adapter for an XMLNotifiable to be used as a Siena notifiable.

Example:


      Siena siena = new ThinClient("senp://foo.bar:4321");
      XMLNotifiable subscriber;
      //
      //  ...initialize subscriber...
      //
      XMLNotifiableWrapper wrapper = new XMLNotifiableWrapper(subscriber);

      Filter f = new Filter();
      f.addConstraint("name", Op.EQ, "Antonio");

      siena.subscribe(wrapper, f);
      //
      // ...
      //
      siena.unsubscribe(wrapper);
  
an XMLNotifiableWrapper extracts the XML fragments from the notifications it receives from Siena and dispatches them to the XMLNotifiable. If a notification does not contain any XML fragment, because it was not generated by EventMap or because it was produced without the XML source (see EventMap.attachXml()), then XMLNotifiableWrapper will pass a null string.


Constructor Summary
XMLNotifiableWrapper(XMLNotifiable n)
          construct a wrapper for the given XMLNotifiable
 
Method Summary
 void notify(siena.Notification n)
           
 void notify(siena.Notification[] ns)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNotifiableWrapper

public XMLNotifiableWrapper(XMLNotifiable n)
construct a wrapper for the given XMLNotifiable
Method Detail

notify

public void notify(siena.Notification n)
Specified by:
notify in interface siena.Notifiable

notify

public void notify(siena.Notification[] ns)
Specified by:
notify in interface siena.Notifiable

Sxml (v.1.0.2) API documentation

Copyright © 2001 University of Colorado.
This documentation is maintained by Antonio Carzaniga