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

org.codehaus.enunciate.modules.jaxws.request-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]
[#--template for the client-side endpoint interface.--]
[#assign beanfqn=message.requestBeanName/]
[#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};

/**
 * Request bean for the ${message.elementName} operation.
 */
@javax.xml.bind.annotation.XmlRootElement (
  name = "${message.elementName}",
  namespace = "${message.elementNamespace}"
)
@javax.xml.bind.annotation.XmlType (
  name = "${message.elementName}",
  namespace = "${message.elementNamespace}",
  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]




© 2015 - 2024 Weber Informatics LLC | Privacy Policy