com.adventnet.tl1.message
Class TL1TextBlock

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

public class TL1TextBlock
extends java.lang.Object

This class represents a Text Block object which is part of the Output (Response or Autonomous) Message generated and sent from the TL1 NE (device) to the TL1 Manager.

TL1 Text Block in Response Message

TL1 Text Block in Autonomous Message

It is used to represent information specific to the particular Autonomous Mesage or Response Message and consists of one or more TL1 Line which may be either Quoted Line, Unquoted Line or Commented Line.

See Also:
TL1Line

Constructor Summary
TL1TextBlock()
          Constructor that creates an instance of the TL1TextBlock object.
 
Method Summary
 void addTL1Line(TL1Line line)
          Adds a TL1Line object to outputText vector.
 void appendTextBlock(TL1TextBlock textBlk)
          Appends the given text block's outputText to this TextBlock's outputText vector.
 java.util.Vector getTL1LineList()
          Gets the outputText as a vector of TL1Line.
 boolean removeTL1Line(TL1Line line)
          To remove a TL1Line object from the output text vector.
 void setText(java.lang.String text)
          To form a text block with the given text.
 void setTL1LineList(java.util.Vector outputText)
          Sets the outputText with the given vector object.
 java.lang.String toString()
          Returns the stringified form of this Text Block object.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TL1TextBlock

public TL1TextBlock()
Constructor that creates an instance of the TL1TextBlock object.
Method Detail

getTL1LineList

public java.util.Vector getTL1LineList()
Gets the outputText as a vector of TL1Line.
Returns:
Vector of TL1Line.

setTL1LineList

public void setTL1LineList(java.util.Vector outputText)
Sets the outputText with the given vector object.
Parameters:
outputText - Vector of TL1Line objects.

setText

public void setText(java.lang.String text)
To form a text block with the given text.
Parameters:
text - String object of the Text block to be formed.

addTL1Line

public void addTL1Line(TL1Line line)
Adds a TL1Line object to outputText vector.
Parameters:
line - TL1Line object
See Also:
TL1Line

removeTL1Line

public boolean removeTL1Line(TL1Line line)
To remove a TL1Line object from the output text vector.
Parameters:
line - TL1Line object.
See Also:
TL1Line

appendTextBlock

public void appendTextBlock(TL1TextBlock textBlk)
Appends the given text block's outputText to this TextBlock's outputText vector.
Parameters:
textBlk - TextBlock object whose output Text is to be appended to this TextBlock's output text.
See Also:
TL1TextBlock

toString

public java.lang.String toString()
Returns the stringified form of this Text Block object.
Overrides:
toString in class java.lang.Object
Returns:
String representation of this objects.