1package org.apache.archiva.rest.api.model;
2/*3 * Licensed to the Apache Software Foundation (ASF) under one4 * or more contributor license agreements. See the NOTICE file5 * distributed with this work for additional information6 * regarding copyright ownership. The ASF licenses this file7 * to you under the Apache License, Version 2.0 (the8 * "License"); you may not use this file except in compliance9 * with the License. You may obtain a copy of the License at10 *11 * http://www.apache.org/licenses/LICENSE-2.012 *13 * Unless required by applicable law or agreed to in writing,14 * software distributed under the License is distributed on an15 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY16 * KIND, either express or implied. See the License for the17 * specific language governing permissions and limitations18 * under the License.19 */2021/**22 * use for REST services returning Map to get a more easy way to parse json result23 *24 * @author Olivier Lamy25 * @since 1.4-M326 */27publicclassEntry28 {
29private String key;
3031private String value;
3233publicEntry()
34 {
35// no op36 }
3738publicEntry( String key, String value )
39 {
40this.key = key;
41this.value = value;
42 }
4344public String getKey()
45 {
46return key;
47 }
4849publicvoid setKey( String key )
50 {
51this.key = key;
52 }
5354public String getValue()
55 {
56return value;
57 }
5859publicvoid setValue( String value )
60 {
61this.value = value;
62 }
6364 @Override
65public String toString()
66 {
67final StringBuilder sb = new StringBuilder();
68 sb.append( "Entry" );
69 sb.append( "{key='" ).append( key ).append( '\'' );
70 sb.append( ", value='" ).append( value ).append( '\'' );
71 sb.append( '}' );
72return sb.toString();
73 }
74 }