|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ldodds.foaf.thinlet.PersonBuilder
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 | |
PersonBuilder()
|
Method Summary | |
void |
addProperty(java.lang.String property,
java.lang.String value)
Adds a property to the person currently being built |
void |
build()
Builds the internal data model based on the information that the user has entered into the user interface. |
void |
updateCurrentPerson(java.lang.String firstname,
java.lang.String surname,
java.lang.String email)
Deprecated. |
boolean |
validate()
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PersonBuilder()
Method Detail |
public void build()
validate
public boolean validate()
Validates the data currently in the builder (mainly the current person) to ensure required fields have been entered. If not then the FOAF export is cancelled, and the user is shown a dialog directing them to fix the errors.
The user interface is also updated to include some visual cues.
public void updateCurrentPerson(java.lang.String firstname, java.lang.String surname, java.lang.String email)
public void addProperty(java.lang.String property, java.lang.String value)
property
- the property namevalue
- the value of the property
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |