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