blob: 1b1b4c22d7abad3778bb17f17b83aa1da1ef1bdc [file] [log] [blame]
/**
********************************************************************************
* Copyright (c) 2018-2021 Robert Bosch GmbH and others.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Robert Bosch GmbH - initial API and implementation
********************************************************************************
*/
package app4mc.example.transform.m2t.cust.transformers
import org.eclipse.app4mc.amalthea.model.Amalthea
import org.osgi.service.component.annotations.Component
import app4mc.example.transform.m2t.transformers.M2T_Output_Transformer
@Component(
property = #[ "service.ranking:Integer=10" ],
service = M2T_Output_Transformer
)
class CustTransformer extends M2T_Output_Transformer {
/**
* Creates output with a "template only" style (like Xpand/Xtend).
*/
override String generateOutput1(Amalthea amalthea) '''
Customer template
«super.generateOutput1(amalthea)»
'''
/**
* Creates output with a combination of template and functions.
* This allows a more flexible use of utility functions and lambdas.
*/
override String generateOutput2(Amalthea amalthea) '''
Customer template
«super.generateOutput2(amalthea)»
'''
}