facebook4j.internal.json
Class TabJSONImpl

java.lang.Object
  extended by facebook4j.internal.json.FacebookResponseImpl
      extended by facebook4j.internal.json.TabJSONImpl
All Implemented Interfaces:
FacebookResponse, Tab, java.io.Serializable

final class TabJSONImpl
extends FacebookResponseImpl
implements Tab, java.io.Serializable

Author:
Ryuji Yamashita - roundrop at gmail.com

Nested Class Summary
 
Nested classes/interfaces inherited from interface facebook4j.FacebookResponse
FacebookResponse.Metadata
 
Field Summary
private  IdNameEntity application
           
private  java.net.URL customImageURL
           
private  java.lang.String customName
           
private  java.lang.String id
           
private  java.net.URL imageURL
           
private  java.lang.Boolean isNonConnectionLandingTab
           
private  java.lang.Boolean isPermanent
           
private  java.net.URL link
           
private  java.lang.String name
           
private  java.lang.Integer position
           
private static long serialVersionUID
           
 
Constructor Summary
TabJSONImpl(HttpResponse res, Configuration conf)
           
TabJSONImpl(JSONObject json)
           
 
Method Summary
(package private) static ResponseList<Tab> createTabList(HttpResponse res, Configuration conf)
           
 boolean equals(java.lang.Object o)
           
 IdNameEntity getApplication()
           
 java.net.URL getCustomImageURL()
           
 java.lang.String getCustomName()
           
 java.lang.String getId()
           
 java.net.URL getImageURL()
           
 java.net.URL getLink()
           
 java.lang.String getName()
           
 java.lang.Integer getPosition()
           
 int hashCode()
           
private  void init(JSONObject json)
           
 java.lang.Boolean isNonConnectionLandingTab()
           
 java.lang.Boolean isPermanent()
           
 java.lang.String toString()
           
 
Methods inherited from class facebook4j.internal.json.FacebookResponseImpl
getMetadata
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface facebook4j.FacebookResponse
getMetadata
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

id

private java.lang.String id

name

private java.lang.String name

link

private java.net.URL link

application

private IdNameEntity application

customName

private java.lang.String customName

isPermanent

private java.lang.Boolean isPermanent

position

private java.lang.Integer position

isNonConnectionLandingTab

private java.lang.Boolean isNonConnectionLandingTab

imageURL

private java.net.URL imageURL

customImageURL

private java.net.URL customImageURL
Constructor Detail

TabJSONImpl

TabJSONImpl(HttpResponse res,
            Configuration conf)
      throws FacebookException
Throws:
FacebookException

TabJSONImpl

TabJSONImpl(JSONObject json)
      throws FacebookException
Throws:
FacebookException
Method Detail

init

private void init(JSONObject json)
           throws FacebookException
Throws:
FacebookException

getId

public java.lang.String getId()
Specified by:
getId in interface Tab

getName

public java.lang.String getName()
Specified by:
getName in interface Tab

getLink

public java.net.URL getLink()
Specified by:
getLink in interface Tab

getApplication

public IdNameEntity getApplication()
Specified by:
getApplication in interface Tab

getCustomName

public java.lang.String getCustomName()
Specified by:
getCustomName in interface Tab

isPermanent

public java.lang.Boolean isPermanent()
Specified by:
isPermanent in interface Tab

getPosition

public java.lang.Integer getPosition()
Specified by:
getPosition in interface Tab

isNonConnectionLandingTab

public java.lang.Boolean isNonConnectionLandingTab()
Specified by:
isNonConnectionLandingTab in interface Tab

getImageURL

public java.net.URL getImageURL()
Specified by:
getImageURL in interface Tab

getCustomImageURL

public java.net.URL getCustomImageURL()
Specified by:
getCustomImageURL in interface Tab

createTabList

static ResponseList<Tab> createTabList(HttpResponse res,
                                       Configuration conf)
                                throws FacebookException
Throws:
FacebookException

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object