public class TCommandValue extends TCommandItem
Modifier and Type | Field and Description |
---|---|
static TCommandValue |
API_VERSION
Constant that represents the "apiversion" command value for the diagnose command.
|
static TCommandValue |
CLOSE
Constant that represents the "close" command value for the cursor command.
|
static TCommandValue |
ECHO
Constant that represents the "echo" command value for the diagnose command.
|
static TCommandValue |
FETCH
Constant that represents the "fetch" command value for the cursor command.
|
static TCommandValue |
FULL_VERSION
Constant that represents the "fullVersion" command value for the diagnose command.
|
static TCommandValue |
OPEN
Constant that represents the "open" command value for the cursor command.
|
static TCommandValue |
PING
Constant that represents the "ping" command value for the diagnose command.
|
static TCommandValue |
PREPARED_XQUERY
Constant that represents the "prepared-xquery" command value for the execute command.
|
static TCommandValue |
TIME
Constant that represents the "time" command value for the diagnose command.
|
static TCommandValue |
UPDATE_FRAGMENT
Constant that represents the "update" command value for the xquery update expression.
|
static TCommandValue |
VERSION
Constant that represents the "version" command value for the diagnose command.
|
Constructor and Description |
---|
TCommandValue(java.lang.String value)
Initializes the TCommandValue with a string.
|
TCommandValue(TStreamable streamable)
Initializes the TCommandValue with a TStreamable instance.
|
Modifier and Type | Method and Description |
---|---|
TStreamable |
getStreamableValue()
Returns the streamable value if one is given, null otherwise.
|
boolean |
hasStreamableValue()
Indicates if the command value contains a streamable value, false otherwise.
|
void |
takeVisitor(TCommandItemVisitor visitor)
Takes a TCommandItemVisitor and tells it that it wants to be visited.
|
java.lang.String |
toString()
Returns the string representation of the underlyling value.
|
getValue
public static final TCommandValue OPEN
public static final TCommandValue CLOSE
public static final TCommandValue FETCH
public static final TCommandValue PING
public static final TCommandValue ECHO
public static final TCommandValue TIME
public static final TCommandValue VERSION
public static final TCommandValue FULL_VERSION
public static final TCommandValue UPDATE_FRAGMENT
public static final TCommandValue API_VERSION
public static final TCommandValue PREPARED_XQUERY
public TCommandValue(java.lang.String value)
public TCommandValue(TStreamable streamable)
public void takeVisitor(TCommandItemVisitor visitor)
takeVisitor
in class TCommandItem
the
- TCommandItemVisitor that shall visit this instance.public TStreamable getStreamableValue()
public boolean hasStreamableValue()
public java.lang.String toString()
toString
in class TCommandItem
Copyright (c) 2017 Software AG. All Rights Reserved.