org.apache.muse.ws.notification.properties
Class ResourcePropertyChangeEvent

java.lang.Object
  extended by org.apache.muse.ws.notification.properties.ResourcePropertyChangeEvent
All Implemented Interfaces:
XmlSerializable

public class ResourcePropertyChangeEvent
extends Object
implements XmlSerializable

ResourcePropertyChangeEvent is a simple Java bean that represents the WSRP property change notification event. Users can instantiate this class and provide it to NotificationProducer.publish() in order to report property changes that aren't caught by the Muse WSRP implementation.

Author:
Dan Jemiolo (danj)

Constructor Summary
ResourcePropertyChangeEvent(NotificationMessage message)
          Parses the message content to find the WSRP change notification data.
ResourcePropertyChangeEvent(QName propertyName, Element[] oldValues, Element[] newValues)
           
 
Method Summary
 Element[] getNewValues()
           
 Element[] getOldValues()
           
 QName getPropertyName()
           
 Element toXML()
          Converts this object into an XML representation, as defined by its related schema or specification.
 Element toXML(Document doc)
          Converts this object into an XML representation, as defined by its related schema or specification.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourcePropertyChangeEvent

public ResourcePropertyChangeEvent(QName propertyName,
                                   Element[] oldValues,
                                   Element[] newValues)

ResourcePropertyChangeEvent

public ResourcePropertyChangeEvent(NotificationMessage message)
Parses the message content to find the WSRP change notification data.

Parameters:
message - A notification message containing a WSRP change event.
Method Detail

getNewValues

public Element[] getNewValues()

getOldValues

public Element[] getOldValues()

getPropertyName

public QName getPropertyName()

toXML

public Element toXML()
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Returns:
An XML representation of this object.

toXML

public Element toXML(Document doc)
Description copied from interface: XmlSerializable
Converts this object into an XML representation, as defined by its related schema or specification. The format of the XML is dependent on the concrete type.

Specified by:
toXML in interface XmlSerializable
Parameters:
doc - The DOM Document that will be used to create all of the nodes in the resulting XML fragment.
Returns:
An XML representation of this object.


Copyright © 2005-2011 Apache Web Services - Muse. All Rights Reserved.