HOME

com.ireasoning.protocol.tl1
Class TL1Field

java.lang.Object
  extended bycom.ireasoning.protocol.tl1.TL1Field
All Implemented Interfaces:
Serializable

public class TL1Field
extends Object
implements Serializable

This class represents fields in the TL1 payload data. For instance, for a TL1 response message :

   NODE 2000-05-09 17:32:36
M  1 COMPLD
   "SLOT-3:E1000:CARDNAME=E1000"

 
In the payload, TL1 fields are "SLOT-3", "E1000", "CARDNAME=E1000"

See Also:
Serialized Form

Constructor Summary
TL1Field(String field)
          Constructs a new TL1Field with specified field string.
TL1Field(String field, boolean stripQuote)
          Constructs a new TL1Field with specified field string.
 
Method Summary
 String getName()
          Returns the name part of a field.
 String getValue()
          Returns the value part of a field.
 String toString()
          Returns the string representation of this class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TL1Field

public TL1Field(String field)
Constructs a new TL1Field with specified field string. There are two kinds of field, one has the format of "name=value", the other has the format of "name".

Parameters:
field - a TL1 filed string

TL1Field

public TL1Field(String field,
                boolean stripQuote)
Constructs a new TL1Field with specified field string. There are two kinds of field, one has the format of "name=value", the other has the format of "name".

Parameters:
field - a TL1 filed string
stripQuote - true to remove quote
Method Detail

getName

public String getName()
Returns the name part of a field. e.g. for field "serialnumber=123", getName() will return "serialnumber", getValue() will return "123"; for field "location is west", getName() will return "location is west", getValue() will return null.


getValue

public String getValue()
Returns the value part of a field. e.g. for field "serialnumber=123", getName() will return "serialnumber", getValue() will return "123"; for field "location is west", getName() will return "location is west", getValue() will return null.


toString

public String toString()
Returns the string representation of this class


HOME

Copyright © 2002 iReasoning Inc. All Rights Reserved.