vlc.j2c-operation-holder.vm Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of legstar-jaxws-generator Show documentation
Show all versions of legstar-jaxws-generator Show documentation
Generates adapters and proxies for inbound and outbound mainframe integration with Web Services.
##/////////////////////////////////////////////////////////////////////
##Jaxws Operation Holder Template.
##@author Fady
##/////////////////////////////////////////////////////////////////////
#if(${cixsOperation.packageName})
package ${cixsOperation.packageName};
#end
import java.io.Serializable;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;
#if($propertyName == "Request")
#set($holderType = ${cixsOperation.requestHolderType})
#set($holderNamespace = ${cixsOperation.requestHolderNamespace})
#set($cixsStructures = ${cixsOperation.getInput()})
#else
#set($holderType = ${cixsOperation.responseHolderType})
#set($holderNamespace = ${cixsOperation.responseHolderNamespace})
#set($cixsStructures = ${cixsOperation.getOutput()})
#end
#foreach($cixsStructure in $cixsStructures)
import ${helper.getQualClassName(${cixsStructure.jaxbPackageName}, ${cixsStructure.jaxbType})};
#end
/**
* LegStar/Jaxws Operation $propertyName Holder.
* A container class for multi-elements ${propertyName}s.
*
* This class was generated by ${generatorName}.
*/
@XmlRootElement(name = "${holderType}")
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "${holderType}",
namespace = "${holderNamespace}",
propOrder = {
#set($last = ${cixsStructures.size()})
#set($pos = 0)
#foreach($cixsStructure in $cixsStructures)
#set($pos = $pos + 1)
"${cixsStructure.jaxbFieldName}"#if($pos < $last),
#end
#end
})
public class ${holderType}
implements Serializable {
/** Serial version ID. */
private static final long serialVersionUID = 1L;
#foreach($cixsStructure in $cixsStructures)
/** Inner ${cixsStructure.jaxbType} JAXB-bound object. */
@XmlElement(name = "${cixsStructure.jaxbType}",
namespace = "${cixsStructure.jaxbNamespace}",
required = true)
private ${cixsStructure.jaxbType} ${cixsStructure.jaxbFieldName};
#end
#foreach($cixsStructure in $cixsStructures)
/**
* Get the inner ${cixsStructure.jaxbType} JAXB-bound object.
*
* @return JAXB-bound object
*/
public ${cixsStructure.jaxbType} get${cixsStructure.jaxbPropertyName}() {
return ${cixsStructure.jaxbFieldName};
}
/**
* Set the inner ${cixsStructure.jaxbType} JAXB-bound object.
*
* @param value JAXB-bound object
*/
public void set${cixsStructure.jaxbPropertyName}(
final ${cixsStructure.jaxbType} value) {
${cixsStructure.jaxbFieldName} = value;
}
#end
}