com.ireasoning.protocol.tl1
Class TL1Field
java.lang.Object
|
+--com.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. |
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 stringstripQuote
- true to remove quote
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
- Overrides:
toString
in class Object
Copyright © 2002 iReasoning Inc. All Rights Reserved.