public class TplGet extends TplCommand
TplEvent.| Modifier and Type | Field and Description |
|---|---|
private Object |
datastate
The state of the value, null OK or ERROR
|
static String |
GET
The get command string.
|
static String |
INLINE
The state of the reply for incoming data.
|
private String |
lead
The requested object.
|
private Object |
value
The value of the requested variable.
|
| Constructor and Description |
|---|
TplGet(int id,
String query)
Constructs a new get command specifiying the object to retrieve.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getCommandLead()
Returns the query string.
|
Object |
getDataState()
Returns the state of the data field.
|
Object |
getValue()
Returns the return value of the TPL GET command.
|
boolean |
parseTplEvent(TplEvent reply)
Additionally checks if the event represents the queried data.
|
commenceCommand, getCommencedWhen, getID, getInfo, getState, hashCode, isAcknowledged, isCompleted, isSending, setInfo, setState, toStringpublic static final String GET
public static final String INLINE
private Object value
private Object datastate
private String lead
public TplGet(int id,
String query)
public String getCommandLead()
GET and a space.getCommandLead in class TplCommandpublic Object getDataState()
TplCommand.OK or TplCommand.ERROR.public Object getValue()
public boolean parseTplEvent(TplEvent reply) throws ParseException
parseTplEvent in class TplCommandParseException