| /***************************************************************************** |
| * 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 Classes for json messages |
| * exchanged during the mapping between Papyrus and the Javascript textual |
| * editor. The needed properties are a name, a list of properties and a list of |
| * operations. |
| */ |
| public class JsonUmlClass { |
| |
| private String name; |
| private List<JsonUmlProperty> properties; |
| private List<JsonUmlOperation> operations; |
| |
| JsonUmlClass() { |
| this.properties = new ArrayList<>(); |
| this.operations = new ArrayList<>(); |
| } |
| |
| public String getName() { |
| return name; |
| } |
| |
| public void setName(String name) { |
| this.name = name; |
| } |
| |
| public List<JsonUmlProperty> getProperties() { |
| return properties; |
| } |
| |
| public void setProperties(List<JsonUmlProperty> properties) { |
| this.properties = properties; |
| } |
| |
| public List<JsonUmlOperation> getOperations() { |
| return operations; |
| } |
| |
| public void setOperations(List<JsonUmlOperation> operations) { |
| this.operations = operations; |
| } |
| |
| } |