public abstract class ServerCommand
extends java.lang.Object
Constructor and Description |
---|
ServerCommand() |
Modifier and Type | Method and Description |
---|---|
static ServerCommand |
getCommandObjectFor(java.lang.String commandName,
java.lang.String commandContent)
Factory method for obtaining command objects, given a command name and the corresponding command options in texutal format
|
static ServerCommand |
getCommandObjectFrom(java.lang.String commandText)
Factory method for obtaining command objects, given a fulltext command such as "ASSERT R,R(...)" or "CMD(...)CMD(...)"
|
abstract java.lang.String |
getCommandParametersText()
Gets the full textual representation of the command's parameters
|
abstract java.lang.String |
getFullCommandText()
Gets the full textual representation of the command
|
java.lang.String |
toString() |
public static ServerCommand getCommandObjectFor(java.lang.String commandName, java.lang.String commandContent) throws NotFoundException, IllegalServerCommandException
commandName
- The name, or alias, of the command. Must be the name (/language keyword) for one of the 'single' assignment commands, or for a non-assignment command. Multiple Assignment command objects cannot be obtained using this method.commandContent
- The command options to be represented in the returned ServerCommand objectNotFoundException
- if commandName was not a valid language keywordIllegalServerCommandException
- if the commandContent was invalid for the commandName givenpublic static ServerCommand getCommandObjectFrom(java.lang.String commandText) throws NotFoundException, IllegalServerCommandException
commandText
- A complete SIRA_PRISE commandNotFoundException
- -IllegalServerCommandException
- -public abstract java.lang.String getFullCommandText()
public abstract java.lang.String getCommandParametersText()
public final java.lang.String toString()
toString
in class java.lang.Object