|
||||||||||
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.Committee
public class Committee
represents a Committee in congress or a legislature com.sunlightlabs.entities.Legislator steve Jul 22, 2009
Field Summary | |
---|---|
static Committee[] |
EMPTY_ARRAY
|
static java.lang.String[] |
KNOWN_PROPERTIES
|
static java.lang.String |
name
|
static java.lang.Class<Committee> |
THIS_CLASS
|
Constructor Summary | |
---|---|
Committee(JSONObject data)
constructor |
|
Committee(java.util.Map data)
constructor |
Method Summary | |
---|---|
static Committee[] |
allCommittees(com.sunlightlabs.api.ApiCall call,
java.lang.String chamber)
|
static Committee |
getCommitteeById(com.sunlightlabs.api.ApiCall call,
java.util.Map<java.lang.String,java.lang.String> params)
|
static Committee |
getCommitteeById(com.sunlightlabs.api.ApiCall call,
java.lang.String id)
|
static Committee[] |
getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call,
Legislator leg)
|
static Committee[] |
getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call,
java.lang.String biocode)
|
java.lang.String |
getEntityName()
JSON Tag for this |
java.lang.String[] |
getKnownProperties()
unofficial list of properties |
java.lang.String |
getName()
|
static java.lang.String |
getPluralEntityName()
|
Committee[] |
getSubcommittees()
|
void |
setSubcommittees(Committee[] subcommittees)
|
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 |
---|
public static java.lang.Class<Committee> THIS_CLASS
public static Committee[] EMPTY_ARRAY
public static final java.lang.String[] KNOWN_PROPERTIES
public static final java.lang.String name
Constructor Detail |
---|
public Committee(JSONObject data)
data
- non-null json object with propertiespublic Committee(java.util.Map data)
data
- non-null map with propertiesMethod Detail |
---|
public static java.lang.String getPluralEntityName()
public static Committee[] allCommittees(com.sunlightlabs.api.ApiCall call, java.lang.String chamber)
call
- non-null callerchamber
-
public static Committee getCommitteeById(com.sunlightlabs.api.ApiCall call, java.lang.String id)
call
- non-null callerid
-
public static Committee getCommitteeById(com.sunlightlabs.api.ApiCall call, java.util.Map<java.lang.String,java.lang.String> params)
call
- non-null callerparams
-
public static Committee[] getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call, Legislator leg)
call
- non-null callerbiocode
-
public static Committee[] getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call, java.lang.String biocode)
call
- non-null callerbiocode
-
public Committee[] getSubcommittees()
public void setSubcommittees(Committee[] subcommittees)
public java.lang.String getEntityName()
getEntityName
in class JSONEntity
public java.lang.String[] getKnownProperties()
getKnownProperties
in class JSONEntity
public java.lang.String getName()
public void showProperties(java.lang.Appendable out)
showProperties
in class JSONEntity
out
- non-null appender
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |