| 1 | /* |
|---|
| 2 | * Copyright 2010, Plutext Pty Ltd. |
|---|
| 3 | * |
|---|
| 4 | * This file is part of docx4j. |
|---|
| 5 | |
|---|
| 6 | docx4j is licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 7 | you may not use this file except in compliance with the License. |
|---|
| 8 | |
|---|
| 9 | You may obtain a copy of the License at |
|---|
| 10 | |
|---|
| 11 | http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 12 | |
|---|
| 13 | Unless required by applicable law or agreed to in writing, software |
|---|
| 14 | distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 15 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 16 | See the License for the specific language governing permissions and |
|---|
| 17 | limitations under the License. |
|---|
| 18 | |
|---|
| 19 | */ |
|---|
| 20 | |
|---|
| 21 | package org.docx4j.openpackaging.contenttype; |
|---|
| 22 | |
|---|
| 23 | import javax.xml.bind.JAXBElement; |
|---|
| 24 | import javax.xml.bind.annotation.XmlElementDecl; |
|---|
| 25 | import javax.xml.bind.annotation.XmlRegistry; |
|---|
| 26 | import javax.xml.namespace.QName; |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | /** |
|---|
| 30 | * This object contains factory methods for each |
|---|
| 31 | * Java content interface and Java element interface |
|---|
| 32 | * generated in the org.docx4j.openpackaging.contenttype package. |
|---|
| 33 | * <p>An ObjectFactory allows you to programatically |
|---|
| 34 | * construct new instances of the Java representation |
|---|
| 35 | * for XML content. The Java representation of XML |
|---|
| 36 | * content can consist of schema derived interfaces |
|---|
| 37 | * and classes representing the binding of schema |
|---|
| 38 | * type definitions, element declarations and model |
|---|
| 39 | * groups. Factory methods for each of these are |
|---|
| 40 | * provided in this class. |
|---|
| 41 | * |
|---|
| 42 | */ |
|---|
| 43 | @XmlRegistry |
|---|
| 44 | public class ObjectFactory { |
|---|
| 45 | |
|---|
| 46 | private final static QName _Override_QNAME = new QName("http://schemas.openxmlformats.org/package/2006/content-types", "Override"); |
|---|
| 47 | private final static QName _Types_QNAME = new QName("http://schemas.openxmlformats.org/package/2006/content-types", "Types"); |
|---|
| 48 | private final static QName _Default_QNAME = new QName("http://schemas.openxmlformats.org/package/2006/content-types", "Default"); |
|---|
| 49 | |
|---|
| 50 | /** |
|---|
| 51 | * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.docx4j.openpackaging.contenttype |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | public ObjectFactory() { |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | /** |
|---|
| 58 | * Create an instance of {@link CTOverride } |
|---|
| 59 | * |
|---|
| 60 | */ |
|---|
| 61 | public CTOverride createCTOverride() { |
|---|
| 62 | return new CTOverride(); |
|---|
| 63 | } |
|---|
| 64 | |
|---|
| 65 | /** |
|---|
| 66 | * Create an instance of {@link CTTypes } |
|---|
| 67 | * |
|---|
| 68 | */ |
|---|
| 69 | public CTTypes createCTTypes() { |
|---|
| 70 | return new CTTypes(); |
|---|
| 71 | } |
|---|
| 72 | |
|---|
| 73 | /** |
|---|
| 74 | * Create an instance of {@link CTDefault } |
|---|
| 75 | * |
|---|
| 76 | */ |
|---|
| 77 | public CTDefault createCTDefault() { |
|---|
| 78 | return new CTDefault(); |
|---|
| 79 | } |
|---|
| 80 | |
|---|
| 81 | /** |
|---|
| 82 | * Create an instance of {@link JAXBElement }{@code <}{@link CTOverride }{@code >}} |
|---|
| 83 | * |
|---|
| 84 | */ |
|---|
| 85 | @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/package/2006/content-types", name = "Override") |
|---|
| 86 | public JAXBElement<CTOverride> createOverride(CTOverride value) { |
|---|
| 87 | return new JAXBElement<CTOverride>(_Override_QNAME, CTOverride.class, null, value); |
|---|
| 88 | } |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Create an instance of {@link JAXBElement }{@code <}{@link CTTypes }{@code >}} |
|---|
| 92 | * |
|---|
| 93 | */ |
|---|
| 94 | @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/package/2006/content-types", name = "Types") |
|---|
| 95 | public JAXBElement<CTTypes> createTypes(CTTypes value) { |
|---|
| 96 | return new JAXBElement<CTTypes>(_Types_QNAME, CTTypes.class, null, value); |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | /** |
|---|
| 100 | * Create an instance of {@link JAXBElement }{@code <}{@link CTDefault }{@code >}} |
|---|
| 101 | * |
|---|
| 102 | */ |
|---|
| 103 | @XmlElementDecl(namespace = "http://schemas.openxmlformats.org/package/2006/content-types", name = "Default") |
|---|
| 104 | public JAXBElement<CTDefault> createDefault(CTDefault value) { |
|---|
| 105 | return new JAXBElement<CTDefault>(_Default_QNAME, CTDefault.class, null, value); |
|---|
| 106 | } |
|---|
| 107 | |
|---|
| 108 | } |
|---|