|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ldodds.foafamatic.PersonManager
Responsible for building people data, based on user input
This class walks through the fields in the user interface to generate an internal representation of the personal data entered by the user. This data can then be used to validate the input.
This code is Public Domain
Constructor Summary | |
PersonManager()
|
Method Summary | |
com.ldodds.foaf.Person |
build()
Builds the internal data model based on the information that the user has entered into the user interface. |
java.util.List |
getErrors()
Asks the object for validation errors. |
void |
populate(com.ldodds.foaf.Person person)
|
boolean |
validate()
Validates the data from the personal user forms, ensuring that required fields have been populated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersonManager()
Method Detail |
public com.ldodds.foaf.Person build()
validate
public void populate(com.ldodds.foaf.Person person)
public boolean validate()
Validates the data from the personal user forms, ensuring that required fields have been populated.
validate
in interface Validatable
true
is the object is valid.public java.util.List getErrors()
Validatable
getErrors
in interface Validatable
Validatable.getErrors()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |