fr.jussieu.gla.wasa.samples.magicsquare
Class CellVar

java.lang.Object
  |
  +--fr.jussieu.gla.wasa.core.Var
        |
        +--fr.jussieu.gla.wasa.samples.magicsquare.CellVar

public class CellVar
extends Var

WASA var which maps a cell of a Square business object.

Version:
$Revision: 1.5 $ $Date: 2002/04/17 15:24:08 $
Author:
Florent Selva, Laurent Caillette

Constructor Summary
CellVar(Explorer explorer, Square square, int line, int column)
           
 
Method Summary
protected  java.lang.Object cloneValue()
          Override this method to provide custom cloning operation.
 int getColumn()
          Returns the column of the mapped cell.
 int getLine()
          Returns the line of the mapped cell.
 java.lang.Object getReferencedValue()
          Returns the mapped cell content ( in fact an Integer ).
 void setReferencedValue(java.lang.Object value)
          Sets the mapped cell of the Schedule with value ( in fact, an Integer ).
 
Methods inherited from class fr.jussieu.gla.wasa.core.Var
getError, getExplorer, getName, getRank, hasValueBasedHashCode, incError, incError, incError, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CellVar

public CellVar(Explorer explorer,
               Square square,
               int line,
               int column)
Method Detail

getLine

public int getLine()
Returns the line of the mapped cell.
Returns:
the line of the mapped cell.

getColumn

public int getColumn()
Returns the column of the mapped cell.
Returns:
the column of the mapped cell.

setReferencedValue

public void setReferencedValue(java.lang.Object value)
Sets the mapped cell of the Schedule with value ( in fact, an Integer ).
Overrides:
setReferencedValue in class Var
Following copied from class: fr.jussieu.gla.wasa.core.Var
Parameters:
value - The value to set.

getReferencedValue

public java.lang.Object getReferencedValue()
Returns the mapped cell content ( in fact an Integer ).
Overrides:
getReferencedValue in class Var
Returns:
The mapped cell content ( in fact an Integer )

cloneValue

protected java.lang.Object cloneValue()
Description copied from class: Var
Override this method to provide custom cloning operation. The framework guarantees that it won't be called if value is null.
Overrides:
cloneValue in class Var
Following copied from class: fr.jussieu.gla.wasa.core.Var
Returns:
A clone of value object.
Throws:
java.lang.CloneNotSupportedException - as Object.clone() does.