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 */2021import javax.xml.bind.annotation.XmlRootElement;
22import java.io.Serializable;
23import java.util.List;
2425/**26 * @author Olivier Lamy27 */28 @XmlRootElement( name = "versionsList" )
29publicclassVersionsList30implements Serializable
31 {
3233private List<String> versions;
3435publicVersionsList()
36 {
37// no op38 }
3940publicVersionsList( List<String> versions )
41 {
42this.versions = versions;
43 }
4445public List<String> getVersions()
46 {
47return versions;
48 }
4950publicvoid setVersions( List<String> versions )
51 {
52this.versions = versions;
53 }
5455 @Override
56public String toString()
57 {
58final StringBuilder sb = new StringBuilder();
59 sb.append( "VersionsList" );
60 sb.append( "{versions=" ).append( versions );
61 sb.append( '}' );
62return sb.toString();
63 }
64 }