All Downloads are FREE. Search and download functionalities are using the official Maven repository.
Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
org.bonitasoft.web.client.model.FlowElementContainerDefinition Maven / Gradle / Ivy
/**
* Copyright (C) 2024-2023 BonitaSoft S.A.
* BonitaSoft, 32 rue Gustave Eiffel - 38000 Grenoble
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2.0 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see .
*/
package org.bonitasoft.web.client.model;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
/**
* Allows to access all flow elements (activities, gateways, events and transitions) of a process or sub-process.
*/
@JsonPropertyOrder({
FlowElementContainerDefinition.JSON_PROPERTY_ACTIVITIES,
FlowElementContainerDefinition.JSON_PROPERTY_TRANSITIONS,
FlowElementContainerDefinition.JSON_PROPERTY_GATEWAYS_LIST,
FlowElementContainerDefinition.JSON_PROPERTY_START_EVENTS,
FlowElementContainerDefinition.JSON_PROPERTY_INTERMEDIATE_CATCH_EVENTS,
FlowElementContainerDefinition.JSON_PROPERTY_INTERMEDIATE_THROW_EVENTS,
FlowElementContainerDefinition.JSON_PROPERTY_END_EVENTS,
FlowElementContainerDefinition.JSON_PROPERTY_DATA_DEFINITIONS,
FlowElementContainerDefinition.JSON_PROPERTY_DOCUMENT_DEFINITIONS,
FlowElementContainerDefinition.JSON_PROPERTY_CONNECTORS,
FlowElementContainerDefinition.JSON_PROPERTY_BUSINESS_DATA_DEFINITIONS,
FlowElementContainerDefinition.JSON_PROPERTY_DOCUMENT_LIST_DEFINITIONS
})
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.8.0")
public class FlowElementContainerDefinition implements Serializable {
private static final long serialVersionUID = 1L;
public static final String JSON_PROPERTY_ACTIVITIES = "activities";
private List> activities = new ArrayList<>();
public static final String JSON_PROPERTY_TRANSITIONS = "transitions";
private List> transitions = new ArrayList<>();
public static final String JSON_PROPERTY_GATEWAYS_LIST = "gatewaysList";
private List> gatewaysList = new ArrayList<>();
public static final String JSON_PROPERTY_START_EVENTS = "startEvents";
private List> startEvents = new ArrayList<>();
public static final String JSON_PROPERTY_INTERMEDIATE_CATCH_EVENTS = "intermediateCatchEvents";
private List> intermediateCatchEvents = new ArrayList<>();
public static final String JSON_PROPERTY_INTERMEDIATE_THROW_EVENTS = "intermediateThrowEvents";
private List> intermediateThrowEvents = new ArrayList<>();
public static final String JSON_PROPERTY_END_EVENTS = "endEvents";
private List> endEvents = new ArrayList<>();
public static final String JSON_PROPERTY_DATA_DEFINITIONS = "dataDefinitions";
private List> dataDefinitions = new ArrayList<>();
public static final String JSON_PROPERTY_DOCUMENT_DEFINITIONS = "documentDefinitions";
private List> documentDefinitions = new ArrayList<>();
public static final String JSON_PROPERTY_CONNECTORS = "connectors";
private List> connectors = new ArrayList<>();
public static final String JSON_PROPERTY_BUSINESS_DATA_DEFINITIONS = "businessDataDefinitions";
private List> businessDataDefinitions = new ArrayList<>();
public static final String JSON_PROPERTY_DOCUMENT_LIST_DEFINITIONS = "documentListDefinitions";
private List> documentListDefinitions = new ArrayList<>();
public FlowElementContainerDefinition() {
}
public FlowElementContainerDefinition activities(List> activities) {
this.activities = activities;
return this;
}
public FlowElementContainerDefinition addActivitiesItem(Map activitiesItem) {
if (this.activities == null) {
this.activities = new ArrayList<>();
}
this.activities.add(activitiesItem);
return this;
}
/**
* Get activities
*
* @return activities
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_ACTIVITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getActivities() {
return activities;
}
@JsonProperty(JSON_PROPERTY_ACTIVITIES)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setActivities(List> activities) {
this.activities = activities;
}
public FlowElementContainerDefinition transitions(List> transitions) {
this.transitions = transitions;
return this;
}
public FlowElementContainerDefinition addTransitionsItem(Map transitionsItem) {
if (this.transitions == null) {
this.transitions = new ArrayList<>();
}
this.transitions.add(transitionsItem);
return this;
}
/**
* Get transitions
*
* @return transitions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_TRANSITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getTransitions() {
return transitions;
}
@JsonProperty(JSON_PROPERTY_TRANSITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setTransitions(List> transitions) {
this.transitions = transitions;
}
public FlowElementContainerDefinition gatewaysList(List> gatewaysList) {
this.gatewaysList = gatewaysList;
return this;
}
public FlowElementContainerDefinition addGatewaysListItem(Map gatewaysListItem) {
if (this.gatewaysList == null) {
this.gatewaysList = new ArrayList<>();
}
this.gatewaysList.add(gatewaysListItem);
return this;
}
/**
* Get gatewaysList
*
* @return gatewaysList
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_GATEWAYS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getGatewaysList() {
return gatewaysList;
}
@JsonProperty(JSON_PROPERTY_GATEWAYS_LIST)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setGatewaysList(List> gatewaysList) {
this.gatewaysList = gatewaysList;
}
public FlowElementContainerDefinition startEvents(List> startEvents) {
this.startEvents = startEvents;
return this;
}
public FlowElementContainerDefinition addStartEventsItem(Map startEventsItem) {
if (this.startEvents == null) {
this.startEvents = new ArrayList<>();
}
this.startEvents.add(startEventsItem);
return this;
}
/**
* Get startEvents
*
* @return startEvents
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_START_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getStartEvents() {
return startEvents;
}
@JsonProperty(JSON_PROPERTY_START_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setStartEvents(List> startEvents) {
this.startEvents = startEvents;
}
public FlowElementContainerDefinition intermediateCatchEvents(List> intermediateCatchEvents) {
this.intermediateCatchEvents = intermediateCatchEvents;
return this;
}
public FlowElementContainerDefinition addIntermediateCatchEventsItem(
Map intermediateCatchEventsItem) {
if (this.intermediateCatchEvents == null) {
this.intermediateCatchEvents = new ArrayList<>();
}
this.intermediateCatchEvents.add(intermediateCatchEventsItem);
return this;
}
/**
* Get intermediateCatchEvents
*
* @return intermediateCatchEvents
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INTERMEDIATE_CATCH_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getIntermediateCatchEvents() {
return intermediateCatchEvents;
}
@JsonProperty(JSON_PROPERTY_INTERMEDIATE_CATCH_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIntermediateCatchEvents(List> intermediateCatchEvents) {
this.intermediateCatchEvents = intermediateCatchEvents;
}
public FlowElementContainerDefinition intermediateThrowEvents(List> intermediateThrowEvents) {
this.intermediateThrowEvents = intermediateThrowEvents;
return this;
}
public FlowElementContainerDefinition addIntermediateThrowEventsItem(
Map intermediateThrowEventsItem) {
if (this.intermediateThrowEvents == null) {
this.intermediateThrowEvents = new ArrayList<>();
}
this.intermediateThrowEvents.add(intermediateThrowEventsItem);
return this;
}
/**
* Get intermediateThrowEvents
*
* @return intermediateThrowEvents
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_INTERMEDIATE_THROW_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getIntermediateThrowEvents() {
return intermediateThrowEvents;
}
@JsonProperty(JSON_PROPERTY_INTERMEDIATE_THROW_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setIntermediateThrowEvents(List> intermediateThrowEvents) {
this.intermediateThrowEvents = intermediateThrowEvents;
}
public FlowElementContainerDefinition endEvents(List> endEvents) {
this.endEvents = endEvents;
return this;
}
public FlowElementContainerDefinition addEndEventsItem(Map endEventsItem) {
if (this.endEvents == null) {
this.endEvents = new ArrayList<>();
}
this.endEvents.add(endEventsItem);
return this;
}
/**
* Get endEvents
*
* @return endEvents
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_END_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getEndEvents() {
return endEvents;
}
@JsonProperty(JSON_PROPERTY_END_EVENTS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEndEvents(List> endEvents) {
this.endEvents = endEvents;
}
public FlowElementContainerDefinition dataDefinitions(List> dataDefinitions) {
this.dataDefinitions = dataDefinitions;
return this;
}
public FlowElementContainerDefinition addDataDefinitionsItem(Map dataDefinitionsItem) {
if (this.dataDefinitions == null) {
this.dataDefinitions = new ArrayList<>();
}
this.dataDefinitions.add(dataDefinitionsItem);
return this;
}
/**
* Get dataDefinitions
*
* @return dataDefinitions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DATA_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getDataDefinitions() {
return dataDefinitions;
}
@JsonProperty(JSON_PROPERTY_DATA_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDataDefinitions(List> dataDefinitions) {
this.dataDefinitions = dataDefinitions;
}
public FlowElementContainerDefinition documentDefinitions(List> documentDefinitions) {
this.documentDefinitions = documentDefinitions;
return this;
}
public FlowElementContainerDefinition addDocumentDefinitionsItem(Map documentDefinitionsItem) {
if (this.documentDefinitions == null) {
this.documentDefinitions = new ArrayList<>();
}
this.documentDefinitions.add(documentDefinitionsItem);
return this;
}
/**
* Get documentDefinitions
*
* @return documentDefinitions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getDocumentDefinitions() {
return documentDefinitions;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentDefinitions(List> documentDefinitions) {
this.documentDefinitions = documentDefinitions;
}
public FlowElementContainerDefinition connectors(List> connectors) {
this.connectors = connectors;
return this;
}
public FlowElementContainerDefinition addConnectorsItem(Map connectorsItem) {
if (this.connectors == null) {
this.connectors = new ArrayList<>();
}
this.connectors.add(connectorsItem);
return this;
}
/**
* Get connectors
*
* @return connectors
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_CONNECTORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getConnectors() {
return connectors;
}
@JsonProperty(JSON_PROPERTY_CONNECTORS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setConnectors(List> connectors) {
this.connectors = connectors;
}
public FlowElementContainerDefinition businessDataDefinitions(List> businessDataDefinitions) {
this.businessDataDefinitions = businessDataDefinitions;
return this;
}
public FlowElementContainerDefinition addBusinessDataDefinitionsItem(
Map businessDataDefinitionsItem) {
if (this.businessDataDefinitions == null) {
this.businessDataDefinitions = new ArrayList<>();
}
this.businessDataDefinitions.add(businessDataDefinitionsItem);
return this;
}
/**
* Get businessDataDefinitions
*
* @return businessDataDefinitions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_BUSINESS_DATA_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getBusinessDataDefinitions() {
return businessDataDefinitions;
}
@JsonProperty(JSON_PROPERTY_BUSINESS_DATA_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setBusinessDataDefinitions(List> businessDataDefinitions) {
this.businessDataDefinitions = businessDataDefinitions;
}
public FlowElementContainerDefinition documentListDefinitions(List> documentListDefinitions) {
this.documentListDefinitions = documentListDefinitions;
return this;
}
public FlowElementContainerDefinition addDocumentListDefinitionsItem(
Map documentListDefinitionsItem) {
if (this.documentListDefinitions == null) {
this.documentListDefinitions = new ArrayList<>();
}
this.documentListDefinitions.add(documentListDefinitionsItem);
return this;
}
/**
* Get documentListDefinitions
*
* @return documentListDefinitions
*/
@jakarta.annotation.Nullable
@JsonProperty(JSON_PROPERTY_DOCUMENT_LIST_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List> getDocumentListDefinitions() {
return documentListDefinitions;
}
@JsonProperty(JSON_PROPERTY_DOCUMENT_LIST_DEFINITIONS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setDocumentListDefinitions(List> documentListDefinitions) {
this.documentListDefinitions = documentListDefinitions;
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
FlowElementContainerDefinition flowElementContainerDefinition = (FlowElementContainerDefinition) o;
return Objects.equals(this.activities, flowElementContainerDefinition.activities) &&
Objects.equals(this.transitions, flowElementContainerDefinition.transitions) &&
Objects.equals(this.gatewaysList, flowElementContainerDefinition.gatewaysList) &&
Objects.equals(this.startEvents, flowElementContainerDefinition.startEvents) &&
Objects.equals(this.intermediateCatchEvents, flowElementContainerDefinition.intermediateCatchEvents) &&
Objects.equals(this.intermediateThrowEvents, flowElementContainerDefinition.intermediateThrowEvents) &&
Objects.equals(this.endEvents, flowElementContainerDefinition.endEvents) &&
Objects.equals(this.dataDefinitions, flowElementContainerDefinition.dataDefinitions) &&
Objects.equals(this.documentDefinitions, flowElementContainerDefinition.documentDefinitions) &&
Objects.equals(this.connectors, flowElementContainerDefinition.connectors) &&
Objects.equals(this.businessDataDefinitions, flowElementContainerDefinition.businessDataDefinitions) &&
Objects.equals(this.documentListDefinitions, flowElementContainerDefinition.documentListDefinitions);
}
@Override
public int hashCode() {
return Objects.hash(activities, transitions, gatewaysList, startEvents, intermediateCatchEvents,
intermediateThrowEvents, endEvents, dataDefinitions, documentDefinitions, connectors,
businessDataDefinitions, documentListDefinitions);
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FlowElementContainerDefinition {\n");
sb.append(" activities: ").append(toIndentedString(activities)).append("\n");
sb.append(" transitions: ").append(toIndentedString(transitions)).append("\n");
sb.append(" gatewaysList: ").append(toIndentedString(gatewaysList)).append("\n");
sb.append(" startEvents: ").append(toIndentedString(startEvents)).append("\n");
sb.append(" intermediateCatchEvents: ").append(toIndentedString(intermediateCatchEvents)).append("\n");
sb.append(" intermediateThrowEvents: ").append(toIndentedString(intermediateThrowEvents)).append("\n");
sb.append(" endEvents: ").append(toIndentedString(endEvents)).append("\n");
sb.append(" dataDefinitions: ").append(toIndentedString(dataDefinitions)).append("\n");
sb.append(" documentDefinitions: ").append(toIndentedString(documentDefinitions)).append("\n");
sb.append(" connectors: ").append(toIndentedString(connectors)).append("\n");
sb.append(" businessDataDefinitions: ").append(toIndentedString(businessDataDefinitions)).append("\n");
sb.append(" documentListDefinitions: ").append(toIndentedString(documentListDefinitions)).append("\n");
sb.append("}");
return sb.toString();
}
/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}
}