com.sunlightlabs.entities
Class Issue

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

public class Issue
extends JSONEntity

represents a Lobbyist issue com.sunlightlabs.entities.Issue steve Jul 22, 2009


Field Summary
static Issue[] EMPTY_ARRAY
           
static java.lang.String[] KNOWN_PROPERTIES
           
static java.lang.String name
           
static java.lang.Class<Issue> THIS_CLASS
           
 
Constructor Summary
Issue(JSONObject data)
          constructor
Issue(java.util.Map data)
          constructor
 
Method Summary
 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()
           
 
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

THIS_CLASS

public static java.lang.Class<Issue> THIS_CLASS

EMPTY_ARRAY

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

Issue

public Issue(JSONObject data)
constructor

Parameters:
data - non-nulljson object with properties

Issue

public Issue(java.util.Map data)
constructor

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

getPluralEntityName

public static java.lang.String getPluralEntityName()

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