server.framework.network.parser
Class ActionPair

java.lang.Object
  extended by server.framework.network.parser.ActionPair

public class ActionPair
extends java.lang.Object

A wrapper class that consist of an Action enum and the action's corresponding values.

Author:
Martin Jarrett, Eivind Sorteberg

Constructor Summary
ActionPair(Action action, java.lang.String[][] values)
          Creates a new wrapper object with the specified contents.
 
Method Summary
 Action getAction()
           
 java.lang.String[][] getValues()
           
 void setValues(java.lang.String[][] values)
          Sets the values of the wrapper to the specified values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ActionPair

public ActionPair(Action action,
                  java.lang.String[][] values)
Creates a new wrapper object with the specified contents.

Parameters:
action - The action identifier.
values - The action's corresponding values.
Method Detail

getAction

public Action getAction()
Returns:
The wrapper's action.

getValues

public java.lang.String[][] getValues()
Returns:
The wrapper's values.

setValues

public void setValues(java.lang.String[][] values)
Sets the values of the wrapper to the specified values.

Parameters:
values - The values corresponding to the wrapper's action.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
A string representation of the wrapper, corresponding to the specified message format.