edu.uci.isr.yancees
Interface MessageInterface

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
EventInterface, SubscriptionInterface
All Known Implementing Classes:
GenericEvent, GenericMessage, GenericSubscription, YanceesEvent

public interface MessageInterface
extends java.io.Serializable


Method Summary
 java.util.Date getDateCreated()
           
 java.util.Date getDateReceivedInServer()
           
 org.w3c.dom.Node getDOM()
           
 long getId()
           
 java.lang.String getXMLTextContent()
           
 void setDOM(org.w3c.dom.Node n)
           
 void setXMLTextContent(java.lang.String content)
          Changes the content of this message.
 

Method Detail

setDOM

void setDOM(org.w3c.dom.Node n)
            throws MessageParsingException
Throws:
MessageParsingException

getDOM

org.w3c.dom.Node getDOM()

getId

long getId()

setXMLTextContent

void setXMLTextContent(java.lang.String content)
Changes the content of this message. Replaces it with the XML content provided in the String provided

Parameters:
content - is the new XML format contnet in the form of a String

getXMLTextContent

java.lang.String getXMLTextContent()
Returns:
the content of this message in the text form, as a string.

getDateCreated

java.util.Date getDateCreated()
Returns:
the date the object was first created

getDateReceivedInServer

java.util.Date getDateReceivedInServer()
Returns:
the date this object arrived in the server