public class CommandResult extends Object
| Modifier and Type | Field and Description |
|---|---|
private String |
content |
private Long |
timeStamp |
private OutputType |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
CommandResult(OutputType pType)
Create a new command result.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getContent() |
Long |
getTimeStamp() |
OutputType |
getType() |
boolean |
isEmpty() |
protected void |
setContent(String content) |
protected void |
setType(OutputType type) |
String |
toString()
If this CommandResult is a result it will start by
"res:". |
private String content
private final Long timeStamp
private OutputType type
protected CommandResult(OutputType pType)
public boolean isEmpty()
public String toString()
"res:".
Similarly if the result is an error it will start by err:public String getContent()
protected void setContent(String content)
content - The content CommandResult.public OutputType getType()
protected void setType(OutputType type)
type - The CommandResult OutputType.public Long getTimeStamp()
Copyright © 2013–2015 Wisdom Framework. All rights reserved.