src.server
Class ServerQueryRule

java.lang.Object
  extended bysrc.server.QueryRule
      extended bysrc.server.ServerQueryRule

public class ServerQueryRule
extends QueryRule

A QueryRule that describes rules used by operations that should be directly performed by the server.

Version:
2005-apr-27

Constructor Summary
ServerQueryRule(java.lang.String regexpPattern, java.lang.String[] keys, int opCode)
          Constructor for ModuleQueryRule.
 
Method Summary
 int getOpCode()
          Gets the server operation code that is connected to the rule.
 
Methods inherited from class src.server.QueryRule
getResult, matches, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ServerQueryRule

public ServerQueryRule(java.lang.String regexpPattern,
                       java.lang.String[] keys,
                       int opCode)
Constructor for ModuleQueryRule.

Parameters:
regexpPattern - The regexp pattern which descibes what queries that should match the rule.
opCode - The server operation code connected to the rule.
Method Detail

getOpCode

public int getOpCode()
Gets the server operation code that is connected to the rule.

Returns:
An operation code (defined by ServerQuery).