|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.uci.isr.yancees.GenericMessage
edu.uci.isr.yancees.GenericEvent
edu.uci.isr.yancees.YanceesEvent
public class YanceesEvent
Field Summary | |
---|---|
static java.lang.String |
YANCEES_DATE_CREATED
|
static java.lang.String |
YANCEES_DATE_RECEIVED
|
static java.lang.String |
YANCEES_ID
|
static java.lang.String |
YANCEES_VERSION
|
static java.lang.String |
YANCEES_VERSION_TAG
|
Fields inherited from class edu.uci.isr.yancees.GenericMessage |
---|
dateCreated, dateReceivedInServer, messageDOM, myId, textContent |
Constructor Summary | |
---|---|
YanceesEvent()
This is the preferential constructor for this object. |
|
YanceesEvent(EventInterface evi)
Initializes this event with a generic event. |
|
YanceesEvent(java.io.File file)
|
|
YanceesEvent(java.lang.String content)
|
Method Summary | |
---|---|
void |
clearAll()
Removes every attribute from this YanceesEvent. |
boolean |
containsAttribute(java.lang.String name)
|
protected void |
finalize()
|
java.lang.Object |
get(java.lang.String attName)
|
java.util.Iterator |
getAttributeNamesIterator()
Returns an iterator for the set of attribute names of this SienaEvent body. |
boolean |
getBoolean(java.lang.String attName)
Gets a boolean attribute |
byte[] |
getByteArray(java.lang.String attName)
Gets a byte[] attribute |
double |
getDouble(java.lang.String attName)
Gets a double attribute |
float |
getFloat(java.lang.String attName)
Gets a float attribute |
int |
getInt(java.lang.String attName)
Gets a int attribute |
long |
getLong(java.lang.String attName)
Gets a long attribute |
java.lang.Object |
getObject(java.lang.String attName)
Gets a Byte array as an object |
java.lang.Object[] |
getObjectArray(java.lang.String attName)
Gets a Byte array as an object array: Object[] |
java.lang.String |
getXMLTextContent()
|
int |
numberOfAttributes()
|
void |
put(java.lang.String attName,
boolean value)
|
void |
put(java.lang.String attName,
byte[] value)
|
void |
put(java.lang.String attName,
double value)
|
void |
put(java.lang.String attName,
float value)
|
void |
put(java.lang.String attName,
int value)
|
void |
put(java.lang.String attName,
long value)
|
void |
put(java.lang.String attName,
java.lang.Object value)
Puts an object that is serialized as a byte array. |
void |
put(java.lang.String attName,
java.lang.Object[] arrayValue)
Puts an object array that is serialized as a byte array. |
void |
put(java.lang.String attName,
java.lang.String value)
|
void |
remove(java.lang.String attName)
|
void |
setDateCreated(java.util.Date newDate)
used to reconstruct the id when an event is re-created in the ohter side of the network |
void |
setDOM(org.w3c.dom.Node n)
Changes the content of the event by providing a new XML representation for it. |
void |
setID(long originalId)
used to reconstruct the id when an event is re-created in the ohter side of the network |
void |
setXMLTextContent(java.lang.String content)
Changes the content of this message. |
java.lang.String |
toString()
Prints the structure of the event using a free notation. |
Methods inherited from class edu.uci.isr.yancees.GenericMessage |
---|
convertTextToMessageDOM, getDateCreated, getDateReceivedInServer, getDOM, getId, setDateReceivedInServer, writeTextToTempFile |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface edu.uci.isr.yancees.MessageInterface |
---|
getDateCreated, getDateReceivedInServer, getDOM, getId |
Field Detail |
---|
public static final java.lang.String YANCEES_DATE_RECEIVED
public static final java.lang.String YANCEES_DATE_CREATED
public static final java.lang.String YANCEES_ID
public static final java.lang.String YANCEES_VERSION_TAG
public static final java.lang.String YANCEES_VERSION
Constructor Detail |
---|
public YanceesEvent(EventInterface evi) throws MessageParsingException
MessageParsingException
public YanceesEvent(java.io.File file) throws java.io.IOException
file
- is the File object with the XML representation of an event
according to the standard format, supported by the adapter and
the plug-ins. The event here can be desribed in many formats,
as well as the adapters and plug-ins in the server know how to
handle it.
java.io.IOException
public YanceesEvent(java.lang.String content)
content
- is the XML representation of the event in textual, string in
memory.public YanceesEvent()
Method Detail |
---|
public void setDOM(org.w3c.dom.Node n) throws MessageParsingException
setDOM
in interface MessageInterface
setDOM
in class GenericMessage
MessageParsingException
public java.lang.Object getObject(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
-
WrongAttributeTypeException
AttributeNotFoundException
public java.lang.Object[] getObjectArray(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
-
WrongAttributeTypeException
AttributeNotFoundException
public double getDouble(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public float getFloat(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public int getInt(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public long getLong(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public byte[] getByteArray(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public boolean getBoolean(java.lang.String attName) throws WrongAttributeTypeException, AttributeNotFoundException
attName
- is the name of the attribute to be retrieved
WrongAttributeTypeException
- if the attribute exists but the type is wrong
AttributeNotFoundException
public void clearAll()
public int numberOfAttributes()
public java.lang.Object get(java.lang.String attName)
public void remove(java.lang.String attName)
public void put(java.lang.String attName, java.lang.String value)
public void put(java.lang.String attName, double value)
public void put(java.lang.String attName, float value)
public void put(java.lang.String attName, boolean value)
public void put(java.lang.String attName, byte[] value)
public void put(java.lang.String attName, java.lang.Object value)
attName
- value
- public void put(java.lang.String attName, java.lang.Object[] arrayValue)
attName
- value
- public void put(java.lang.String attName, int value)
public void put(java.lang.String attName, long value)
public java.util.Iterator getAttributeNamesIterator()
public boolean containsAttribute(java.lang.String name)
public java.lang.String toString()
toString
in class GenericMessage
public void setXMLTextContent(java.lang.String content)
setXMLTextContent
in interface MessageInterface
setXMLTextContent
in class GenericMessage
content
- is the new XML format contnet in the form of a Stringpublic java.lang.String getXMLTextContent()
getXMLTextContent
in interface MessageInterface
getXMLTextContent
in class GenericMessage
public void setDateCreated(java.util.Date newDate)
newDate
- is the original creation date of the object.public void setID(long originalId)
originalId
- is the original id of this eventprotected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |