blob: 7c6fcd6fa3b2ac01b3788bd451939f2b5cfee77a [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 org.eclipse.papyrus.uml.diagram.clazz.lf.classtextualedition.factory.BasicFactory;
public class JsonStructuresFactory extends BasicFactory {
private static JsonStructuresFactory instance;
/**
*
* Constructor.
*
*/
private JsonStructuresFactory() {
// to prevent instantiation
}
/**
* This method returns the instance (singleton) to use as a factory.
*
* @return instance/factory
*/
public static JsonStructuresFactory getInstance() {
if (instance == null) {
instance = new JsonStructuresFactory();
}
return instance;
}
public JsonUmlClass createJsonUmlClass() {
return new JsonUmlClass();
}
public JsonUmlOperation createJsonUmlOperation() {
return new JsonUmlOperation();
}
public JsonUmlOperationParameter createJsonUmlOperationParameter() {
return new JsonUmlOperationParameter();
}
public JsonUmlProperty createJsonUmlProperty() {
return new JsonUmlProperty();
}
}