psman.data
Class Chain

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

public final class Chain
extends java.lang.Object

The chain of rules.

Version:
$Id: Chain.java,v 1.2 2003/11/03 16:08:55 tk4 Exp $
Author:
Martin Godisch

Constructor Summary
Chain(int id, java.lang.String name)
          Constructor, only for existing chains.
Chain(java.lang.String name)
          Constructor, only for new chains.
 
Method Summary
 boolean equals(psman.data.Chain data)
           
 boolean equals(java.lang.Object o)
           
 int getID()
          Return the database ID of this chain.
 java.lang.String getName()
          Return the name of this chain.
 int hashCode()
           
 void setID(int id)
          Set the database ID of this chain.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Chain

public Chain(int id,
             java.lang.String name)
Constructor, only for existing chains.

Parameters:
id - the database ID of this chain
name - the name of this chain

Chain

public Chain(java.lang.String name)
Constructor, only for new chains.

Parameters:
name - the name of this chain
Method Detail

getID

public int getID()
Return the database ID of this chain.

Returns:
the database ID of this chain

getName

public java.lang.String getName()
Return the name of this chain.

Returns:
the name of this chain

setID

public void setID(int id)
Set the database ID of this chain.

Parameters:
id - the database ID of this chain.

equals

public boolean equals(psman.data.Chain 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.