java类代码和xml配置文件.zip

  • d9_234670
    了解作者
  • 10.6KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • VIP专享
    资源类型
  • 0
    下载次数
  • 2022-06-11 19:23
    上传日期
这是文章中第二个实例的代码和配置文件内容
java类代码和xml配置文件.zip
内容介绍
package com.test.server; import javax.xml.bind.JAXBElement; import javax.xml.bind.annotation.XmlElementDecl; import javax.xml.bind.annotation.XmlRegistry; import javax.xml.namespace.QName; /** * This object contains factory methods for each * Java content interface and Java element interface * generated in the com.test.server package. * <p>An ObjectFactory allows you to programatically * construct new instances of the Java representation * for XML content. The Java representation of XML * content can consist of schema derived interfaces * and classes representing the binding of schema * type definitions, element declarations and model * groups. Factory methods for each of these are * provided in this class. * */ @XmlRegistry public class ObjectFactory { private final static QName _SayHello_QNAME = new QName("http://server.test.com/", "sayHello"); private final static QName _SayHelloResponse_QNAME = new QName("http://server.test.com/", "sayHelloResponse"); /** * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.test.server * */ public ObjectFactory() { } /** * Create an instance of {@link SayHelloResponse } * */ public SayHelloResponse createSayHelloResponse() { return new SayHelloResponse(); } /** * Create an instance of {@link SayHello } * */ public SayHello createSayHello() { return new SayHello(); } /** * Create an instance of {@link JAXBElement }{@code <}{@link SayHello }{@code >}} * */ @XmlElementDecl(namespace = "http://server.test.com/", name = "sayHello") public JAXBElement<SayHello> createSayHello(SayHello value) { return new JAXBElement<SayHello>(_SayHello_QNAME, SayHello.class, null, value); } /** * Create an instance of {@link JAXBElement }{@code <}{@link SayHelloResponse }{@code >}} * */ @XmlElementDecl(namespace = "http://server.test.com/", name = "sayHelloResponse") public JAXBElement<SayHelloResponse> createSayHelloResponse(SayHelloResponse value) { return new JAXBElement<SayHelloResponse>(_SayHelloResponse_QNAME, SayHelloResponse.class, null, value); } }
评论
    相关推荐