com.adventnet.tl1.message
Class TL1Line

java.lang.Object
  |
  +--com.adventnet.tl1.message.TL1Line

public class TL1Line
extends java.lang.Object

This class consists of text that is part of the Text Block in the Output Message. Types of lines are: Quoted Line, Unquoted Line and Commented Line.

See Also:
TL1Param

Field Summary
static byte COMMENTED_LINE
          Constant for commented line type
static byte QUOTED_LINE
          Constant for quoted line type
static byte UNQUOTED_LINE
          Constant for unquoted line type
 
Constructor Summary
TL1Line()
          Default constructor
 
Method Summary
 void addBlock(java.util.Vector param)
          Adds a block (vector of params) to this object's block.
 void addParam(TL1Param param)
          Adds the TL1Param objects to the Vector.
 java.util.Vector getBlock()
          Get the vector of TL1Param objects.
 byte getTL1LineType()
          To get the TL1Line type.
 void setBlock(java.util.Vector block)
          Set the vector of TL1Param objects with the given vector.
 void setCommentText(java.lang.String commentText)
          Set the text string of the commented text line.
 void setTL1LineType(byte type)
          To set the TL1Line type.
 java.lang.String toString()
          To convert object to string.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COMMENTED_LINE

public static byte COMMENTED_LINE
Constant for commented line type

UNQUOTED_LINE

public static byte UNQUOTED_LINE
Constant for unquoted line type

QUOTED_LINE

public static byte QUOTED_LINE
Constant for quoted line type
Constructor Detail

TL1Line

public TL1Line()
Default constructor
Method Detail

setTL1LineType

public void setTL1LineType(byte type)
To set the TL1Line type.

This could be any one of the three bytes , viz those represented by

TL1Line.COMMENTED_LINE ,
TL1Line.UNQUOTED_LINE ,
TL1Line.QUOTED_LINE

Parameters:
type - line type as byte.

getTL1LineType

public byte getTL1LineType()
To get the TL1Line type.

This could be any one of the three bytes , viz those represented by

TL1Line.COMMENTED_LINE ,
TL1Line.UNQUOTED_LINE ,
TL1Line.QUOTED_LINE

Returns:
Returns line type as byte.

getBlock

public java.util.Vector getBlock()
Get the vector of TL1Param objects.
Returns:
vector of TL1Param objects.
See Also:
TL1Param

setBlock

public void setBlock(java.util.Vector block)
Set the vector of TL1Param objects with the given vector.
Parameters:
block - vector of TL1Param objects.
See Also:
TL1Param

addBlock

public void addBlock(java.util.Vector param)
Adds a block (vector of params) to this object's block. This method can be used for quoted line type only .
Parameters:
param - Vector of TL1Param objects that is added.
See Also:
TL1Param

addParam

public void addParam(TL1Param param)
Adds the TL1Param objects to the Vector. This can be used for unquoted line type .
Parameters:
param - TL1Param object.
See Also:
TL1Param

setCommentText

public void setCommentText(java.lang.String commentText)
Set the text string of the commented text line.
Parameters:
commentText - Commented text line as string.

toString

public java.lang.String toString()
To convert object to string.
Overrides:
toString in class java.lang.Object
Returns:
String representation of this object.