org.sourceforge.jemm.sample.demo1.model.orig
Class Person

java.lang.Object
  extended by org.sourceforge.jemm.sample.demo1.model.orig.Person

public class Person
extends java.lang.Object

Author:
Paul Keeble

Field Summary
protected  Account account
           
protected  java.lang.String name
           
static int NO_ACCOUNTS
          The number of accounts each person holds
 
Constructor Summary
Person(java.lang.String name)
          Create a Person instance.
 
Method Summary
 Account getAccount()
          Return the account referred to by the given index.
 java.lang.String getName()
          Return the name of the account holder.
 void setAccount(Account account)
          Set the account at the given index.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NO_ACCOUNTS

public static final int NO_ACCOUNTS
The number of accounts each person holds

See Also:
Constant Field Values

name

protected final java.lang.String name

account

protected Account account
Constructor Detail

Person

public Person(java.lang.String name)
Create a Person instance.

Parameters:
name - The name of the person.
Method Detail

getName

public java.lang.String getName()
Return the name of the account holder.

Returns:
The account holders name.

setAccount

public void setAccount(Account account)
Set the account at the given index.

Parameters:
index - The index of the new account.
account - The new account to store.

getAccount

public Account getAccount()
Return the account referred to by the given index.

Parameters:
index - The index of the target account.
Returns:
The account at the given index.


Copyright © 2009. All Rights Reserved.