2 * Copyright 2016 Huawei Technologies Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 package org.openo.nfvo.jujuvnfmadapter.service.entity;
20 import org.apache.commons.lang3.builder.ToStringBuilder;
21 import org.apache.commons.lang3.builder.ToStringStyle;
25 * Juju vnfd class.<br>
30 * @version NFVO 0.5 Sep 12, 2016
32 public class JujuVnfd {
34 private String downloadUri;
36 private String localPath;
38 public String getDownloadUri() {
42 public void setDownloadUri(String downloadUri) {
43 this.downloadUri = downloadUri;
46 public String getLocalPath() {
50 public void setLocalPath(String localPath) {
51 this.localPath = localPath;
56 public String toString() {
57 return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
61 public int hashCode() {
64 result = prime * result + ((downloadUri == null) ? 0 : downloadUri.hashCode());
69 public boolean equals(Object obj) {
76 if(!(obj instanceof JujuVnfd)) {
79 if(getClass() != obj.getClass()) {
82 JujuVnfd other = (JujuVnfd)obj;
83 if(downloadUri == null) {
84 if(other.downloadUri != null) {
87 } else if(!downloadUri.equals(other.downloadUri)) {