com.sptci.echo2demo
Class InputFormModel

java.lang.Object
  extended by com.sptci.echo2demo.InputFormModel
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable<InputFormModel>, javax.jdo.InstanceCallbacks, javax.jdo.listener.ClearCallback, javax.jdo.listener.DeleteCallback, javax.jdo.listener.LoadCallback, javax.jdo.listener.StoreCallback

public class InputFormModel
extends java.lang.Object
implements javax.jdo.InstanceCallbacks, java.lang.Cloneable, java.lang.Comparable<InputFormModel>, java.io.Serializable

A JavaBean that represents the data represented by InputForm.

Version:
$Id: InputFormModel.java,v 1.1 2006/02/13 23:39:45 rakesh Exp $
Author:
com.sptci.echo2.JDOBeanGenerator 2006-02-09 10:00:15-0600
See Also:
Serialized Form

Field Summary
private  java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes
          Field that represents the checkBoxes field of type checkBoxes
protected  int hash
          The field used to store pre-computed hashCode.
protected static int HASH
          The default value to use as the base for hashCode.
private  java.util.List<ListItem> listBox
          Field that represents the listBox field of type listBox
private  java.beans.PropertyChangeSupport propertyChangeSupport
          The property change event dispatcher.
private  java.util.List<ListItem> selectField
          Field that represents the selectField field of type selectField
private  java.lang.String textArea
          Field that represents the textArea field of type textArea
private  java.lang.String textField
          Field that represents the textField field of type textField
 
Constructor Summary
InputFormModel()
          Default constructor.
InputFormModel(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes, java.util.List<ListItem> listBox, java.util.List<ListItem> selectField, java.lang.String textArea, java.lang.String textField)
          Designated constructor.
 
Method Summary
 void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
          Adds a property change listener to this bean.
 java.lang.Object clone()
          Creates and returns a copy of this object.
 int compareTo(InputFormModel object)
          Implementation of the Comparable interface.
 boolean equals(java.lang.Object object)
          Compare the specified object with this object for equality.
protected  void firePropertyChange(java.lang.String propertyName, java.lang.Object oldValue, java.lang.Object newValue)
          Reports a bound property change to the registerd PropertyChangeListeners.
 java.util.Map<java.lang.String,java.lang.Boolean> getCheckBoxes()
          Returns the value of checkBoxes.
 java.util.List<ListItem> getListBox()
          Returns the value of listBox.
 java.util.List<ListItem> getSelectField()
          Returns the value of selectField.
 java.lang.String getTextArea()
          Returns the value of textArea.
 java.lang.String getTextField()
          Returns the value of textField.
 int hashCode()
          Return a hash code for this object.
 void jdoPostLoad()
          Called after the values are loaded from the data store into this instance.
 void jdoPreClear()
          Called before the values in the instance are cleared.
 void jdoPreDelete()
          Called before the instance is deleted.
 void jdoPreStore()
          Called before the values are stored from this instance to the data store.
 void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
          Removes a property change listener from this bean.
 void setCheckBoxes(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes)
          Sets the value of checkBoxes.
 void setListBox(java.util.List<ListItem> listBox)
          Sets the value of listBox.
 void setSelectField(java.util.List<ListItem> selectField)
          Sets the value of selectField.
 void setTextArea(java.lang.String textArea)
          Sets the value of textArea.
 void setTextField(java.lang.String textField)
          Sets the value of textField.
 java.lang.String toString()
          Return a String representation of the fields of this class.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

HASH

protected static final int HASH
The default value to use as the base for hashCode.

See Also:
Constant Field Values

hash

protected int hash
The field used to store pre-computed hashCode.


checkBoxes

private java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes
Field that represents the checkBoxes field of type checkBoxes


listBox

private java.util.List<ListItem> listBox
Field that represents the listBox field of type listBox


selectField

private java.util.List<ListItem> selectField
Field that represents the selectField field of type selectField


textArea

private java.lang.String textArea
Field that represents the textArea field of type textArea


textField

private java.lang.String textField
Field that represents the textField field of type textField


propertyChangeSupport

private transient java.beans.PropertyChangeSupport propertyChangeSupport
The property change event dispatcher. This object is lazily loaded.

Constructor Detail

InputFormModel

public InputFormModel()
Default constructor. Uses the designated constructor.


InputFormModel

public InputFormModel(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes,
                      java.util.List<ListItem> listBox,
                      java.util.List<ListItem> selectField,
                      java.lang.String textArea,
                      java.lang.String textField)
Designated constructor. Initialises the fields with the specified values.

Method Detail

toString

