com.ldodds.foaf
Class PersonBeanFactory

java.lang.Object
  |
  +--com.ldodds.foaf.PersonBeanFactory

public class PersonBeanFactory
extends java.lang.Object

Create and populate Person objects from a Jena Model. Most of the work is delegated to other classes in this package

Author:
ldodds
See Also:
PersonPopulator, PersonUtils, Person

Constructor Summary
PersonBeanFactory(Model model)
           
 
Method Summary
 Resource findPrimaryResource()
           
 java.util.List getFriends()
           
 com.ldodds.foaf.Person getPrimaryPerson()
          Finds the "primary" person associated with a given model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersonBeanFactory

public PersonBeanFactory(Model model)
Method Detail

getFriends

public java.util.List getFriends()

getPrimaryPerson

public com.ldodds.foaf.Person getPrimaryPerson()
Finds the "primary" person associated with a given model. This is the foaf:maker or, failing that, the dc:creator resource


findPrimaryResource

public Resource findPrimaryResource()