org.codeforamerica.open311.facade.data
Class SingleValueAttribute

java.lang.Object
  extended by org.codeforamerica.open311.facade.data.SingleValueAttribute
All Implemented Interfaces:
Attribute

public class SingleValueAttribute
extends Object
implements Attribute

Single valued attribute useful for the POST Service Request operation.

Author:
Santiago MunĂ­n

Constructor Summary
SingleValueAttribute(String code, String value)
           
 
Method Summary
 Map<String,String> generatePOSTRequestParameter()
          Generates a list of pairs (String, String) ready to be passed as paremeters to a POST request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SingleValueAttribute

public SingleValueAttribute(String code,
                            String value)
Method Detail

generatePOSTRequestParameter

public Map<String,String> generatePOSTRequestParameter()
Description copied from interface: Attribute
Generates a list of pairs (String, String) ready to be passed as paremeters to a POST request.

Specified by:
generatePOSTRequestParameter in interface Attribute
Returns:
A single pair (attribute[CODE], value) in a Map.


Copyright © 2013 Code for America. All Rights Reserved.