public java.lang.String toString()
Return a String representation of the fields of this class. The String representation is returned as an XML document.

Overrides:
toString in class java.lang.Object
Returns:
String An XML representation of the class fields.

equals

public boolean equals(java.lang.Object object)
Compare the specified object with this object for equality. Returns true if the specified object is of the same type as this object, and the values of the fields are equal.

Overrides:
equals in class java.lang.Object
Parameters:
object - The object that is to compared with this object.
Returns:
boolean Returns true if the values of the class fields are the same.

hashCode

public int hashCode()
Return a hash code for this object. Returns a hash code computed from the class fields.

Overrides:
hashCode in class java.lang.Object
Returns:
int The hashCode value.

compareTo

public int compareTo(InputFormModel object)
Implementation of the Comparable interface. Compares this object with the specified object for order. Returns a negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object. The comparison is done by comparing the hashCode() values of the objects.

Specified by:
compareTo in interface java.lang.Comparable<InputFormModel>
Parameters:
object - - The object with which this class is to be compared. No class type checking is done.
Returns:
int - A negative integer, zero, or a positive integer as this object is less than, equal to, or greater than the specified object.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates and returns a copy of this object. Implementation of the Cloneable interface. No special actions are performed. This method simply allows public access to the Object.clone method.

Overrides:
clone in class java.lang.Object
Returns:
Object A clone of this instance.
Throws:
java.lang.CloneNotSupportedException - If the super-class implementation throws an error.

addPropertyChangeListener

public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a property change listener to this bean. Delegates handling to propertyChangeSupport

Parameters:
listener - The listener to add.

removePropertyChangeListener

public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes a property change listener from this bean. Delegates handling to propertyChangeSupport

Parameters:
listener - The listener to be removed.

firePropertyChange

protected void firePropertyChange(java.lang.String propertyName,
                                  java.lang.Object oldValue,
                                  java.lang.Object newValue)
Reports a bound property change to the registerd PropertyChangeListeners. Delegates handling to propertyChangeSupport

Parameters:
propertyName - The name of the changed property.
oldValue - The previous value of the property.
newValue - The present value of the property.

getCheckBoxes

public final java.util.Map<java.lang.String,java.lang.Boolean> getCheckBoxes()
Returns the value of checkBoxes.

Returns:
Map The value of checkBoxes.

setCheckBoxes

public final void setCheckBoxes(java.util.Map<java.lang.String,java.lang.Boolean> checkBoxes)
Sets the value of checkBoxes. Resets hash.

Parameters:
checkBoxes - The value to set.

getListBox

public final java.util.List<ListItem> getListBox()
Returns the value of listBox.

Returns:
List The value of listBox.

setListBox

public final void setListBox(java.util.List<ListItem> listBox)
Sets the value of listBox. Resets hash.

Parameters:
listBox - The value to set.

getSelectField

public final java.util.List<ListItem> getSelectField()
Returns the value of selectField.

Returns:
List The value of selectField.

setSelectField

public final void setSelectField(java.util.List<ListItem> selectField)
Sets the value of selectField. Resets hash.

Parameters:
selectField - The value to set.

getTextArea

public final java.lang.String getTextArea()
Returns the value of textArea.

Returns:
String The value of textArea.

setTextArea

public final void setTextArea(java.lang.String textArea)
Sets the value of textArea. Resets hash.

Parameters:
textArea - The value to set.

getTextField

public final java.lang.String getTextField()
Returns the value of textField.

Returns:
String The value of textField.

setTextField

public final void setTextField(java.lang.String textField)
Sets the value of textField. Resets hash.

Parameters:
textField - The value to set.

jdoPostLoad

public void jdoPostLoad()
Called after the values are loaded from the data store into this instance. InstanceCallbacks method implementation. No actions required by default.

Specified by:
jdoPostLoad in interface javax.jdo.listener.LoadCallback

jdoPreStore

public void jdoPreStore()
Called before the values are stored from this instance to the data store. InstanceCallbacks method implementation. Pre-calculate hash using hashCode().

Specified by:
jdoPreStore in interface javax.jdo.listener.StoreCallback

jdoPreClear

public void jdoPreClear()
Called before the values in the instance are cleared. InstanceCallbacks method implementation. No actions required by default.

Specified by:
jdoPreClear in interface javax.jdo.listener.ClearCallback

jdoPreDelete

public void jdoPreDelete()
Called before the instance is deleted. InstanceCallbacks method implementation. No actions required by default.

Specified by:
jdoPreDelete in interface javax.jdo.listener.DeleteCallback


Copyright © 2006 Sans Pareil Technologies, Inc. All Rights Reserved.