com.ldodds.foaf.thinlet
Class PersonBuilder

java.lang.Object
  |
  +--com.ldodds.foaf.thinlet.PersonBuilder

public class PersonBuilder
extends java.lang.Object

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

Author:
ccslrd

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

PersonBuilder

public PersonBuilder()
Method Detail

build

public void build()
Builds the internal data model based on the information that the user has entered into the user interface. Does not validate any of the data, for this call validate

validate

public boolean validate()
Deprecated.  

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.


updateCurrentPerson

public void updateCurrentPerson(java.lang.String firstname,
                                java.lang.String surname,
                                java.lang.String email)
Deprecated.  


addProperty

public void addProperty(java.lang.String property,
                        java.lang.String value)
Adds a property to the person currently being built
Parameters:
property - the property name
value - the value of the property