psman.data
Class Rule

java.lang.Object
  |
  +--psman.data.Rule

public final class Rule
extends java.lang.Object

The type of transaction rules.

Version:
$Id: Rule.java,v 1.4 2003/11/04 18:00:48 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
Rule(psman.data.Chain chain, int rank, java.lang.String condition, java.lang.String action, java.lang.String parameter)
          Constructor.
Rule(psman.data.Chain chain, java.lang.String condition, java.lang.String action, java.lang.String parameter)
          Constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 boolean equals(psman.data.Rule data)
           
 java.lang.String getAction()
          Return the action of this rule.
 psman.data.Chain getChain()
          Return the chain of this rule.
 java.lang.String getCondition()
          Return the condition of this rule.
 java.lang.String getParameter()
          Return the parameter of this rule.
 int getRank()
          Return the rank of this rule.
 int hashCode()
           
 void setParameter(java.lang.String parameter)
          Set the parameter of this rule.
 void setRank(int rank)
          Set the rank of this rule.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Rule

public Rule(psman.data.Chain chain,
            int rank,
            java.lang.String condition,
            java.lang.String action,
            java.lang.String parameter)
Constructor.

Parameters:
chain - the chain of this rule
rank - the rank of this rule
condition - the condition method of this rule, specified as class.method
action - the action method of this rule, specified as class.method or ACCEPT, WARN, REJECT
parameter - an additional parameter for this rule

Rule

public Rule(psman.data.Chain chain,
            java.lang.String condition,
            java.lang.String action,
            java.lang.String parameter)
Constructor.

Parameters:
chain - the chain of this rule
condition - the condition method of this rule, specified as class.method
action - the action method of this rule, specified as class.method or ACCEPT, WARN, REJECT
parameter - an additional parameter for this rule
Method Detail

getChain

public psman.data.Chain getChain()
Return the chain of this rule.

Returns:
the chain of this rule

getRank

public int getRank()
Return the rank of this rule.

Returns:
the rank of this rule

setRank

public void setRank(int rank)
Set the rank of this rule.

Parameters:
rank - the rank of this rule

getCondition

public java.lang.String getCondition()
Return the condition of this rule.

Returns:
the condition of this rule

getAction

public java.lang.String getAction()
Return the action of this rule.

Returns:
the action of this rule

getParameter

public java.lang.String getParameter()
Return the parameter of this rule.

Returns:
the parameter of this rule

setParameter

public void setParameter(java.lang.String parameter)
Set the parameter of this rule.

Parameters:
parameter - the parameter of this rule

equals

public boolean equals(psman.data.Rule data)

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 DRIM Team. All Rights Reserved.