|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.server.dispatcher.siena.SienaSubscription
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 |
FILTER
|
static java.lang.String |
NAME
Tags used from the event to express siena constraints. |
static java.lang.String[] |
OPERATORS
string representation of all supported OPERATORS as described in the sienaSubscription.xsd. |
static java.lang.String |
SUBSCRIPTION
|
static java.lang.String |
TYPE_ATTRIBUTE
|
static java.lang.String |
VALUE
|
Constructor Summary | |
SienaSubscription(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()
|
Filter[] |
getFilters()
|
long |
getId()
|
short |
getOperatorType(java.lang.String strop)
|
Pattern |
getPattern()
|
java.lang.String |
getXMLTextContent()
|
boolean |
isValidSienaOperator(java.lang.String strop)
Compares the provided operator as a String, to the valid OPERATORS suported by this subscription and as described in sienaSubscripion.xds |
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[] OPERATORS
public static final java.lang.String NAME
public static final java.lang.String VALUE
public static final java.lang.String SUBSCRIPTION
public static final java.lang.String TYPE_ATTRIBUTE
public static final java.lang.String FILTER
Constructor Detail |
public SienaSubscription(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 Pattern getPattern()
public Filter[] getFilters()
public short getOperatorType(java.lang.String strop)
public boolean isValidSienaOperator(java.lang.String strop)
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 |