All Downloads are FREE. Search and download functionalities are using the official Maven repository.

facebook4j.json.DataObjectFactory Maven / Gradle / Ivy

There is a newer version: 2.4.13
Show newest version
/*
 * Copyright 2012 Ryuji Yamashita
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package facebook4j.json;

import facebook4j.Account;
import facebook4j.Achievement;
import facebook4j.Activity;
import facebook4j.Admin;
import facebook4j.Album;
import facebook4j.Book;
import facebook4j.Category;
import facebook4j.Checkin;
import facebook4j.Comment;
import facebook4j.Domain;
import facebook4j.Event;
import facebook4j.FacebookException;
import facebook4j.Family;
import facebook4j.Friend;
import facebook4j.FriendRequest;
import facebook4j.Friendlist;
import facebook4j.Game;
import facebook4j.Group;
import facebook4j.GroupDoc;
import facebook4j.GroupMember;
import facebook4j.Insight;
import facebook4j.Interest;
import facebook4j.Like;
import facebook4j.Link;
import facebook4j.Location;
import facebook4j.Message;
import facebook4j.Milestone;
import facebook4j.Movie;
import facebook4j.Music;
import facebook4j.Note;
import facebook4j.Notification;
import facebook4j.Offer;
import facebook4j.Page;
import facebook4j.PageSetting;
import facebook4j.Photo;
import facebook4j.Place;
import facebook4j.Poke;
import facebook4j.Post;
import facebook4j.Question;
import facebook4j.QuestionVotes;
import facebook4j.RSVPStatus;
import facebook4j.Score;
import facebook4j.Subscribedto;
import facebook4j.Subscriber;
import facebook4j.Tab;
import facebook4j.Tag;
import facebook4j.Tagged;
import facebook4j.Television;
import facebook4j.User;
import facebook4j.Video;
import facebook4j.internal.org.json.JSONException;
import facebook4j.internal.org.json.JSONObject;

import java.lang.reflect.Constructor;
import java.lang.reflect.InvocationTargetException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author Ryuji Yamashita - roundrop at gmail.com
 */
public final class DataObjectFactory {
    private DataObjectFactory() {
        throw new AssertionError("not intended to be instantiated.");
    }

    private static final Constructor accountConstructor;
    private static final Constructor achievementConstructor;
    private static final Constructor activityConstructor;
    private static final Constructor adminConstructor;
    private static final Constructor albumConstructor;
    private static final Constructor bookConstructor;
    private static final Constructor categoryConstructor;
    private static final Constructor checkinConstructor;
    private static final Constructor commentConstructor;
    private static final Constructor domainConstructor;
    private static final Constructor eventConstructor;
    private static final Constructor familyConstructor;
    private static final Constructor friendConstructor;
    private static final Constructor friendlistConstructor;
    private static final Constructor friendRequestConstructor;
    private static final Constructor gameConstructor;
    private static final Constructor groupDocConstructor;
    private static final Constructor groupConstructor;
    private static final Constructor groupMemberConstructor;
    private static final Constructor insightConstructor;
    private static final Constructor interestConstructor;
    private static final Constructor likeConstructor;
    private static final Constructor linkConstructor;
    private static final Constructor locationConstructor;
    private static final Constructor messageConstructor;
    private static final Constructor milestoneConstructor;
    private static final Constructor movieConstructor;
    private static final Constructor musicConstructor;
    private static final Constructor noteConstructor;
    private static final Constructor notificationConstructor;
    private static final Constructor offerConstructor;
    private static final Constructor pageConstructor;
    private static final Constructor pageSettingConstructor;
    private static final Constructor photoConstructor;
    private static final Constructor placeConstructor;
    private static final Constructor pokeConstructor;
    private static final Constructor postConstructor;
    private static final Constructor questionConstructor;
    private static final Constructor questionVotesConstructor;
    private static final Constructor rsvpStatusConstructor;
    private static final Constructor scoreConstructor;
    private static final Constructor subscribedtoConstructor;
    private static final Constructor subscriberConstructor;
    private static final Constructor tabConstructor;
    private static final Constructor taggedConstructor;
    private static final Constructor tagConstructor;
    private static final Constructor televisionConstructor;
    private static final Constructor userConstructor;
    private static final Constructor




© 2015 - 2024 Weber Informatics LLC | Privacy Policy