001    package 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    
022    public class ProjectVersionReference
023    {
024        private ReferenceType referenceType;
025    
026        private String projectId;
027    
028        private String namespace;
029    
030        private String projectVersion;
031    
032        public void setReferenceType( ReferenceType referenceType )
033        {
034            this.referenceType = referenceType;
035        }
036    
037        public void setNamespace( String namespace )
038        {
039            this.namespace = namespace;
040        }
041    
042        public void setProjectId( String projectId )
043        {
044            this.projectId = projectId;
045        }
046    
047        public ReferenceType getReferenceType()
048        {
049            return referenceType;
050        }
051    
052        public String getProjectId()
053        {
054            return projectId;
055        }
056    
057        public String getProjectVersion()
058        {
059            return projectVersion;
060        }
061    
062        public String getNamespace()
063        {
064            return namespace;
065        }
066    
067        public void setProjectVersion( String projectVersion )
068        {
069            this.projectVersion = projectVersion;
070        }
071    
072        public enum ReferenceType
073        {
074            DEPENDENCY,
075            PARENT
076        }
077    }