d722f169647ea90122e02d13dcb6fcf413a06424
[policy/engine.git] / PolicyEngineUtils / src / main / java / org / onap / policy / api / PEDependency.java
1 /*-
2  * ============LICENSE_START=======================================================
3  * PolicyEngineUtils
4  * ================================================================================
5  * Copyright (C) 2017 AT&T Intellectual Property. All rights reserved.
6  * ================================================================================
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  * 
11  *      http://www.apache.org/licenses/LICENSE-2.0
12  * 
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  * ============LICENSE_END=========================================================
19  */
20
21 package org.onap.policy.api;
22
23 import org.apache.maven.model.Dependency;
24 import org.apache.maven.model.Exclusion;
25
26 public class PEDependency{
27     
28     private String groupId;
29     private String artifactId;
30     private String version;
31     private String classifier;
32         private String type;
33     private String scope;
34     private java.util.List<Exclusion> exclusions;
35     
36     public String getGroupId() {
37         return groupId;
38     }
39     public void setGroupId(String groupId) {
40         this.groupId = groupId;
41     }
42     public String getArtifactId() {
43         return artifactId;
44     }
45     public void setArtifactId(String artifactId) {
46         this.artifactId = artifactId;
47     }
48     public String getVersion() {
49         return version;
50     }
51     public void setVersion(String version) {
52         this.version = version;
53     }
54     public java.util.List<Exclusion> getExclusions() {
55         return exclusions;
56     }
57     public void setExclusions(java.util.List<Exclusion> exclusions) {
58         this.exclusions = exclusions;
59     }
60     public String getClassifier() {
61                 return classifier;
62         }
63         public void setClassifier(String classifier) {
64                 this.classifier = classifier;
65         }
66         public String getType() {
67                 return type;
68         }
69         public void setType(String type) {
70                 this.type = type;
71         }
72         public String getScope() {
73                 return scope;
74         }
75         public void setScope(String scope) {
76                 this.scope = scope;
77         }
78         
79     public Dependency getDependency(){
80         Dependency dependency = new Dependency();
81         dependency.setArtifactId(artifactId);
82         dependency.setGroupId(groupId);
83         dependency.setVersion(version);
84         dependency.setExclusions(exclusions);
85         dependency.setClassifier(classifier);
86         dependency.setScope(scope);
87         dependency.setType(type);
88         return dependency;
89     }
90 }