com.adventnet.tl1.message
Class TL1Header

java.lang.Object
  extended by com.adventnet.tl1.message.TL1Header

public class TL1Header
extends java.lang.Object

This class represents a TL1 Header block containing information common to all Output (Reponse as well as Autonomous) Messages. It consists of the source identifier, Date and Time. The source identifier identifies the NE from which the response was sent. The Date and Time (represented by TL1Date and TL1Time respectively) represent the day and time at which the Output Message was constructed.

TL1 Header block

See Also:
TL1Date, TL1Time

Constructor Summary
TL1Header()
          Constructor for TL1Header.
TL1Header(java.lang.String sourceIdentifier)
          Constructor for TL1Header , with the given source identifier.
 
Method Summary
 TL1Date getDate()
          Get the TL1Date object.
 java.lang.String getSourceId()
          Get the source identifier in the Message.
 TL1Time getTime()
          Get the time field as an object.
 void setDate(TL1Date date)
          Set the date field with the given object.
 void setSourceId(java.lang.String sourceIdentifier)
          Set the source identifier with the given value.
 void setTime(TL1Time time)
          Set the time field with the given object.
 java.lang.String toString()
          Converts object to string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TL1Header

public TL1Header()
Constructor for TL1Header.


TL1Header

public TL1Header(java.lang.String sourceIdentifier)
Constructor for TL1Header , with the given source identifier.

Parameters:
sourceIdentifier - String representing source identifier.
Method Detail

getSourceId

public java.lang.String getSourceId()
Get the source identifier in the Message.

Returns:
String representing the source identifier.

setSourceId

public void setSourceId(java.lang.String sourceIdentifier)
Set the source identifier with the given value.

Parameters:
sourceIdentifier - String representing the source identifier.

getDate

public TL1Date getDate()
Get the TL1Date object.

Returns:
TL1Date object.
See Also:
TL1Date

setDate

public void setDate(TL1Date date)
Set the date field with the given object.

Parameters:
date - TL1Date object to set.
See Also:
TL1Date

getTime

public TL1Time getTime()
Get the time field as an object.

Returns:
TL1Time object.
See Also:
TL1Time

setTime

public void setTime(TL1Time time)
Set the time field with the given object.

Parameters:
time - TL1Time object.
See Also:
TL1Time

toString

public java.lang.String toString()
Converts object to string.

Overrides:
toString in class java.lang.Object
Returns:
String representation of this object.