This project has retired. For details please refer to its Attic page.
Source code
001package org.apache.archiva.metadata.model;
002
003/*
004 * Licensed to the Apache Software Foundation (ASF) under one
005 * or more contributor license agreements.  See the NOTICE file
006 * distributed with this work for additional information
007 * regarding copyright ownership.  The ASF licenses this file
008 * to you under the Apache License, Version 2.0 (the
009 * "License"); you may not use this file except in compliance
010 * with the License.  You may obtain a copy of the License at
011 *
012 *   http://www.apache.org/licenses/LICENSE-2.0
013 *
014 * Unless required by applicable law or agreed to in writing,
015 * software distributed under the License is distributed on an
016 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
017 * KIND, either express or implied.  See the License for the
018 * specific language governing permissions and limitations
019 * under the License.
020 */
021
022import javax.xml.bind.annotation.XmlRootElement;
023import java.io.Serializable;
024
025@XmlRootElement(name = "scm")
026public class Scm
027    implements Serializable
028{
029    private String connection;
030
031    private String developerConnection;
032
033    private String url;
034
035    public Scm()
036    {
037        // no op
038    }
039
040    public Scm( String connection, String developerConnection, String url )
041    {
042        this.connection = connection;
043        this.developerConnection = developerConnection;
044        this.url = url;
045    }
046
047    public String getUrl()
048    {
049        return url;
050    }
051
052    public void setUrl( String url )
053    {
054        this.url = url;
055    }
056
057    public String getDeveloperConnection()
058    {
059        return developerConnection;
060    }
061
062    public void setDeveloperConnection( String developerConnection )
063    {
064        this.developerConnection = developerConnection;
065    }
066
067    public String getConnection()
068    {
069        return connection;
070    }
071
072    public void setConnection( String connection )
073    {
074        this.connection = connection;
075    }
076
077    @Override
078    public String toString()
079    {
080        return "Scm{" +
081            "connection='" + connection + '\'' +
082            ", developerConnection='" + developerConnection + '\'' +
083            ", url='" + url + '\'' +
084            '}';
085    }
086}