com.sunlightlabs.entities
Class Lobbyist

java.lang.Object
  extended by com.sunlightlabs.entities.JSONEntity
      extended by com.sunlightlabs.entities.Lobbyist

public class Lobbyist
extends JSONEntity

represents a registered Lobbyist com.sunlightlabs.entities.Legislator steve Jul 22, 2009


Field Summary
static Lobbyist[] EMPTY_ARRAY
           
static java.lang.String[] KNOWN_PROPERTIES
           
static java.lang.String name
           
static java.lang.Class<Lobbyist> THIS_CLASS
           
 
Constructor Summary
Lobbyist(JSONObject data)
          constructor
Lobbyist(java.util.Map data)
          constructor
 
Method Summary
static Lobbyist[] allLobbyistsFiledWith(com.sunlightlabs.api.ApiCall call, java.lang.String clientName)
           
 java.lang.String getEntityName()
          JSON Tag for this
 Issue[] getIssues()
           
 java.lang.String[] getKnownProperties()
          unofficial list of properties
static Lobbyist[] getLobbyistsForZipCode(com.sunlightlabs.api.ApiCall call, java.lang.String zipcode)
           
 java.lang.String getName()
           
static java.lang.String getPluralEntityName()
           
 void showProperties(java.lang.Appendable out)
          write all name value pairs to the appender
 
Methods inherited from class com.sunlightlabs.entities.JSONEntity
equivalent, getAllKeys, getArrayItems, getArrayStringItems, getContainedJSONObject, getJSONObject, getJSONObjects, getJSONStrings, getNameValuePairs, getProperties, getProperty, show, show, showProperties
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

THIS_CLASS

public static java.lang.Class<Lobbyist> THIS_CLASS

EMPTY_ARRAY

public static Lobbyist[] EMPTY_ARRAY

KNOWN_PROPERTIES

public static final java.lang.String[] KNOWN_PROPERTIES

name

public static final java.lang.String name
See Also:
Constant Field Values
Constructor Detail

Lobbyist

public Lobbyist(JSONObject data)
constructor

Parameters:
data - non-nulljson object with properties

Lobbyist

public Lobbyist(java.util.Map data)
constructor

Parameters:
data - non-null map with properties
Method Detail

getPluralEntityName

public static java.lang.String getPluralEntityName()

allLobbyistsFiledWith

public static Lobbyist[] allLobbyistsFiledWith(com.sunlightlabs.api.ApiCall call,
                                               java.lang.String clientName)
Parameters:
call - non-null caller
clientName -
Returns:

getLobbyistsForZipCode

public static Lobbyist[] getLobbyistsForZipCode(com.sunlightlabs.api.ApiCall call,
                                                java.lang.String zipcode)
Parameters:
call - non-null caller
zipcode -
Returns:

getEntityName

public java.lang.String getEntityName()
JSON Tag for this

Specified by:
getEntityName in class JSONEntity
Returns:
non-null String

getKnownProperties

public java.lang.String[] getKnownProperties()
unofficial list of properties

Specified by:
getKnownProperties in class JSONEntity

getName

public java.lang.String getName()

getIssues

public Issue[] getIssues()

showProperties

public void showProperties(java.lang.Appendable out)
write all name value pairs to the appender

Overrides:
showProperties in class JSONEntity
Parameters:
out - non-null appender