|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sunlightlabs.entities.JSONEntity
com.sunlightlabs.entities.Legislator
public class Legislator
represents a state legislator com.sunlightlabs.entities.Legislator steve Jul 22, 2009
Field Summary | |
---|---|
static Legislator[] |
EMPTY_ARRAY
|
static java.lang.String[] |
KNOWN_PROPERTIES
|
static java.lang.String |
name
|
static java.lang.Class<Legislator> |
THIS_CLASS
|
Constructor Summary | |
---|---|
Legislator(JSONObject data)
constructor |
|
Legislator(java.util.Map data)
constructor |
Method Summary | |
---|---|
static Legislator[] |
allLegislators(com.sunlightlabs.api.ApiCall call)
return all Legislators in the database |
static Legislator[] |
allLegislators(com.sunlightlabs.api.ApiCall call,
java.util.Map<java.lang.String,java.lang.String> params)
|
java.lang.String |
getEntityName()
JSON Tag for this |
java.lang.String[] |
getKnownProperties()
unofficial list of properties |
static Legislator |
getLegislator(com.sunlightlabs.api.ApiCall call,
java.lang.String name)
|
static Legislator |
getLegislatorById(com.sunlightlabs.api.ApiCall call,
java.util.Map<java.lang.String,java.lang.String> params)
|
static Legislator |
getLegislatorById(com.sunlightlabs.api.ApiCall call,
java.lang.String id)
Look up a Legislator by bioguide_id |
static Legislator[] |
getLegislatorsForZipCode(com.sunlightlabs.api.ApiCall call,
java.lang.String zipcode)
|
java.lang.String |
getName()
|
static java.lang.String |
getPluralEntityName()
|
Methods inherited from class com.sunlightlabs.entities.JSONEntity |
---|
equivalent, getAllKeys, getArrayItems, getArrayStringItems, getContainedJSONObject, getJSONObject, getJSONObjects, getJSONStrings, getNameValuePairs, getProperties, getProperty, show, show, showProperties, showProperties |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static java.lang.Class<Legislator> THIS_CLASS
public static Legislator[] EMPTY_ARRAY
public static final java.lang.String[] KNOWN_PROPERTIES
public static final java.lang.String name
Constructor Detail |
---|
public Legislator(JSONObject data)
data
- non-nulljson object with propertiespublic Legislator(java.util.Map data)
data
- non-null map with propertiesMethod Detail |
---|
public static java.lang.String getPluralEntityName()
public static Legislator[] allLegislators(com.sunlightlabs.api.ApiCall call)
call
- non-null caller
public static Legislator[] allLegislators(com.sunlightlabs.api.ApiCall call, java.util.Map<java.lang.String,java.lang.String> params)
call
- non-null callerparams
- non-null mapo of search properties
public static Legislator[] getLegislatorsForZipCode(com.sunlightlabs.api.ApiCall call, java.lang.String zipcode)
call
- non-null callerzipcode
-
public static Legislator getLegislatorById(com.sunlightlabs.api.ApiCall call, java.lang.String id)
call
- non-null callerid
- non-null bioguide_id
public static Legislator getLegislatorById(com.sunlightlabs.api.ApiCall call, java.util.Map<java.lang.String,java.lang.String> params)
call
- non-null callerparams
-
public static Legislator getLegislator(com.sunlightlabs.api.ApiCall call, java.lang.String name)
public java.lang.String getEntityName()
getEntityName
in class JSONEntity
public java.lang.String[] getKnownProperties()
getKnownProperties
in class JSONEntity
public java.lang.String getName()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |