This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.rest.api.model;
002/*
003 * Licensed to the Apache Software Foundation (ASF) under one
004 * or more contributor license agreements.  See the NOTICE file
005 * distributed with this work for additional information
006 * regarding copyright ownership.  The ASF licenses this file
007 * to you under the Apache License, Version 2.0 (the
008 * "License"); you may not use this file except in compliance
009 * with the License.  You may obtain a copy of the License at
010 *
011 *   http://www.apache.org/licenses/LICENSE-2.0
012 *
013 * Unless required by applicable law or agreed to in writing,
014 * software distributed under the License is distributed on an
015 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
016 * KIND, either express or implied.  See the License for the
017 * specific language governing permissions and limitations
018 * under the License.
019 */
020
021import javax.xml.bind.annotation.XmlRootElement;
022import java.io.Serializable;
023import java.util.List;
024
025/**
026 * @author Olivier Lamy
027 * @since 1.4-M3
028 */
029@XmlRootElement( name = "policyInformation" )
030public class PolicyInformation
031    implements Serializable
032{
033    private List<String> options;
034
035    private String defaultOption;
036
037    private String id;
038
039    private String name;
040
041    public PolicyInformation()
042    {
043        // no op
044    }
045
046    public PolicyInformation( List<String> options, String defaultOption, String id, String name )
047    {
048        this.options = options;
049        this.defaultOption = defaultOption;
050        this.id = id;
051        this.name = name;
052    }
053
054    public List<String> getOptions()
055    {
056        return options;
057    }
058
059    public void setOptions( List<String> options )
060    {
061        this.options = options;
062    }
063
064    public String getDefaultOption()
065    {
066        return defaultOption;
067    }
068
069    public void setDefaultOption( String defaultOption )
070    {
071        this.defaultOption = defaultOption;
072    }
073
074    public String getId()
075    {
076        return id;
077    }
078
079    public void setId( String id )
080    {
081        this.id = id;
082    }
083
084    public String getName()
085    {
086        return name;
087    }
088
089    public void setName( String name )
090    {
091        this.name = name;
092    }
093
094    @Override
095    public String toString()
096    {
097        final StringBuilder sb = new StringBuilder();
098        sb.append( "PolicyInformation" );
099        sb.append( "{options=" ).append( options );
100        sb.append( ", defaultOption='" ).append( defaultOption ).append( '\'' );
101        sb.append( ", id='" ).append( id ).append( '\'' );
102        sb.append( ", name='" ).append( name ).append( '\'' );
103        sb.append( '}' );
104        return sb.toString();
105    }
106}