|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sourceforge.jemm.sample.demo1.model.orig.Person
public class Person
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 |
---|
public static final int NO_ACCOUNTS
protected final java.lang.String name
protected Account account
Constructor Detail |
---|
public Person(java.lang.String name)
name
- The name of the person.Method Detail |
---|
public java.lang.String getName()
public void setAccount(Account account)
index
- The index of the new account.account
- The new account to store.public Account getAccount()
index
- The index of the target account.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |