|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.dispatcher.switcher.SwitcherSubscription
This class implements a siena subscription parser. It parses and converts an XML subscription in the Siena format to the native siena subscription. Hence, this subscription represents the main functionality of the core event dispatcher component, on top of which all other subscription extensions are build. In other words, the subscription is an adapter around a DOM node that is able to map the specific sienaSubscriptio.xsd elements to filters in Siena internal representation. Hence, it works as a container and a translator of the subscription subtrees that are understood by siena.
Field Summary | |
static java.lang.String |
REQUIRE
|
static java.lang.String |
SUBSCRIPTION
Tags imported from the switcherSubscriptin.xsd |
Constructor Summary | |
SwitcherSubscription(org.w3c.dom.Node node)
Initializes this object with a DOM tree to be parsed we assume here that the subscription is provided according to sienaSubscription.xsd and the node provided here corresponds to the |
Method Summary | |
java.util.Date |
getDateCreated()
|
java.util.Date |
getDateReceivedInServer()
|
org.w3c.dom.Node |
getDOM()
|
long |
getId()
|
java.lang.String[] |
getRequireFields()
|
java.lang.String |
getXMLTextContent()
|
void |
setDOM(org.w3c.dom.Node node)
Changes the current subscription DOM tree |
void |
setXMLTextContent(java.lang.String content)
Changes the content of this message. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String SUBSCRIPTION
public static final java.lang.String REQUIRE
Constructor Detail |
public SwitcherSubscription(org.w3c.dom.Node node) throws ParsingException
Method Detail |
public long getId()
getId
in interface MessageInterface
public void setDOM(org.w3c.dom.Node node) throws ParsingException
setDOM
in interface MessageInterface
ParsingException
public org.w3c.dom.Node getDOM()
getDOM
in interface MessageInterface
public java.lang.String[] getRequireFields()
public java.lang.String toString()
public void setXMLTextContent(java.lang.String content)
setXMLTextContent
in interface MessageInterface
content
- is the new XML format contnet in the form of a Stringpublic java.lang.String getXMLTextContent()
getXMLTextContent
in interface MessageInterface
public java.util.Date getDateCreated()
getDateCreated
in interface MessageInterface
public java.util.Date getDateReceivedInServer()
getDateReceivedInServer
in interface MessageInterface
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |