All Downloads are FREE. Search and download functionalities are using the official Maven repository.

templates.event_impl_java.ftl Maven / Gradle / Ivy

Go to download

Kurento Client The Kurento Client project allows server applications to control media server resources.

There is a newer version: 7.1.0
Show newest version
${packageToFolder(module.code.api.java.packageName)}/${event.name}Event.java
<#include "macros.ftm" >
/**
 * This file is generated with Kurento ktool-rom-processor.
 * Please don't edit. Changes should go to kms-interface-rom and
 * ktool-rom-processor templates.
 */
package ${module.code.api.java.packageName};

<#if module.code.api.java.packageName != "org.kurento.client">
import org.kurento.client.*;


<@comment "${event.doc}" />
public class ${event.name}Event <#if event.extends??>extends ${event.extends.name}Event<#else>implements Event {

<#list event.properties as property>
	<#lt><@comment property.doc />
	private ${getJavaObjectType(property.type, false)} ${property.name};


  <@comment event.doc event.parentProperties + event.properties />
  public ${event.name}Event(<#rt>
     <#assign first=true>
     <#lt><#list event.parentProperties as property><#if first><#assign first=false><#else>, @org.kurento.client.internal.server.Param("${property.name}") ${getJavaObjectType(property.type, false)} ${property.name}<#rt>
     <#lt><#list event.properties as property><#if first><#assign first=false><#else>, @org.kurento.client.internal.server.Param("${property.name}") ${getJavaObjectType(property.type, false)} ${property.name}) {
    super(<#list event.parentProperties as property>${property.name}<#if property_has_next>, );
     <#list event.properties as property>
    this.${property.name} = ${property.name};
     
  }

	<#list event.properties as property>
	<#assign par=[] />
	<#lt><@comment "Getter for the ${property.name} property" par property />
	public ${getJavaObjectType(property.type,false)} get${property.name?cap_first}() {
		return ${property.name};
	}

    <#assign par=[property] />
    <#lt><@comment "Setter for the ${property.name} property" par />
	public void set${property.name?cap_first}(${getJavaObjectType(property.type,false)} ${property.name}) {
		this.${property.name} = ${property.name};
	}

    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy