org.codeforamerica.open311.facade.data
Class MultiValueAttribute

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

public class MultiValueAttribute
extends Object
implements Attribute

Multi valued attribute useful for the POST Service Request operation.

Author:
Santiago MunĂ­n

Constructor Summary
MultiValueAttribute(String code, String... values)
           
 
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

MultiValueAttribute

public MultiValueAttribute(String code,
                           String... values)
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 list of pairs (attribute[CODE][], value1), (attribute[CODE][], value2), ... in a Map.


Copyright © 2013 Code for America. All Rights Reserved.