All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.sdi.wap.demo.bean.BeanImpl

java.lang.Object
   |
   +----com.sdi.wap.demo.bean.BeanImpl

public abstract class BeanImpl
extends Object
Abstract superclass of all bean classes. Provides inheritable support for the validation protocol to its subclasses..


Variable Index

 o message

Constructor Index

 o BeanImpl()
Insert the method's description here.

Method Index

 o getMessage()
Get the error message from a type that might be null.
 o getMessage(Field)
Get the error message from a type that might be null.
 o isValid()
Is this bean in a valid state for saving?
 o isValid(Field[])
Returns true is all values are valid, false if any are invalid.

Variables

 o message
 private transient String message

Constructors

 o BeanImpl
 public BeanImpl()
Insert the method's description here.

Parameters:
type - java.lang.String

Methods

 o getMessage
 public String getMessage()
Get the error message from a type that might be null.

Parameters:
type - com.sdi.field.AbstractType
 o getMessage
 public String getMessage(Field type)
Get the error message from a type that might be null. Fixme: is this used now?

Parameters:
type - com.sdi.field.AbstractType
 o isValid
 public abstract boolean isValid()
Is this bean in a valid state for saving?

Returns:
boolean
 o isValid
 public boolean isValid(Field values[])
Returns true is all values are valid, false if any are invalid.

Parameters:
Field[] - values: array of values to be validated.

All Packages  Class Hierarchy  This Package  Previous  Next  Index