2 * ============LICENSE_START=======================================================
3 * Copyright (C) 2018 Ericsson. All rights reserved.
4 * ================================================================================
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
17 * SPDX-License-Identifier: Apache-2.0
18 * ============LICENSE_END=========================================================
20 package org.onap.so.monitoring.camunda.model;
22 import static org.onap.so.monitoring.utils.ObjectEqualsUtils.isEqual;
24 import com.fasterxml.jackson.annotation.JsonIgnore;
25 import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
28 * @author waqas.ikram@ericsson.com
31 @JsonIgnoreProperties(ignoreUnknown = true)
32 public class ProcessDefinition {
35 private String bpmn20Xml;
37 public ProcessDefinition() {}
42 public String getId() {
47 * @param id the id to set
49 public void setId(final String id) {
54 * @return the bpmn20Xml
56 public String getBpmn20Xml() {
61 * @param bpmn20Xml the bpmn20Xml to set
63 public void setBpmn20Xml(final String bpmn20Xml) {
64 this.bpmn20Xml = bpmn20Xml;
69 public int hashCode() {
72 result = prime * result + ((id == null) ? 0 : id.hashCode());
73 result = prime * result + ((bpmn20Xml == null) ? 0 : bpmn20Xml.hashCode());
79 public boolean equals(final Object obj) {
80 if (obj instanceof ProcessDefinition) {
81 final ProcessDefinition other = (ProcessDefinition) obj;
82 return isEqual(id, other.id) && isEqual(bpmn20Xml, other.bpmn20Xml);