|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttwitter4j.json.DataObjectFactory
public final class DataObjectFactory
Method Summary | |
---|---|
static AccountTotals |
createAccountTotals(java.lang.String rawJSON)
Constructs an AccountTotals object from rawJSON string. |
static Category |
createCategory(java.lang.String rawJSON)
Constructs a Category object from rawJSON string. |
static DirectMessage |
createDirectMessage(java.lang.String rawJSON)
Constructs a DirectMessage object from rawJSON string. |
static IDs |
createIDs(java.lang.String rawJSON)
Constructs a IDs object from rawJSON string. |
static Location |
createLocation(java.lang.String rawJSON)
Constructs a Location object from rawJSON string. |
static java.lang.Object |
createObject(java.lang.String rawJSON)
Construct an object from rawJSON string. |
static Place |
createPlace(java.lang.String rawJSON)
Constructs a Place object from rawJSON string. |
static RateLimitStatus |
createRateLimitStatus(java.lang.String rawJSON)
Constructs a RateLimitStatus object from rawJSON string. |
static RelatedResults |
createRelatedResults(java.lang.String rawJSON)
Constructs a RelatedResults object from rawJSON string. |
static Relationship |
createRelationship(java.lang.String rawJSON)
Constructs a Relationship object from rawJSON string. |
static SavedSearch |
createSavedSearch(java.lang.String rawJSON)
Constructs a SavedSearch object from rawJSON string. |
static Status |
createStatus(java.lang.String rawJSON)
Constructs a Status object from rawJSON string. |
static Trend |
createTrend(java.lang.String rawJSON)
Constructs a Trend object from rawJSON string. |
static Trends |
createTrends(java.lang.String rawJSON)
Constructs a Trends object from rawJSON string. |
static Tweet |
createTweet(java.lang.String rawJSON)
Constructs a Tweet object from rawJSON string. |
static User |
createUser(java.lang.String rawJSON)
Constructs a User object from rawJSON string. |
static UserList |
createUserList(java.lang.String rawJSON)
Constructs a UserList 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 |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getRawJSON(java.lang.Object obj)
obj
-
public static Status createStatus(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static User createUser(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static AccountTotals createAccountTotals(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Tweet createTweet(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Relationship createRelationship(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Place createPlace(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static SavedSearch createSavedSearch(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Trend createTrend(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Trends createTrends(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static IDs createIDs(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static RateLimitStatus createRateLimitStatus(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Category createCategory(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static DirectMessage createDirectMessage(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static Location createLocation(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static UserList createUserList(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static RelatedResults createRelatedResults(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.public static java.lang.Object createObject(java.lang.String rawJSON) throws TwitterException
rawJSON
- raw JSON form as String
TwitterException
- when provided string is not a valid JSON string.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |