org.codehaus.enunciate.modules.jaxws.fault-bean.fmt Maven / Gradle / Ivy
Go to download
The Enunciate JAX-WS module generates the JAX-WS wrapper classes for the Enunciated project.
The newest version!
[#ftl]
[#-- @ftlvariable name="message" type="org.codehaus.enunciate.contract.jaxb.ImplicitRootElement" --]
[#--template for the client-side endpoint interface.--]
[#assign beanfqn=message.implicitFaultBeanQualifiedName/]
[#assign beanPackage=beanfqn[0..(beanfqn?last_index_of(".") - 1)]/]
[#assign simpleBeanName=beanfqn[(beanfqn?last_index_of(".") + 1)..]/]
[@file name=(simpleBeanName + ".java") package=beanPackage charset="utf-8"]
// Generated by Enunciate
package ${beanPackage};
/**
* Fault bean for the ${message.elementName} fault.
*/
@javax.xml.bind.annotation.XmlRootElement (
name = "${message.elementName}",
namespace = "${message.targetNamespace}"
)
@javax.xml.bind.annotation.XmlType (
propOrder = { [#list message.childElements as childElement]"${childElement.elementName?uncap_first}"[#if childElement_has_next], [/#if][/#list] }
)
public class ${simpleBeanName} {
[#list message.childElements as childElement]
private ${childElement.type} ${childElement.elementName};
[/#list]
[#list message.childElements as childElement]
/**
* ${childElement.elementDocs?default("(no documentation provided)")?chop_linebreak?replace("\n", "\n * ")}
*/
[#if childElement.mimeType??]
@javax.xml.bind.annotation.XmlMimeType("${childElement.mimeType}")
[/#if]
[#if childElement.swaRef]
@javax.xml.bind.annotation.XmlAttachmentRef
[/#if]
public ${childElement.type} get${childElement.elementName?cap_first}() {
return this.${childElement.elementName};
}
/**
* ${childElement.elementDocs?default("(no documentation provided)")?chop_linebreak?replace("\n", "\n * ")}
*/
public void set${childElement.elementName?cap_first}(${childElement.type} ${childElement.elementName}) {
this.${childElement.elementName} = ${childElement.elementName};
}
[/#list]
}
[/@file]