c408h008.common.command
Class OECommandGuard

java.lang.Object
  extended byc408h008.common.command.OECommandGuard

public class OECommandGuard
extends java.lang.Object

Stores the start and end positions of the guarded text and the owning client's id.


Constructor Summary
OECommandGuard()
          Constructs a guard command.
 
Method Summary
 java.lang.String getClientID()
          Gets the client's id.
 int getStartPosition()
          Gets the starting position of the guarded text.
 int getStopPosition()
          Gets the ending position of the guarded text.
 void setClientID(java.lang.String clientID)
          Sets the client's id.
 void setStartPosition(int startPosition)
          Sets the start position of the guarded text.
 void setStopPosition(int stopPosition)
          Sets the ending position of the guarded text.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OECommandGuard

public OECommandGuard()
Constructs a guard command.

Method Detail

getClientID

public java.lang.String getClientID()
Gets the client's id.

Returns:
The owning client's id.

setClientID

public void setClientID(java.lang.String clientID)
Sets the client's id.

Parameters:
clientID - The owning client's id.

getStartPosition

public int getStartPosition()
Gets the starting position of the guarded text.

Returns:
The starting position of guarded text.

getStopPosition

public int getStopPosition()
Gets the ending position of the guarded text.

Returns:
The ending position of guarded text.

setStartPosition

public void setStartPosition(int startPosition)
Sets the start position of the guarded text.

Parameters:
startPosition - The starting position of guarded text.

setStopPosition

public void setStopPosition(int stopPosition)
Sets the ending position of the guarded text.

Parameters:
stopPosition - The ending position of guarded text.