2 * ============LICENSE_START=======================================================
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
11 * http://www.apache.org/licenses/LICENSE-2.0
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=========================================================
21 package org.onap.policy.api;
23 import org.apache.maven.model.Dependency;
24 import org.apache.maven.model.Exclusion;
26 public class PEDependency{
28 private String groupId;
29 private String artifactId;
30 private String version;
31 private String classifier;
34 private java.util.List<Exclusion> exclusions;
36 public String getGroupId() {
39 public void setGroupId(String groupId) {
40 this.groupId = groupId;
42 public String getArtifactId() {
45 public void setArtifactId(String artifactId) {
46 this.artifactId = artifactId;
48 public String getVersion() {
51 public void setVersion(String version) {
52 this.version = version;
54 public java.util.List<Exclusion> getExclusions() {
57 public void setExclusions(java.util.List<Exclusion> exclusions) {
58 this.exclusions = exclusions;
60 public String getClassifier() {
63 public void setClassifier(String classifier) {
64 this.classifier = classifier;
66 public String getType() {
69 public void setType(String type) {
72 public String getScope() {
75 public void setScope(String scope) {
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);