org.codeforamerica.open311.facade.data
Class MultiValueAttribute
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MultiValueAttribute
public MultiValueAttribute(String code,
String... values)
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.