blob: 59a1846fbf0412464e87d1448631beac4c6af01a [file] [log] [blame]
/**
* Copyright (c) 2011, 2016 - Loetz GmbH&Co.KG (69115 Heidelberg, Germany)
*
* 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:
* Christophe Loetz (Loetz GmbH&Co.KG) - initial implementation
*
*
* This copyright notice shows up in the generated Java code
*/
package org.eclipse.osbp.xtext.topologydsl.jvmmodel;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.osbp.xtext.topologydsl.Topology;
import org.eclipse.osbp.xtext.topologydsl.TopologyPackage;
@SuppressWarnings("all")
public class D3JsJavaUtil {
private String postFix = "Topology";
private String createfullyQualifiedFilename(final Topology topology) {
EObject _eContainer = topology.eContainer();
TopologyPackage pckg = ((TopologyPackage) _eContainer);
return pckg.getName().toString().concat(".").concat(topology.getName().toString()).concat(this.postFix);
}
private String createFilename(final Topology topology) {
return topology.getName().toString().concat(this.postFix);
}
public String createTopologyFilename(final Topology topology) {
return this.createFilename(topology).concat("JsTopology");
}
public String createfullyQualifiedTopologyFilename(final Topology topology) {
return this.createfullyQualifiedFilename(topology).concat("JsTopology");
}
public String createTopologyJsFilename(final Topology topology) {
return this.createFilename(topology).concat(".js");
}
public String createfullyQualifiedStateFilename(final Topology topology) {
return this.createfullyQualifiedFilename(topology).concat("JsState");
}
public String createStateFilename(final Topology topology) {
return this.createFilename(topology).concat("JsState");
}
}