nl.openedge.baritus.population
Class IgnoreFieldPopulator

java.lang.Object
  extended bynl.openedge.baritus.population.IgnoreFieldPopulator
All Implemented Interfaces:
FieldPopulator

public final class IgnoreFieldPopulator
extends java.lang.Object
implements FieldPopulator

Ignores the population of fields. Register IgnoreFieldPopulators if you want to ignore the population of certain properties, for instance id's of persistent objects.

Author:
Eelco Hillenius

Constructor Summary
IgnoreFieldPopulator()
          construct.
IgnoreFieldPopulator(boolean fail)
          construct with parameter fail
 
Method Summary
 boolean isFail()
          get the value of property fail
 void setFail(boolean b)
          set the value of property fail
 boolean setProperty(org.infohazard.maverick.flow.ControllerContext cctx, FormBeanContext form, java.lang.String name, java.lang.Object value)
          Does nothing at all.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnoreFieldPopulator

public IgnoreFieldPopulator()
construct. fail is false


IgnoreFieldPopulator

public IgnoreFieldPopulator(boolean fail)
construct with parameter fail

Parameters:
fail - If fail == true, setProperty will allways return false, and thus the population process is flagged as failed, if fail == false, setProperty will allways return true, and thus has no effect on the total population.
Method Detail

setProperty

public boolean setProperty(org.infohazard.maverick.flow.ControllerContext cctx,
                           FormBeanContext form,
                           java.lang.String name,
                           java.lang.Object value)
                    throws java.lang.Exception
Does nothing at all. Register IgnoreFieldPopulators if you want to ignore the population of certain properties, for instance id's of persistent objects.

Specified by:
setProperty in interface FieldPopulator
Parameters:
cctx - maverick context
form - context with instance of the form to set the property on
name - name of the property
value - unconverted value to set
Returns:
boolean true if the property was set successfully, false otherwise
Throws:
java.lang.Exception

isFail

public boolean isFail()
get the value of property fail

Returns:
boolean value of property fail. By default fail == false, which means that this method allways returns true. If you set fail to true, this method will allways return false, and thus the population process is flagged as failed.

setFail

public void setFail(boolean b)
set the value of property fail

Parameters:
b - value of property fail. By default fail == false, which means that this method allways returns true. If you set fail to true, this method will allways return false, and thus the population process is flagged as failed.


Copyright © 2003-2004 Open Edge. All Rights Reserved.