ch.sahits.model.java
Class SimpleBean

java.lang.Object
  extended by ch.sahits.model.java.SimpleBean
Direct Known Subclasses:
CollectionBean

public class SimpleBean
extends java.lang.Object

This is a model for a simple bean that holds only primitive types.

Author:
Andi Hotz

Constructor Summary
SimpleBean()
          Default constructor
 
Method Summary
 void addField(java.lang.Class type, java.lang.String name)
          Add a new field to the collection
 boolean equals(java.lang.Object obj)
           
 java.util.List<IBeanField> fields()
          Retrieve a list of all fields
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SimpleBean

public SimpleBean()
Default constructor

Method Detail

addField

public void addField(java.lang.Class type,
                     java.lang.String name)
Add a new field to the collection

Parameters:
type - of the field
name - of the field

fields

public java.util.List<IBeanField> fields()
Retrieve a list of all fields

Returns:
List of IBeanField

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
See Also:
Object.hashCode()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()