⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 objectfactory.java

📁 关于字符串的转换,格式方面的转换程序,可以用来在程序中的转换
💻 JAVA
字号:
/** Licensed to the Apache Software Foundation (ASF) under one* or more contributor license agreements. See the NOTICE file* distributed with this work for additional information* regarding copyright ownership. The ASF licenses this file* to you under the Apache License, Version 2.0 (the* "License"); you may not use this file except in compliance* with the License. You may obtain a copy of the License at** http://www.apache.org/licenses/LICENSE-2.0** Unless required by applicable law or agreed to in writing,* software distributed under the License is distributed on an* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY* KIND, either express or implied. See the License for the* specific language governing permissions and limitations* under the License.*/package com.microsoft.schemas._2003._10.serialization;import java.math.BigDecimal;import java.math.BigInteger;import javax.xml.bind.JAXBElement;import javax.xml.bind.annotation.XmlElementDecl;import javax.xml.bind.annotation.XmlRegistry;import javax.xml.datatype.Duration;import javax.xml.datatype.XMLGregorianCalendar;import javax.xml.namespace.QName;/** * This object contains factory methods for each  * Java content interface and Java element interface  * generated in the com.microsoft.schemas._2003._10.serialization 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 _UnsignedLong_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedLong");    private final static QName _String_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "string");    private final static QName _Duration_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "duration");    private final static QName _Guid_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "guid");    private final static QName _Decimal_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "decimal");    private final static QName _UnsignedInt_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedInt");    private final static QName _Short_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "short");    private final static QName _UnsignedShort_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedShort");    private final static QName _QName_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "QName");    private final static QName _DateTime_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "dateTime");    private final static QName _Double_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "double");    private final static QName _Int_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "int");    private final static QName _AnyType_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyType");    private final static QName _UnsignedByte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "unsignedByte");    private final static QName _Boolean_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "boolean");    private final static QName _Byte_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "byte");    private final static QName _Base64Binary_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "base64Binary");    private final static QName _Long_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "long");    private final static QName _Float_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "float");    private final static QName _Char_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "char");    private final static QName _AnyURI_QNAME = new QName("http://schemas.microsoft.com/2003/10/Serialization/", "anyURI");    /**     * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: com.microsoft.schemas._2003._10.serialization     *      */    public ObjectFactory() {    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link BigInteger }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedLong")    public JAXBElement<BigInteger> createUnsignedLong(BigInteger value) {        return new JAXBElement<BigInteger>(_UnsignedLong_QNAME, BigInteger.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "string")    public JAXBElement<String> createString(String value) {        return new JAXBElement<String>(_String_QNAME, String.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Duration }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "duration")    public JAXBElement<Duration> createDuration(Duration value) {        return new JAXBElement<Duration>(_Duration_QNAME, Duration.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "guid")    public JAXBElement<String> createGuid(String value) {        return new JAXBElement<String>(_Guid_QNAME, String.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link BigDecimal }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "decimal")    public JAXBElement<BigDecimal> createDecimal(BigDecimal value) {        return new JAXBElement<BigDecimal>(_Decimal_QNAME, BigDecimal.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedInt")    public JAXBElement<Long> createUnsignedInt(Long value) {        return new JAXBElement<Long>(_UnsignedInt_QNAME, Long.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "short")    public JAXBElement<Short> createShort(Short value) {        return new JAXBElement<Short>(_Short_QNAME, Short.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedShort")    public JAXBElement<Integer> createUnsignedShort(Integer value) {        return new JAXBElement<Integer>(_UnsignedShort_QNAME, Integer.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link QName }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "QName")    public JAXBElement<QName> createQName(QName value) {        return new JAXBElement<QName>(_QName_QNAME, QName.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link XMLGregorianCalendar }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "dateTime")    public JAXBElement<XMLGregorianCalendar> createDateTime(XMLGregorianCalendar value) {        return new JAXBElement<XMLGregorianCalendar>(_DateTime_QNAME, XMLGregorianCalendar.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Double }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "double")    public JAXBElement<Double> createDouble(Double value) {        return new JAXBElement<Double>(_Double_QNAME, Double.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "int")    public JAXBElement<Integer> createInt(Integer value) {        return new JAXBElement<Integer>(_Int_QNAME, Integer.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Object }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyType")    public JAXBElement<Object> createAnyType(Object value) {        return new JAXBElement<Object>(_AnyType_QNAME, Object.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Short }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "unsignedByte")    public JAXBElement<Short> createUnsignedByte(Short value) {        return new JAXBElement<Short>(_UnsignedByte_QNAME, Short.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Boolean }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "boolean")    public JAXBElement<Boolean> createBoolean(Boolean value) {        return new JAXBElement<Boolean>(_Boolean_QNAME, Boolean.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Byte }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "byte")    public JAXBElement<Byte> createByte(Byte value) {        return new JAXBElement<Byte>(_Byte_QNAME, Byte.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link byte[]}{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "base64Binary")    public JAXBElement<byte[]> createBase64Binary(byte[] value) {        return new JAXBElement<byte[]>(_Base64Binary_QNAME, byte[].class, null, ((byte[]) value));    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Long }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "long")    public JAXBElement<Long> createLong(Long value) {        return new JAXBElement<Long>(_Long_QNAME, Long.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Float }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "float")    public JAXBElement<Float> createFloat(Float value) {        return new JAXBElement<Float>(_Float_QNAME, Float.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link Integer }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "char")    public JAXBElement<Integer> createChar(Integer value) {        return new JAXBElement<Integer>(_Char_QNAME, Integer.class, null, value);    }    /**     * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}}     *      */    @XmlElementDecl(namespace = "http://schemas.microsoft.com/2003/10/Serialization/", name = "anyURI")    public JAXBElement<String> createAnyURI(String value) {        return new JAXBElement<String>(_AnyURI_QNAME, String.class, null, value);    }}

⌨️ 快捷键说明

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