com.sunlightlabs.entities
Class Committee

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

public class Committee
extends JSONEntity

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

THIS_CLASS

public static java.lang.Class<Committee> THIS_CLASS

EMPTY_ARRAY

public static Committee[] 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

Committee

public Committee(JSONObject data)
constructor

Parameters:
data - non-null json object with properties

Committee

public Committee(java.util.Map data)
constructor

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

getPluralEntityName

public static java.lang.String getPluralEntityName()

allCommittees

public static Committee[] allCommittees(com.sunlightlabs.api.ApiCall call,
                                        java.lang.String chamber)
Parameters:
call - non-null caller
chamber -
Returns:
non-null array of committees

getCommitteeById

public static Committee getCommitteeById(com.sunlightlabs.api.ApiCall call,
                                         java.lang.String id)
Parameters:
call - non-null caller
id -
Returns:

getCommitteeById

public static Committee getCommitteeById(com.sunlightlabs.api.ApiCall call,
                                         java.util.Map<java.lang.String,java.lang.String> params)
Parameters:
call - non-null caller
params -
Returns:
possiblu null Commottee

getCommitteesForLegislator

public static Committee[] getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call,
                                                     Legislator leg)
Parameters:
call - non-null caller
biocode -
Returns:
non-null array of committees

getCommitteesForLegislator

public static Committee[] getCommitteesForLegislator(com.sunlightlabs.api.ApiCall call,
                                                     java.lang.String biocode)
Parameters:
call - non-null caller
biocode -
Returns:
non-null array of committees

getSubcommittees

public Committee[] getSubcommittees()

setSubcommittees

public void setSubcommittees(Committee[] subcommittees)

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()

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