2 * ============LICENSE_START==========================================
4 * ===================================================================
5 * Copyright © 2017-2018 AT&T Intellectual Property. All rights reserved.
6 * Copyright © 2017-2018 Amdocs
7 * ===================================================================
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
19 * ============LICENSE_END============================================
21 package org.onap.aai.modelloader.service;
23 import java.util.Collections;
24 import org.openecomp.sdc.api.notification.IArtifactInfo;
27 * This class is an implementation of IArtifactInfo for test purposes.
29 public class ArtifactInfoImpl implements IArtifactInfo {
31 private java.lang.String artifactName;
32 private java.lang.String artifactType;
33 private java.lang.String artifactDescription;
34 private java.lang.String artifactVersion;
37 public String getArtifactName() {
41 public void setArtifactName(String artifactName) {
42 this.artifactName = artifactName;
46 public String getArtifactType() {
50 public void setArtifactType(String artifactType) {
51 this.artifactType = artifactType;
55 public String getArtifactURL() {
60 public String getArtifactChecksum() {
65 public String getArtifactDescription() {
66 return artifactDescription;
69 public void setArtifactDescription(String artifactDescription) {
70 this.artifactDescription = artifactDescription;
74 public Integer getArtifactTimeout() {
79 public String getArtifactVersion() {
80 return artifactVersion;
83 public void setArtifactVersion(String artifactVersion) {
84 this.artifactVersion = artifactVersion;
88 public String getArtifactUUID() {
93 public IArtifactInfo getGeneratedArtifact() {
98 public java.util.List<org.openecomp.sdc.api.notification.IArtifactInfo> getRelatedArtifacts() {
99 return Collections.emptyList();
103 public boolean equals(Object o) {
107 if (o == null || getClass() != o.getClass()) {
111 ArtifactInfoImpl that = (ArtifactInfoImpl) o;
113 if (artifactName != null ? !artifactName.equals(that.artifactName) : that.artifactName != null) {
116 if (artifactType != null ? !artifactType.equals(that.artifactType) : that.artifactType != null) {
119 if (artifactDescription != null ? !artifactDescription.equals(that.artifactDescription)
120 : that.artifactDescription != null) {
123 return artifactVersion != null ? artifactVersion.equals(that.artifactVersion) : that.artifactVersion == null;
127 public int hashCode() {
128 int result = artifactName != null ? artifactName.hashCode() : 0;
129 result = 31 * result + (artifactType != null ? artifactType.hashCode() : 0);
130 result = 31 * result + (artifactDescription != null ? artifactDescription.hashCode() : 0);
131 result = 31 * result + (artifactVersion != null ? artifactVersion.hashCode() : 0);