JSampler
v0.8a

org.jsampler
Class LscpUtils

java.lang.Object
  extended by org.jsampler.LscpUtils

public class LscpUtils
extends java.lang.Object

This class provides a collection of utility methods regarding LSCP protocol.


Method Summary
static java.lang.String[] getCommandList()
          Gets a list of all LSCP commands.
static java.lang.String[] getCompletionPossibilities(java.lang.String cmd)
          Gets all completion possibilities of the specified incomplete LSCP command.
static boolean spellCheck(java.lang.String cmd)
          Determines whether the specified command (or part of a command) is valid LSCP command.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

spellCheck

public static boolean spellCheck(java.lang.String cmd)
Determines whether the specified command (or part of a command) is valid LSCP command.

Parameters:
cmd - The command to be checked.
Returns:
true if cmd is null, empty string, or valid command (or part of a command).

getCompletionPossibilities

public static java.lang.String[] getCompletionPossibilities(java.lang.String cmd)
Gets all completion possibilities of the specified incomplete LSCP command.

Parameters:
cmd - An incomplete command for which all completion possibilities should be returned.
Returns:
All completion possibilities of the specified incomplete LSCP command.
Throws:
java.lang.IllegalStateException - If the specified part of a command is not valid.

getCommandList

public static java.lang.String[] getCommandList()
Gets a list of all LSCP commands.

Returns:
An array containing all LSCP commands.

JSampler
v0.8a

Copyright © 2007 Grigor Iliev. All rights reserved.