objectfactory.java

来自「resetful样式的ws样例,一种面向资源的webservices服务」· Java 代码 · 共 175 行

JAVA
175
字号
//// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vhudson-jaxb-ri-2.1-375 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> // Any modifications to this file will be lost upon recompilation of the source schema. // Generated on: 2008.06.19 at 08:53:00 AM PDT //package com.sun.research.ws.wadl;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.sun.research.ws.wadl 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. *  */@XmlRegistrypublic class ObjectFactory {    private final static QName _Representation_QNAME = new QName("http://research.sun.com/wadl/2006/10", "representation");    private final static QName _Fault_QNAME = new QName("http://research.sun.com/wadl/2006/10", "fault");    /**     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.sun.research.ws.wadl     *      */    public ObjectFactory() {    }    /**     * Create an instance of {@link Application }     *      */    public Application createApplication() {        return new Application();    }    /**     * Create an instance of {@link RepresentationType }     *      */    public RepresentationType createRepresentationType() {        return new RepresentationType();    }    /**     * Create an instance of {@link Method }     *      */    public Method createMethod() {        return new Method();    }    /**     * Create an instance of {@link Include }     *      */    public Include createInclude() {        return new Include();    }    /**     * Create an instance of {@link Resources }     *      */    public Resources createResources() {        return new Resources();    }    /**     * Create an instance of {@link Resource }     *      */    public Resource createResource() {        return new Resource();    }    /**     * Create an instance of {@link Param }     *      */    public Param createParam() {        return new Param();    }    /**     * Create an instance of {@link Response }     *      */    public Response createResponse() {        return new Response();    }    /**     * Create an instance of {@link Link }     *      */    public Link createLink() {        return new Link();    }    /**     * Create an instance of {@link Option }     *      */    public Option createOption() {        return new Option();    }    /**     * Create an instance of {@link Grammars }     *      */    public Grammars createGrammars() {        return new Grammars();    }    /**     * Create an instance of {@link Request }     *      */    public Request createRequest() {        return new Request();    }    /**     * Create an instance of {@link ResourceType }     *      */    public ResourceType createResourceType() {        return new ResourceType();    }    /**     * Create an instance of {@link Doc }     *      */    public Doc createDoc() {        return new Doc();    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link RepresentationType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://research.sun.com/wadl/2006/10", name = "representation")    public JAXBElement<RepresentationType> createRepresentation(RepresentationType value) {        return new JAXBElement<RepresentationType>(_Representation_QNAME, RepresentationType.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link RepresentationType }{@code >}}     *      */    @XmlElementDecl(namespace = "http://research.sun.com/wadl/2006/10", name = "fault")    public JAXBElement<RepresentationType> createFault(RepresentationType value) {        return new JAXBElement<RepresentationType>(_Fault_QNAME, RepresentationType.class, null, value);    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?