com.apama.eda
Event Header


Utility event to work with EDA headers.

Example usage:

 Header hu := Header(myDictionary); //create Header event to add header into myDictionary
hu.setStart(1399544103.0); //set Start header
hu.setKindEvent(); //set value of Kind header to "Event"
hu.setType("{http://namespaces.softwareag.com/EDA/WebM/PlatformManagement/1.0}ProductInventoryChange");
hu.setFormatVersion("9.0");

Member summary
 dictionary<stringstring>headers

Dictionary which holds standard headers, custom headers and filterable properties.
 
Action summary
 stringgetCorrelationID()

Returns the value of CorrelationID header.
 floatgetEnd()

Returns the value of End header as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Only the first three fractional digits of seconds are considered. Returns NaN if value is invalid or not present.
 stringgetEndAsString()

Returns the value of End header if present else empty string. The action does not perform validation of date-time string.
 stringgetEventID()

Returns the value of EventID header.
 stringgetFormatVersion()

Returns the FormatVersion header if present.
 stringgetProducerID()

Returns the value of ProducerID header.
 floatgetStart()

Returns the value of Start header as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Only the first three fractional digits of seconds are considered. Returns NaN if value is invalid or not present.
 stringgetStartAsString()

Returns the value of Start header as date-time string if present else empty string. The action does not perform validation of date-time string.
 stringgetType()

Returns the value of type header.
 stringgetUserID()

Returns the value of UserID header if present.
 stringgetVersion()

Returns the value of Version header.
 booleanhasCorrelationID()

Checks if the CorrelationID header is present.
 booleanhasEnd()

Checks if End header is present. The action does not perform validation of date-time string.
 booleanhasEventID()

Checks if EventID header is present.
 booleanhasFormatVersion()

Checks if FormatVersion header is present.
 booleanhasKind()

Checks if Kind header is present. The action does not perform validation of header value.
 booleanhasPriority()

Checks if Priority header is present.
 booleanhasProducerID()

Checks if ProducerID header is present.
 booleanhasStart()

Checks if Start header is present. The action does not perform validation of date-time string.
 booleanhasType()

Checks if Type header is present.
 booleanhasUserID()

Checks if UserID header is present.
 booleanhasVersion()

Checks if the Version header is present.
 booleanisKindEvent()

Checks if Kind header is set as Event.
 booleanisKindHeartBeat()

Checks if Kind header is set as Heartbeat.
 booleanisPriorityHigh()

Checks is Priority header is set as High.
 booleanisPriorityNormal()

Checks is Priority header is set as Normal.
 voidremoveCorrelationID()

Removes the CorrelationID header.
 voidremoveEnd()

Removes the End header.
 voidremoveEventID()

Removes the EventID header.
 voidremoveFormatVersion()

Removes the FormatVersion header.
 voidremoveKind()

Removes the Kind header.
 voidremovePriority()

Removes the Priority header.
 voidremoveProducerID()

Removes the ProducerID header.
 voidremoveStart()

Removes the Start header.
 voidremoveType()

Removes the Type header.
 voidremoveUserID()

Removes the UserID header.
 voidremoveVersion()

Removes the Version header.
 voidsetCorrelationID(string value)

Sets the CorrelationID header to specified value.
 voidsetEnd(float time)

Sets the End header to specified time.
 voidsetEndAsString(string endTime)

Sets the End header to specified date time string.
 voidsetEventID(string value)

Sets the EventID to speciified value.
 voidsetFormatVersion(string value)

Sets the FormatVersion header to specified value.
 voidsetKindEvent()

Sets Kind header to Event.
 voidsetKindHeartbeat()

Sets Kind header to Heartbeat.
 voidsetPriorityHigh()

Sets the Priority header to High.
 voidsetPriorityNormal()

Sets the Priority header to Normal.
 voidsetProducerID(string value)

Sets the ProducerID header to specified value.
 voidsetStart(float time)

Sets the Start header to specified time.
 voidsetStartAsString(string startTime)

Sets the Start header to specified date-time string.
 voidsetType(string value)

Sets the type header to specified value.
 voidsetUserID(string value)

Sets the UserID header to specified value.
 voidsetVersion(string value)

Sets the Version header to specified value.
 
Member detail

headers

dictionary<stringstringheaders
Dictionary which holds standard headers, custom headers and filterable properties.
Action detail

getCorrelationID

string getCorrelationID()
Returns the value of CorrelationID header.

getEnd

float getEnd()
Returns the value of End header as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Only the first three fractional digits of seconds are considered. Returns NaN if value is invalid or not present.

getEndAsString

string getEndAsString()
Returns the value of End header if present else empty string. The action does not perform validation of date-time string.

getEventID

string getEventID()
Returns the value of EventID header.

getFormatVersion

string getFormatVersion()
Returns the FormatVersion header if present.

getProducerID

string getProducerID()
Returns the value of ProducerID header.

