| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| Attribute |
|
| 1.0;1 |
| 1 | package org.codeforamerica.open311.facade.data; | |
| 2 | ||
| 3 | import java.util.Map; | |
| 4 | ||
| 5 | /** | |
| 6 | * Specifies the required operations of an attribute useful for the <a | |
| 7 | * href="http://wiki.open311.org/GeoReport_v2#POST_Service_Request">POST Service | |
| 8 | * Request</a> operation. | |
| 9 | * | |
| 10 | * @author Santiago MunĂn <santimunin@gmail.com> | |
| 11 | * | |
| 12 | */ | |
| 13 | public interface Attribute { | |
| 14 | /** | |
| 15 | * Generates a list of pairs (String, String) ready to be passed as | |
| 16 | * paremeters to a POST request. | |
| 17 | * | |
| 18 | * @return A pair (attribute[CODE],value) or a list of pairs | |
| 19 | * (attribute[CODE][],value1), (attribute[CODE][], value2)... | |
| 20 | */ | |
| 21 | public Map<String, String> generatePOSTRequestParameter(); | |
| 22 | } |