|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.sf.spif.example.Person
A example model object. This one is the main object of an edit bubble.
Constructor Summary | |
Person(PersonId id)
Re-create an existing person. |
|
Person(java.lang.String name)
Create a person and assign a unique id in some way I am not going into here. |
Method Summary | |
void |
addChild(PersonId childId)
|
boolean |
equals(java.lang.Object object)
Identity is determined by id |
Address |
getAddress()
|
java.util.Iterator |
getChildIterator()
Returns a read-only iterator of the children of this person |
java.util.Iterator |
getChildren()
Returns an iterator of the ids of the children of this class. |
PersonId |
getId()
|
java.lang.String |
getName()
|
PersonReport |
getReport()
A persistent edit bubble may well contain non-persistent objects |
int |
hashCode()
And don't forget the hash code |
boolean |
removeChild(PersonId childId)
|
void |
setAddress(Address address)
(The address is a dependent object - part of the same edit bubble) |
void |
setName(java.lang.String name)
|
void |
setPersonReport(PersonReport report)
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Person(PersonId id)
public Person(java.lang.String name)
Method Detail |
public PersonId getId()
public void setName(java.lang.String name)
public java.lang.String getName()
public void setAddress(Address address)
public Address getAddress()
public java.util.Iterator getChildren()
public void addChild(PersonId childId)
public java.util.Iterator getChildIterator()
public boolean removeChild(PersonId childId)
public PersonReport getReport()
public void setPersonReport(PersonReport report)
public boolean equals(java.lang.Object object)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |