facebook4j.json
Class DataObjectFactory

java.lang.Object
  extended by facebook4j.json.DataObjectFactory

public final class DataObjectFactory
extends java.lang.Object

Author:
Ryuji Yamashita - roundrop at gmail.com

Field Summary
private static java.lang.reflect.Constructor<Account> accountConstructor
           
private static java.lang.reflect.Constructor<Achievement> achievementConstructor
           
private static java.lang.reflect.Constructor<Activity> activityConstructor
           
private static java.lang.reflect.Constructor<Admin> adminConstructor
           
private static java.lang.reflect.Constructor<Album> albumConstructor
           
private static java.lang.reflect.Constructor<Book> bookConstructor
           
private static java.lang.reflect.Constructor<Category> categoryConstructor
           
private static java.lang.reflect.Constructor<Checkin> checkinConstructor
           
private static java.lang.reflect.Constructor<Comment> commentConstructor
           
private static java.lang.reflect.Constructor<Domain> domainConstructor
           
private static java.lang.reflect.Constructor<Event> eventConstructor
           
private static java.lang.reflect.Constructor<Family> familyConstructor
           
private static java.lang.reflect.Constructor<Friend> friendConstructor
           
private static java.lang.reflect.Constructor<Friendlist> friendlistConstructor
           
private static java.lang.reflect.Constructor<FriendRequest> friendRequestConstructor
           
private static java.lang.reflect.Constructor<Game> gameConstructor
           
private static java.lang.reflect.Constructor<Group> groupConstructor
           
private static java.lang.reflect.Constructor<GroupDoc> groupDocConstructor
           
private static java.lang.reflect.Constructor<GroupMember> groupMemberConstructor
           
private static java.lang.reflect.Constructor<Insight> insightConstructor
           
private static java.lang.reflect.Constructor<Interest> interestConstructor
           
private static java.lang.reflect.Constructor<Like> likeConstructor
           
private static java.lang.reflect.Constructor<Link> linkConstructor
           
private static java.lang.reflect.Constructor<Location> locationConstructor
           
private static java.lang.reflect.Constructor<Message> messageConstructor
           
private static java.lang.reflect.Constructor<Milestone> milestoneConstructor
           
private static java.lang.reflect.Constructor<Movie> movieConstructor
           
private static java.lang.reflect.Constructor<Music> musicConstructor
           
private static java.lang.reflect.Constructor<Note> noteConstructor
           
private static java.lang.reflect.Constructor<Notification> notificationConstructor
           
private static java.lang.reflect.Constructor<Offer> offerConstructor
           
private static java.lang.reflect.Constructor<Page> pageConstructor
           
private static java.lang.reflect.Constructor<PageSetting> pageSettingConstructor
           
private static java.lang.reflect.Constructor<Photo> photoConstructor
           
private static java.lang.reflect.Constructor<Place> placeConstructor
           
private static java.lang.reflect.Constructor<Poke> pokeConstructor
           
private static java.lang.reflect.Constructor<Post> postConstructor
           
private static java.lang.reflect.Constructor<Question> questionConstructor
           
private static java.lang.reflect.Constructor<QuestionVotes> questionVotesConstructor
           
private static java.lang.ThreadLocal<java.util.Map> rawJsonMap
           
private static java.lang.reflect.Constructor<RSVPStatus> rsvpStatusConstructor
           
private static java.lang.reflect.Constructor<Score> scoreConstructor
           
private static java.lang.reflect.Constructor<Subscribedto> subscribedtoConstructor
           
private static java.lang.reflect.Constructor<Subscriber> subscriberConstructor
           
private static java.lang.reflect.Constructor<Tab> tabConstructor
           
private static java.lang.reflect.Constructor<Tag> tagConstructor
           
private static java.lang.reflect.Constructor<Tagged> taggedConstructor
           
private static java.lang.reflect.Constructor<Television> televisionConstructor
           
private static java.lang.reflect.Constructor<User> userConstructor
           
private static java.lang.reflect.Constructor<Video> videoConstructor
           
 
Constructor Summary
private DataObjectFactory()
           
 
Method Summary
(package private) static void clearThreadLocalMap()
          clear raw JSON forms associated with the current thread.
Currently this method is called indirectly by facebook4j.internal.util.DataObjectFactoryUtil, and should be called directly once *JSONImpl classes are migrated to facebook4j.json.* package.
static Account createAccount(java.lang.String rawJSON)
          Constructs a Account object from rawJSON string.
static Achievement createAchievement(java.lang.String rawJSON)
          Constructs a Achievement object from rawJSON string.
static Activity createActivity(java.lang.String rawJSON)
          Constructs a Activity object from rawJSON string.
static Admin createAdmin(java.lang.String rawJSON)
          Constructs a Admin object from rawJSON string.
static Album createAlbum(java.lang.String rawJSON)
          Constructs a Album object from rawJSON string.
static Book createBook(java.lang.String rawJSON)
          Constructs a Book object from rawJSON string.
static Category createCategory(java.lang.String rawJSON)
          Constructs a Category object from rawJSON string.
static Checkin createCheckin(java.lang.String rawJSON)
          Constructs a Checkin object from rawJSON string.
static Comment createComment(java.lang.String rawJSON)
          Constructs a Comment object from rawJSON string.
static Domain createDomain(java.lang.String rawJSON)
          Constructs a Domain object from rawJSON string.
static Event createEvent(java.lang.String rawJSON)
          Constructs a Event object from rawJSON string.
static Family createFamily(java.lang.String rawJSON)
          Constructs a Family object from rawJSON string.
static Friend createFriend(java.lang.String rawJSON)
          Constructs a Friend object from rawJSON string.
static Friendlist createFriendlist(java.lang.String rawJSON)
          Constructs a Friendlist object from rawJSON string.
static FriendRequest createFriendRequest(java.lang.String rawJSON)
          Constructs a FriendRequest object from rawJSON string.
static Game createGame(java.lang.String rawJSON)
          Constructs a Game object from rawJSON string.
static Group createGroup(java.lang.String rawJSON)
          Constructs a Group object from rawJSON string.
static GroupDoc createGroupDoc(java.lang.String rawJSON)
          Constructs a GroupDoc object from rawJSON string.
static GroupMember createGroupMember(java.lang.String rawJSON)
          Constructs a GroupMember object from rawJSON string.
static Insight createInsight(java.lang.String rawJSON)
          Constructs a Insight object from rawJSON string.
static Interest createInterest(java.lang.String rawJSON)
          Constructs a Interest object from rawJSON string.
static Like createLike(java.lang.String rawJSON)
          Constructs a Like object from rawJSON string.
static Link createLink(java.lang.String rawJSON)
          Constructs a Link object from rawJSON string.
static Location createLocation(java.lang.String rawJSON)
          Constructs a Location object from rawJSON string.
static Message createMessage(java.lang.String rawJSON)
          Constructs a Message object from rawJSON string.
static Milestone createMilestone(java.lang.String rawJSON)
          Constructs a Milestone object from rawJSON string.
static Movie createMovie(java.lang.String rawJSON)
          Constructs a Movie object from rawJSON string.
static Music createMusic(java.lang.String rawJSON)
          Constructs a Music object from rawJSON string.
static Note createNote(java.lang.String rawJSON)
          Constructs a Note object from rawJSON string.
static Notification createNotification(java.lang.String rawJSON)
          Constructs a Notification object from rawJSON string.
static Offer createOffer(java.lang.String rawJSON)
          Constructs a Offer object from rawJSON string.
static Page createPage(java.lang.String rawJSON)
          Constructs a Page object from rawJSON string.
static PageSetting createPageSetting(java.lang.String rawJSON)
          Constructs a PageSetting object from rawJSON string.
static Photo createPhoto(java.lang.String rawJSON)
          Constructs a Photo object from rawJSON string.
static Place createPlace(java.lang.String rawJSON)
          Constructs a Place object from rawJSON string.
static Poke createPoke(java.lang.String rawJSON)
          Constructs a Poke object from rawJSON string.
static Post createPost(java.lang.String rawJSON)
          Constructs a Post object from rawJSON string.
static Question createQuestion(java.lang.String rawJSON)
          Constructs a Question object from rawJSON string.
static QuestionVotes createQuestionVotes(java.lang.String rawJSON)
          Constructs a QuestionVotes object from rawJSON string.
static RSVPStatus createRSVPStatus(java.lang.String rawJSON)
          Constructs a RSVPStatus object from rawJSON string.
static Score createScore(java.lang.String rawJSON)
          Constructs a Score object from rawJSON string.
static Subscribedto createSubscribedto(java.lang.String rawJSON)
          Constructs a Subscribedto object from rawJSON string.
static Subscriber createSubscriber(java.lang.String rawJSON)
          Constructs a Subscriber object from rawJSON string.
static Tab createTab(java.lang.String rawJSON)
          Constructs a Tab object from rawJSON string.
static Tag createTag(java.lang.String rawJSON)
          Constructs a Tag object from rawJSON string.
static Tagged createTagged(java.lang.String rawJSON)
          Constructs a Tagged object from rawJSON string.
static Television createTelevision(java.lang.String rawJSON)
          Constructs a Television object from rawJSON string.
static User createUser(java.lang.String rawJSON)
          Constructs a User object from rawJSON string.
static Video createVideo(java.lang.String rawJSON)
          Constructs a Video object from rawJSON string.
static java.lang.String getRawJSON(java.lang.Object obj)
          Returns a raw JSON form of the provided object.
Note that raw JSON forms can be retrieved only from the same thread invoked the last method call and will become inaccessible once another method call
(package private) static
<T> T
registerJSONObject(T key, java.lang.Object json)
          associate a raw JSON form to the current thread
Currently this method is called indirectly by facebook4j.internal.util.DataObjectFactoryUtil, and should be called directly once *JSONImpl classes are migrated to facebook4j.json.* package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

accountConstructor

private static final java.lang.reflect.Constructor<Account> accountConstructor

achievementConstructor

private static final java.lang.reflect.Constructor<Achievement> achievementConstructor

activityConstructor

private static final java.lang.reflect.Constructor<Activity> activityConstructor

adminConstructor

private static final java.lang.reflect.Constructor<Admin> adminConstructor

albumConstructor

private static final java.lang.reflect.Constructor<Album> albumConstructor

bookConstructor

private static final java.lang.reflect.Constructor<Book> bookConstructor

categoryConstructor

private static final java.lang.reflect.Constructor<Category> categoryConstructor

checkinConstructor

private static final java.lang.reflect.Constructor<Checkin> checkinConstructor

commentConstructor

private static final java.lang.reflect.Constructor<Comment> commentConstructor

domainConstructor

private static final java.lang.reflect.Constructor<Domain> domainConstructor

eventConstructor

private static final java.lang.reflect.Constructor<Event> eventConstructor

familyConstructor

private static final java.lang.reflect.Constructor<Family> familyConstructor

friendConstructor

private static final java.lang.reflect.Constructor<Friend> friendConstructor

friendlistConstructor

private static final java.lang.reflect.Constructor<Friendlist> friendlistConstructor

friendRequestConstructor

private static final java.lang.reflect.Constructor<FriendRequest> friendRequestConstructor

gameConstructor

private static final java.lang.reflect.Constructor<Game> gameConstructor

groupDocConstructor

private static final java.lang.reflect.Constructor<GroupDoc> groupDocConstructor

groupConstructor

private static final java.lang.reflect.Constructor<Group> groupConstructor

groupMemberConstructor

private static final java.lang.reflect.Constructor<GroupMember> groupMemberConstructor

insightConstructor

private static final java.lang.reflect.Constructor<Insight> insightConstructor

interestConstructor

private static final java.lang.reflect.Constructor<Interest> interestConstructor

likeConstructor

private static final java.lang.reflect.Constructor<Like> likeConstructor

linkConstructor

private static final java.lang.reflect.Constructor<Link> linkConstructor

locationConstructor

private static final java.lang.reflect.Constructor<Location> locationConstructor

messageConstructor

private static final java.lang.reflect.Constructor<Message> messageConstructor

milestoneConstructor

private static final java.lang.reflect.Constructor<Milestone> milestoneConstructor

movieConstructor

private static final java.lang.reflect.Constructor<Movie> movieConstructor

musicConstructor

private static final java.lang.reflect.Constructor<Music> musicConstructor

noteConstructor

private static final java.lang.reflect.Constructor<Note> noteConstructor

notificationConstructor

private static final java.lang.reflect.Constructor<Notification> notificationConstructor

offerConstructor

private static final java.lang.reflect.Constructor<Offer> offerConstructor

pageConstructor

private static final java.lang.reflect.Constructor<Page> pageConstructor

pageSettingConstructor

private static final java.lang.reflect.Constructor<PageSetting> pageSettingConstructor

photoConstructor

private static final java.lang.reflect.Constructor<Photo> photoConstructor

placeConstructor

private static final java.lang.reflect.Constructor<Place> placeConstructor

pokeConstructor

private static final java.lang.reflect.Constructor<Poke> pokeConstructor

postConstructor

private static final java.lang.reflect.Constructor<Post> postConstructor

questionConstructor

private static final java.lang.reflect.Constructor<Question> questionConstructor

questionVotesConstructor

private static final java.lang.reflect.Constructor<QuestionVotes> questionVotesConstructor

rsvpStatusConstructor

private static final java.lang.reflect.Constructor<RSVPStatus> rsvpStatusConstructor

scoreConstructor

private static final java.lang.reflect.Constructor<Score> scoreConstructor

subscribedtoConstructor

private static final java.lang.reflect.Constructor<Subscribedto> subscribedtoConstructor

subscriberConstructor

private static final java.lang.reflect.Constructor<Subscriber> subscriberConstructor

tabConstructor

private static final java.lang.reflect.Constructor<Tab> tabConstructor

taggedConstructor

private static final java.lang.reflect.Constructor<Tagged> taggedConstructor

tagConstructor

private static final java.lang.reflect.Constructor<Tag> tagConstructor

televisionConstructor

private static final java.lang.reflect.Constructor<Television> televisionConstructor

userConstructor

private static final java.lang.reflect.Constructor<User> userConstructor

videoConstructor

private static final java.lang.reflect.Constructor<Video> videoConstructor

rawJsonMap

private static final java.lang.ThreadLocal<java.util.Map> rawJsonMap
Constructor Detail

DataObjectFactory

private DataObjectFactory()
Method Detail

getRawJSON

public static java.lang.String getRawJSON(java.lang.Object obj)
Returns a raw JSON form of the provided object.
Note that raw JSON forms can be retrieved only from the same thread invoked the last method call and will become inaccessible once another method call

Parameters:
obj -
Returns:
raw JSON

createAccount

public static Account createAccount(java.lang.String rawJSON)
                             throws FacebookException
Constructs a Account object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Account
Throws:
FacebookException - when provided string is not a valid JSON string.

createAchievement

public static Achievement createAchievement(java.lang.String rawJSON)
                                     throws FacebookException
Constructs a Achievement object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Achievement
Throws:
FacebookException - when provided string is not a valid JSON string.

createActivity

public static Activity createActivity(java.lang.String rawJSON)
                               throws FacebookException
Constructs a Activity object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Activity
Throws:
FacebookException - when provided string is not a valid JSON string.

createAdmin

public static Admin createAdmin(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Admin object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Admin
Throws:
FacebookException - when provided string is not a valid JSON string.

createAlbum

public static Album createAlbum(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Album object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Album
Throws:
FacebookException - when provided string is not a valid JSON string.

createBook

public static Book createBook(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Book object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Book
Throws:
FacebookException - when provided string is not a valid JSON string.

createCategory

public static Category createCategory(java.lang.String rawJSON)
                               throws FacebookException
Constructs a Category object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Category
Throws:
FacebookException - when provided string is not a valid JSON string.

createCheckin

public static Checkin createCheckin(java.lang.String rawJSON)
                             throws FacebookException
Constructs a Checkin object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Checkin
Throws:
FacebookException - when provided string is not a valid JSON string.

createComment

public static Comment createComment(java.lang.String rawJSON)
                             throws FacebookException
Constructs a Comment object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Comment
Throws:
FacebookException - when provided string is not a valid JSON string.

createDomain

public static Domain createDomain(java.lang.String rawJSON)
                           throws FacebookException
Constructs a Domain object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Domain
Throws:
FacebookException - when provided string is not a valid JSON string.

createEvent

public static Event createEvent(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Event object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Event
Throws:
FacebookException - when provided string is not a valid JSON string.

createFamily

public static Family createFamily(java.lang.String rawJSON)
                           throws FacebookException
Constructs a Family object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Family
Throws:
FacebookException - when provided string is not a valid JSON string.

createFriend

public static Friend createFriend(java.lang.String rawJSON)
                           throws FacebookException
Constructs a Friend object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Friend
Throws:
FacebookException - when provided string is not a valid JSON string.

createFriendlist

public static Friendlist createFriendlist(java.lang.String rawJSON)
                                   throws FacebookException
Constructs a Friendlist object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Friendlist
Throws:
FacebookException - when provided string is not a valid JSON string.

createFriendRequest

public static FriendRequest createFriendRequest(java.lang.String rawJSON)
                                         throws FacebookException
Constructs a FriendRequest object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
FriendRequest
Throws:
FacebookException - when provided string is not a valid JSON string.

createGame

public static Game createGame(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Game object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Game
Throws:
FacebookException - when provided string is not a valid JSON string.

createGroupDoc

public static GroupDoc createGroupDoc(java.lang.String rawJSON)
                               throws FacebookException
Constructs a GroupDoc object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
GroupDoc
Throws:
FacebookException - when provided string is not a valid JSON string.

createGroup

public static Group createGroup(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Group object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Group
Throws:
FacebookException - when provided string is not a valid JSON string.

createGroupMember

public static GroupMember createGroupMember(java.lang.String rawJSON)
                                     throws FacebookException
Constructs a GroupMember object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
GroupMember
Throws:
FacebookException - when provided string is not a valid JSON string.

createInsight

public static Insight createInsight(java.lang.String rawJSON)
                             throws FacebookException
Constructs a Insight object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Insight
Throws:
FacebookException - when provided string is not a valid JSON string.

createInterest

public static Interest createInterest(java.lang.String rawJSON)
                               throws FacebookException
Constructs a Interest object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Interest
Throws:
FacebookException - when provided string is not a valid JSON string.

createLike

public static Like createLike(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Like object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Like
Throws:
FacebookException - when provided string is not a valid JSON string.

createLink

public static Link createLink(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Link object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Link
Throws:
FacebookException - when provided string is not a valid JSON string.

createLocation

public static Location createLocation(java.lang.String rawJSON)
                               throws FacebookException
Constructs a Location object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Location
Throws:
FacebookException - when provided string is not a valid JSON string.

createMessage

public static Message createMessage(java.lang.String rawJSON)
                             throws FacebookException
Constructs a Message object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Message
Throws:
FacebookException - when provided string is not a valid JSON string.

createMilestone

public static Milestone createMilestone(java.lang.String rawJSON)
                                 throws FacebookException
Constructs a Milestone object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Milestone
Throws:
FacebookException - when provided string is not a valid JSON string.

createMovie

public static Movie createMovie(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Movie object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Movie
Throws:
FacebookException - when provided string is not a valid JSON string.

createMusic

public static Music createMusic(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Music object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Music
Throws:
FacebookException - when provided string is not a valid JSON string.

createNote

public static Note createNote(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Note object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Note
Throws:
FacebookException - when provided string is not a valid JSON string.

createNotification

public static Notification createNotification(java.lang.String rawJSON)
                                       throws FacebookException
Constructs a Notification object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Notification
Throws:
FacebookException - when provided string is not a valid JSON string.

createOffer

public static Offer createOffer(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Offer object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Offer
Throws:
FacebookException - when provided string is not a valid JSON string.

createPage

public static Page createPage(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Page object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Page
Throws:
FacebookException - when provided string is not a valid JSON string.

createPageSetting

public static PageSetting createPageSetting(java.lang.String rawJSON)
                                     throws FacebookException
Constructs a PageSetting object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
PageSetting
Throws:
FacebookException - when provided string is not a valid JSON string.

createPhoto

public static Photo createPhoto(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Photo object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Photo
Throws:
FacebookException - when provided string is not a valid JSON string.

createPlace

public static Place createPlace(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Place object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Place
Throws:
FacebookException - when provided string is not a valid JSON string.

createPoke

public static Poke createPoke(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Poke object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Poke
Throws:
FacebookException - when provided string is not a valid JSON string.

createPost

public static Post createPost(java.lang.String rawJSON)
                       throws FacebookException
Constructs a Post object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Post
Throws:
FacebookException - when provided string is not a valid JSON string.

createQuestion

public static Question createQuestion(java.lang.String rawJSON)
                               throws FacebookException
Constructs a Question object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Question
Throws:
FacebookException - when provided string is not a valid JSON string.

createQuestionVotes

public static QuestionVotes createQuestionVotes(java.lang.String rawJSON)
                                         throws FacebookException
Constructs a QuestionVotes object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
QuestionVotes
Throws:
FacebookException - when provided string is not a valid JSON string.

createRSVPStatus

public static RSVPStatus createRSVPStatus(java.lang.String rawJSON)
                                   throws FacebookException
Constructs a RSVPStatus object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
RSVPStatus
Throws:
FacebookException - when provided string is not a valid JSON string.

createScore

public static Score createScore(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Score object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Score
Throws:
FacebookException - when provided string is not a valid JSON string.

createSubscribedto

public static Subscribedto createSubscribedto(java.lang.String rawJSON)
                                       throws FacebookException
Constructs a Subscribedto object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Subscribedto
Throws:
FacebookException - when provided string is not a valid JSON string.

createSubscriber

public static Subscriber createSubscriber(java.lang.String rawJSON)
                                   throws FacebookException
Constructs a Subscriber object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Subscriber
Throws:
FacebookException - when provided string is not a valid JSON string.

createTab

public static Tab createTab(java.lang.String rawJSON)
                     throws FacebookException
Constructs a Tab object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Tab
Throws:
FacebookException - when provided string is not a valid JSON string.

createTagged

public static Tagged createTagged(java.lang.String rawJSON)
                           throws FacebookException
Constructs a Tagged object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Tagged
Throws:
FacebookException - when provided string is not a valid JSON string.

createTag

public static Tag createTag(java.lang.String rawJSON)
                     throws FacebookException
Constructs a Tag object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Tag
Throws:
FacebookException - when provided string is not a valid JSON string.

createTelevision

public static Television createTelevision(java.lang.String rawJSON)
                                   throws FacebookException
Constructs a Television object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Television
Throws:
FacebookException - when provided string is not a valid JSON string.

createUser

public static User createUser(java.lang.String rawJSON)
                       throws FacebookException
Constructs a User object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
User
Throws:
FacebookException - when provided string is not a valid JSON string.

createVideo

public static Video createVideo(java.lang.String rawJSON)
                         throws FacebookException
Constructs a Video object from rawJSON string.

Parameters:
rawJSON - raw JSON form as String
Returns:
Video
Throws:
FacebookException - when provided string is not a valid JSON string.

clearThreadLocalMap

static void clearThreadLocalMap()
clear raw JSON forms associated with the current thread.
Currently this method is called indirectly by facebook4j.internal.util.DataObjectFactoryUtil, and should be called directly once *JSONImpl classes are migrated to facebook4j.json.* package.


registerJSONObject

static <T> T registerJSONObject(T key,
                                java.lang.Object json)
associate a raw JSON form to the current thread
Currently this method is called indirectly by facebook4j.internal.util.DataObjectFactoryUtil, and should be called directly once *JSONImpl classes are migrated to facebook4j.json.* package.