com.eventgnosis.types
Class Event

java.lang.Object
  extended bycom.eventgnosis.types.Event

public class Event
extends java.lang.Object

The class that encapsulates individual events flowing thru the system.
This is the common data representation for all ECS events;


Constructor Summary
Event()
          Default constructor
 
Method Summary
 Event copy()
          Copies event, including creation time, but execute deep copy on XmlRep so separate changes will not affect original copy or vice-versa
static com.eventgnosis.types.HAL extractHal(XmlRep xml)
           
 java.sql.Timestamp getCreationTime()
           
 com.eventgnosis.types.HAL getHal()
           
 XmlRep getXml()
          Gets XmlRep class instance that contains methods for adding, removing, editing Event fields ...
static Event makeEvent(com.eventgnosis.sources.EventSourceAdapter esa, com.eventgnosis.types.HAL hal)
          Creates new event form given input parameters.
 void setSpecialCharsConverted(boolean conv)
           
 void setXml(XmlRep xml)
           
 boolean specialCharsConverted()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Event

public Event()
Default constructor

Method Detail

copy

public Event copy()
Copies event, including creation time, but execute deep copy on XmlRep so separate changes will not affect original copy or vice-versa

Returns:
- copy of Event

extractHal

public static com.eventgnosis.types.HAL extractHal(XmlRep xml)

getCreationTime

public java.sql.Timestamp getCreationTime()

getHal

public com.eventgnosis.types.HAL getHal()

getXml

public XmlRep getXml()
Gets XmlRep class instance that contains methods for adding, removing, editing Event fields ...

Returns:
- instance of com.eventgnosis.types.XmlRep

makeEvent

public static Event makeEvent(com.eventgnosis.sources.EventSourceAdapter esa,
                              com.eventgnosis.types.HAL hal)
Creates new event form given input parameters.

Parameters:
esa - - instance of EventSourceAdapter
hal - - instance of HAL (Host, Application, Log Name)
Returns:
- new Event

setSpecialCharsConverted

public void setSpecialCharsConverted(boolean conv)

setXml

public void setXml(XmlRep xml)

specialCharsConverted

public boolean specialCharsConverted()

toString

public java.lang.String toString()