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.Collections;
24import java.util.List;
2526/**27 * @author Olivier Lamy28 * @since 1.4-M329 */30 @XmlRootElement( name = "browseResult" )
31publicclassBrowseResult32implements Serializable
33 {
34private List<BrowseResultEntry> browseResultEntries;
3536privateboolean rootLevel;
3738publicBrowseResult()
39 {
40// no op41 }
4243publicBrowseResult( List<BrowseResultEntry> browseResultEntries )
44 {
45this.browseResultEntries = browseResultEntries;
46 }
4748public List<BrowseResultEntry> getBrowseResultEntries()
49 {
50return browseResultEntries == null ? Collections.<BrowseResultEntry>emptyList() : browseResultEntries;
51 }
5253publicvoid setBrowseResultEntries( List<BrowseResultEntry> browseResultEntries )
54 {
55this.browseResultEntries = browseResultEntries;
56 }
5758 @Override
59public String toString()
60 {
61final StringBuilder sb = new StringBuilder();
62 sb.append( "BrowseResult" );
63 sb.append( "{browseResultEntries=" ).append( browseResultEntries );
64 sb.append( ", rootLevel=" ).append( rootLevel );
65 sb.append( '}' );
66return sb.toString();
67 }
68 }