getStart

float getStart()
Returns the value of Start header as number of seconds and fractional seconds elapsed since midnight, January 1, 1970 UTC. Only the first three fractional digits of seconds are considered. Returns NaN if value is invalid or not present.

getStartAsString

string getStartAsString()
Returns the value of Start header as date-time string if present else empty string. The action does not perform validation of date-time string.

getType

string getType()
Returns the value of type header.

getUserID

string getUserID()
Returns the value of UserID header if present.

getVersion

string getVersion()
Returns the value of Version header.

hasCorrelationID

boolean hasCorrelationID()
Checks if the CorrelationID header is present.

hasEnd

boolean hasEnd()
Checks if End header is present. The action does not perform validation of date-time string.

hasEventID

boolean hasEventID()
Checks if EventID header is present.

hasFormatVersion

boolean hasFormatVersion()
Checks if FormatVersion header is present.

hasKind

boolean hasKind()
Checks if Kind header is present. The action does not perform validation of header value.

hasPriority

boolean hasPriority()
Checks if Priority header is present.

hasProducerID

boolean hasProducerID()
Checks if ProducerID header is present.

hasStart

boolean hasStart()
Checks if Start header is present. The action does not perform validation of date-time string.

hasType

boolean hasType()
Checks if Type header is present.

hasUserID

boolean hasUserID()
Checks if UserID header is present.

hasVersion

boolean hasVersion()
Checks if the Version header is present.

isKindEvent

boolean isKindEvent()
Checks if Kind header is set as Event.

isKindHeartBeat

boolean isKindHeartBeat()
Checks if Kind header is set as Heartbeat.

isPriorityHigh

boolean isPriorityHigh()
Checks is Priority header is set as High.

isPriorityNormal

boolean isPriorityNormal()
Checks is Priority header is set as Normal.

removeCorrelationID

void removeCorrelationID()
Removes the CorrelationID header.

removeEnd

void removeEnd()
Removes the End header.

removeEventID

void removeEventID()
Removes the EventID header.

removeFormatVersion

void removeFormatVersion()
Removes the FormatVersion header.

removeKind

void removeKind()
Removes the Kind header.

removePriority

void removePriority()
Removes the Priority header.

removeProducerID

void removeProducerID()
Removes the ProducerID header.

removeStart

void removeStart()
Removes the Start header.

removeType

void removeType()
Removes the Type header.

removeUserID

void removeUserID()
Removes the UserID header.

removeVersion

void removeVersion()
Removes the Version header.

setCorrelationID

void setCorrelationID(string value)
Sets the CorrelationID header to specified value.
Parameters:
value

setEnd

void setEnd(float time)
Sets the End header to specified time.

The time is converted and stored as date-time string of format YYYY-MM-DDThh:mm:ss.sssTZD. The time zone designator (indicated by TZD) can be either "Z", or "+hh:mm" or "-hh:mm". Only the first three fractional digits of seconds are considered.
Parameters:
time

setEndAsString

void setEndAsString(string endTime)
Sets the End header to specified date time string.

The format of date-time string must be YYYY-MM-DDThh:mm:ss.sssTZD. The time zone designator (indicated by TZD) can be either "Z", or "+hh:mm" or "-hh:mm". The action does not perform validation of date-time string.
Parameters:
endTime

setEventID

void setEventID(string value)
Sets the EventID to speciified value.
Parameters:
value

setFormatVersion

void setFormatVersion(string value)
Sets the FormatVersion header to specified value.
Parameters:
value

setKindEvent

void setKindEvent()
Sets Kind header to Event.

setKindHeartbeat

void setKindHeartbeat()
Sets Kind header to Heartbeat.

setPriorityHigh

void setPriorityHigh()
Sets the Priority header to High.

setPriorityNormal

void setPriorityNormal()
Sets the Priority header to Normal.

setProducerID

void setProducerID(string value)
Sets the ProducerID header to specified value.
Parameters:
value

setStart

void setStart(float time)
Sets the Start header to specified time.

The time is converted and stored as date-time string of format YYYY-MM-DDThh:mm:ss.sssTZD. The time zone designator (indicated by TZD) can be either "Z", or "+hh:mm" or "-hh:mm". Only the first three fractional digits of seconds are considered.
Parameters:
time

setStartAsString

void setStartAsString(string startTime)
Sets the Start header to specified date-time string.

The format of date-time string must be YYYY-MM-DDThh:mm:ss.sssTZD. The time zone designator (indicated by TZD) can be either "Z", or "+hh:mm" or "-hh:mm". The action does not perform validation of date-time string.
Parameters:
startTime

setType

void setType(string value)
Sets the type header to specified value.
Parameters:
value

setUserID

void setUserID(string value)
Sets the UserID header to specified value.
Parameters:
value

setVersion

void setVersion(string value)
Sets the Version header to specified value.
Parameters:
value