blob: d9e9f8e08e855f6cfb7865fd843cb6fb91b07532 [file] [log] [blame]
/*****************************************************************************
* Copyright (c) 2019 CEA LIST.
*
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Xavier Le Pallec (for CEA LIST) xlepallec@lilo.org - Bug 558456
*
*****************************************************************************/
package org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.mapping.jsonstructures;
import java.util.ArrayList;
import java.util.List;
/**
* This class aims at defining a structure for Uml Operation for json messages
* exchanged during the mapping between Papyrus and the Javascript textual
* editor. The needed properties are those of a Uml Operation: name, visibility,
* query, unique, ordered, sequence, redefines and a list of parameters.
*/
public class JsonUmlOperation {
private boolean query;
private boolean unique;
private boolean ordered;
private boolean sequence;
private boolean redefines;
private String redefinesProperty;
private String name;
private String visibility;
private List<JsonUmlOperationParameter> parameters;
JsonUmlOperation() {
this.parameters = new ArrayList<>();
}
public boolean isUnique() {
return unique;
}
public void setUnique(boolean unique) {
this.unique = unique;
}
public boolean isOrdered() {
return ordered;
}
public void setOrdered(boolean ordered) {
this.ordered = ordered;
}
public boolean isSequence() {
return sequence;
}
public void setSequence(boolean sequence) {
this.sequence = sequence;
}
public boolean isRedefines() {
return redefines;
}
public void setRedefines(boolean redefines) {
this.redefines = redefines;
}
public String getRedefinesProperty() {
return redefinesProperty;
}
public void setRedefinesProperty(String redefinesProperty) {
this.redefinesProperty = redefinesProperty;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getVisibility() {
return visibility;
}
public void setVisibility(String visibility) {
this.visibility = visibility;
}
public boolean isQuery() {
return query;
}
public void setQuery(boolean query) {
this.query = query;
}
public List<JsonUmlOperationParameter> getParameters() {
return parameters;
}
public void setParameters(List<JsonUmlOperationParameter> parameters) {
this.parameters = parameters;
}
}