| /***************************************************************************** |
| * 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; |
| |
| /** |
| * This class aims at defining a structure for Uml Parameter for json messages |
| * exchanged during the mapping between Papyrus and the Javascript textual |
| * editor. The needed properties are those of a Uml Parameter: name, type, |
| * direction, unique, ordered and sequence. |
| */ |
| |
| public class JsonUmlOperationParameter { |
| |
| private boolean unique; |
| private boolean ordered; |
| private boolean sequence; |
| private String name; |
| private String type; |
| private int lower; |
| private int upper; |
| private String direction; |
| |
| JsonUmlOperationParameter() { |
| |
| } |
| |
| 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 String getName() { |
| return name; |
| } |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| public String getType() { |
| return type; |
| } |
| |
| public void setType(String type) { |
| this.type = type; |
| } |
| |
| public int getLower() { |
| return lower; |
| } |
| |
| public void setLower(int lower) { |
| this.lower = lower; |
| } |
| |
| public int getUpper() { |
| return upper; |
| } |
| |
| public void setUpper(int upper) { |
| this.upper = upper; |
| } |
| |
| public String getDirection() { |
| return direction; |
| } |
| |
| public void setDirection(String direction) { |
| this.direction = direction; |
| } |
| |
| } |