Changes between Initial Version and Version 1 of DeveloperGuidelines


Ignore:
Timestamp:
07/05/07 16:20:59 (13 years ago)
Author:
fmittag
Comment:

initial version

Legend:

Unmodified
Added
Removed
Modified
  • DeveloperGuidelines

    v1 v1  
     1= Developer Guidelines = 
     2 
     3== The wrapper class Person == 
     4 
     5'''All''' access to a persons FOAF data '''must''' be done through this class. 
     6 
     7Values are set through the set-methods and read through the get-methods. How the set-method itself is implemented depends on the property and the desired behaviour. For example, a person can only have one firstname, so setting this value will look like: 
     8 
     9{{{ 
     10    public void setFirstName(String firstName) { 
     11        RDFTool.setSingleValue(person, FOAF.firstName, firstName); 
     12    } 
     13}}} 
     14 
     15The implementation of the static method RDFTool.setSingleValue will ensure, that there is only one value for this property. If the passed String object is null, the statement will be removed completely. 
     16 
     17On the other hand, some properties allow multiple values, like '''mbox''' (one person can have multiple eMail addresses). This has to be implemented differently. 
     18 
     19Retrieving values should also be done through usage of the RDFTool methods, because this way the handling of non-existing statements only has to be done once. 
     20