org.switchboard
Class FoafFile

java.lang.Object
  extended by HttpClient
      extended by org.switchboard.browser.Browser
          extended by org.switchboard.FoafFile
All Implemented Interfaces:
TreeModel

public class FoafFile
extends Browser


Constructor Summary
FoafFile(String sUrl)
           
 
Method Summary
 String getDepiction()
          Gets the URL of a picture in the FOAF file if it exists.
 String getFamilyName()
          Gets the family name in the FOAF file if it exists.
 FoafFriend[] getFriends()
          Gets the friends listed in a FoafFile
 String getGivenName()
          Gets the given name in the FOAF file if it exists.
 String getHomepage()
          Gets the hompage in the FOAF file if it exists.
 String getMBox()
          Gets the email address in the FOAF file if it exists.
 String getMboxSha1Sum()
          Gets the hash of the email address in the FOAF file if it exists.
 String getName()
          Gets the name in the FOAF file if it exists.
 String getNick()
          Gets the nickname in the FOAF file if it exists.
 FoafFile getParent()
          Gets a reference to the FOAF file from which this file was spawned.
 String getPhone()
          Gets the phone number in the FOAF file if it exists.
 String getSchoolHomepage()
          Gets the school hompage in the FOAF file if it exists.
 String getWorkplaceHomepage()
          Gets the work hompage in the FOAF file if it exists.
 boolean hasParent()
          Returns true if this FOAF was spawned from another FOAF file.
 void setParent(FoafFile parent)
          Sets the parent of this FOAF file.
 
Methods inherited from class org.switchboard.browser.Browser
addCookie, addCookie, addListener, addTreeModelListener, clearCookies, getAcceptCookies, getChild, getChildCount, getImages, getIndexOfChild, getLinks, getRoot, getSentences, getTitle, getURL, isLeaf, main, newHTML, newXML, numImages, open, query, refresh, removeTreeModelListener, save, save, setAcceptCookies, setTag, valueForPathChanged
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FoafFile

public FoafFile(String sUrl)
Method Detail

getParent

public FoafFile getParent()
Gets a reference to the FOAF file from which this file was spawned. Null if this was the original FOAF.

Returns:
The parent FOAF of this FOAF

setParent

public void setParent(FoafFile parent)
Sets the parent of this FOAF file.


hasParent

public boolean hasParent()
Returns true if this FOAF was spawned from another FOAF file. False otherwise.

Returns:
True if this FOAF has a parent. False otherwise.

getName

public String getName()
Gets the name in the FOAF file if it exists. Empty string otherwise.

Returns:
The name in the FOAF file if it exists. Empty string otherwise.

getGivenName

public String getGivenName()
Gets the given name in the FOAF file if it exists. Empty string otherwise.

Returns:
The given name in the FOAF file if it exists. Empty string otherwise.

getFamilyName

public String getFamilyName()
Gets the family name in the FOAF file if it exists. Empty string otherwise.

Returns:
The family name in the FOAF file if it exists. Empty string otherwise.

getNick

public String getNick()
Gets the nickname in the FOAF file if it exists. Empty string otherwise.

Returns:
The nickname in the FOAF file if it exists. Empty string otherwise.

getMboxSha1Sum

public String getMboxSha1Sum()
Gets the hash of the email address in the FOAF file if it exists. Empty string otherwise.

Returns:
The hash of the email address in the FOAF file if it exists. Empty string otherwise.

getMBox

public String getMBox()
Gets the email address in the FOAF file if it exists. Empty string otherwise.

Returns:
The email address in the FOAF file if it exists. Empty string otherwise.

getHomepage

public String getHomepage()
Gets the hompage in the FOAF file if it exists. Empty string otherwise.

Returns:
The hompage in the FOAF file if it exists. Empty string otherwise.

getDepiction

public String getDepiction()
Gets the URL of a picture in the FOAF file if it exists. Empty string otherwise.

Returns:
The URL of a picture in the FOAF file if it exists. Empty string otherwise.

getPhone

public String getPhone()
Gets the phone number in the FOAF file if it exists. Empty string otherwise.

Returns:
The phone number in the FOAF file if it exists. Empty string otherwise.

getWorkplaceHomepage

public String getWorkplaceHomepage()
Gets the work hompage in the FOAF file if it exists. Empty string otherwise.

Returns:
The work hompage in the FOAF file if it exists. Empty string otherwise.

getSchoolHomepage

public String getSchoolHomepage()
Gets the school hompage in the FOAF file if it exists. Empty string otherwise.

Returns:
The school hompage in the FOAF file if it exists. Empty string otherwise.

getFriends

public FoafFriend[] getFriends()
Gets the friends listed in a FoafFile

Returns:
An array of FoafFriends