source: trunk/docx4j/src/main/java/org/docx4j/wml/CTWebSettings.java @ 1204

Revision 1204, 17.2 KB checked in by jharrop, 21 months ago (diff)

@XmlRootElement? annotations

Line 
1/*
2 *  Copyright 2007-2008, 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
22package org.docx4j.wml;
23
24import java.math.BigInteger;
25import javax.xml.bind.Unmarshaller;
26import javax.xml.bind.annotation.XmlAccessType;
27import javax.xml.bind.annotation.XmlAccessorType;
28import javax.xml.bind.annotation.XmlAttribute;
29import javax.xml.bind.annotation.XmlRootElement;
30import javax.xml.bind.annotation.XmlTransient;
31import javax.xml.bind.annotation.XmlType;
32import org.jvnet.jaxb2_commons.ppp.Child;
33
34
35/**
36 * <p>Java class for CT_WebSettings complex type.
37 *
38 * <p>The following schema fragment specifies the expected content contained within this class.
39 *
40 * <pre>
41 * &lt;complexType name="CT_WebSettings">
42 *   &lt;complexContent>
43 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
44 *       &lt;sequence>
45 *         &lt;element name="frameset" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Frameset" minOccurs="0"/>
46 *         &lt;element name="divs" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Divs" minOccurs="0"/>
47 *         &lt;element name="encoding" minOccurs="0">
48 *           &lt;complexType>
49 *             &lt;complexContent>
50 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
51 *                 &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
52 *               &lt;/restriction>
53 *             &lt;/complexContent>
54 *           &lt;/complexType>
55 *         &lt;/element>
56 *         &lt;element name="optimizeForBrowser" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
57 *         &lt;element name="relyOnVML" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
58 *         &lt;element name="allowPNG" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
59 *         &lt;element name="doNotRelyOnCSS" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
60 *         &lt;element name="doNotSaveAsSingleFile" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
61 *         &lt;element name="doNotOrganizeInFolder" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
62 *         &lt;element name="doNotUseLongFileNames" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
63 *         &lt;element name="pixelsPerInch" minOccurs="0">
64 *           &lt;complexType>
65 *             &lt;complexContent>
66 *               &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
67 *                 &lt;attribute name="val" use="required">
68 *                   &lt;simpleType>
69 *                     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
70 *                     &lt;/restriction>
71 *                   &lt;/simpleType>
72 *                 &lt;/attribute>
73 *               &lt;/restriction>
74 *             &lt;/complexContent>
75 *           &lt;/complexType>
76 *         &lt;/element>
77 *         &lt;element name="targetScreenSz" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TargetScreenSz" minOccurs="0"/>
78 *         &lt;element name="saveSmartTagsAsXml" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/>
79 *       &lt;/sequence>
80 *     &lt;/restriction>
81 *   &lt;/complexContent>
82 * &lt;/complexType>
83 * </pre>
84 *
85 *
86 */
87@XmlAccessorType(XmlAccessType.FIELD)
88@XmlType(name = "CT_WebSettings", propOrder = {
89    "frameset",
90    "divs",
91    "encoding",
92    "optimizeForBrowser",
93    "relyOnVML",
94    "allowPNG",
95    "doNotRelyOnCSS",
96    "doNotSaveAsSingleFile",
97    "doNotOrganizeInFolder",
98    "doNotUseLongFileNames",
99    "pixelsPerInch",
100    "targetScreenSz",
101    "saveSmartTagsAsXml"
102})
103@XmlRootElement(name = "webSettings")
104public class CTWebSettings
105    implements Child
106{
107
108    protected CTFrameset frameset;
109    protected CTDivs divs;
110    protected CTWebSettings.Encoding encoding;
111    protected BooleanDefaultTrue optimizeForBrowser;
112    protected BooleanDefaultTrue relyOnVML;
113    protected BooleanDefaultTrue allowPNG;
114    protected BooleanDefaultTrue doNotRelyOnCSS;
115    protected BooleanDefaultTrue doNotSaveAsSingleFile;
116    protected BooleanDefaultTrue doNotOrganizeInFolder;
117    protected BooleanDefaultTrue doNotUseLongFileNames;
118    protected CTWebSettings.PixelsPerInch pixelsPerInch;
119    protected CTTargetScreenSz targetScreenSz;
120    protected BooleanDefaultTrue saveSmartTagsAsXml;
121    @XmlTransient
122    private Object parent;
123
124    /**
125     * Gets the value of the frameset property.
126     *
127     * @return
128     *     possible object is
129     *     {@link CTFrameset }
130     *     
131     */
132    public CTFrameset getFrameset() {
133        return frameset;
134    }
135
136    /**
137     * Sets the value of the frameset property.
138     *
139     * @param value
140     *     allowed object is
141     *     {@link CTFrameset }
142     *     
143     */
144    public void setFrameset(CTFrameset value) {
145        this.frameset = value;
146    }
147
148    /**
149     * Gets the value of the divs property.
150     *
151     * @return
152     *     possible object is
153     *     {@link CTDivs }
154     *     
155     */
156    public CTDivs getDivs() {
157        return divs;
158    }
159
160    /**
161     * Sets the value of the divs property.
162     *
163     * @param value
164     *     allowed object is
165     *     {@link CTDivs }
166     *     
167     */
168    public void setDivs(CTDivs value) {
169        this.divs = value;
170    }
171
172    /**
173     * Gets the value of the encoding property.
174     *
175     * @return
176     *     possible object is
177     *     {@link CTWebSettings.Encoding }
178     *     
179     */
180    public CTWebSettings.Encoding getEncoding() {
181        return encoding;
182    }
183
184    /**
185     * Sets the value of the encoding property.
186     *
187     * @param value
188     *     allowed object is
189     *     {@link CTWebSettings.Encoding }
190     *     
191     */
192    public void setEncoding(CTWebSettings.Encoding value) {
193        this.encoding = value;
194    }
195
196    /**
197     * Gets the value of the optimizeForBrowser property.
198     *
199     * @return
200     *     possible object is
201     *     {@link BooleanDefaultTrue }
202     *     
203     */
204    public BooleanDefaultTrue getOptimizeForBrowser() {
205        return optimizeForBrowser;
206    }
207
208    /**
209     * Sets the value of the optimizeForBrowser property.
210     *
211     * @param value
212     *     allowed object is
213     *     {@link BooleanDefaultTrue }
214     *     
215     */
216    public void setOptimizeForBrowser(BooleanDefaultTrue value) {
217        this.optimizeForBrowser = value;
218    }
219
220    /**
221     * Gets the value of the relyOnVML property.
222     *
223     * @return
224     *     possible object is
225     *     {@link BooleanDefaultTrue }
226     *     
227     */
228    public BooleanDefaultTrue getRelyOnVML() {
229        return relyOnVML;
230    }
231
232    /**
233     * Sets the value of the relyOnVML property.
234     *
235     * @param value
236     *     allowed object is
237     *     {@link BooleanDefaultTrue }
238     *     
239     */
240    public void setRelyOnVML(BooleanDefaultTrue value) {
241        this.relyOnVML = value;
242    }
243
244    /**
245     * Gets the value of the allowPNG property.
246     *
247     * @return
248     *     possible object is
249     *     {@link BooleanDefaultTrue }
250     *     
251     */
252    public BooleanDefaultTrue getAllowPNG() {
253        return allowPNG;
254    }
255
256    /**
257     * Sets the value of the allowPNG property.
258     *
259     * @param value
260     *     allowed object is
261     *     {@link BooleanDefaultTrue }
262     *     
263     */
264    public void setAllowPNG(BooleanDefaultTrue value) {
265        this.allowPNG = value;
266    }
267
268    /**
269     * Gets the value of the doNotRelyOnCSS property.
270     *
271     * @return
272     *     possible object is
273     *     {@link BooleanDefaultTrue }
274     *     
275     */
276    public BooleanDefaultTrue getDoNotRelyOnCSS() {
277        return doNotRelyOnCSS;
278    }
279
280    /**
281     * Sets the value of the doNotRelyOnCSS property.
282     *
283     * @param value
284     *     allowed object is
285     *     {@link BooleanDefaultTrue }
286     *     
287     */
288    public void setDoNotRelyOnCSS(BooleanDefaultTrue value) {
289        this.doNotRelyOnCSS = value;
290    }
291
292    /**
293     * Gets the value of the doNotSaveAsSingleFile property.
294     *
295     * @return
296     *     possible object is
297     *     {@link BooleanDefaultTrue }
298     *     
299     */
300    public BooleanDefaultTrue getDoNotSaveAsSingleFile() {
301        return doNotSaveAsSingleFile;
302    }
303
304    /**
305     * Sets the value of the doNotSaveAsSingleFile property.
306     *
307     * @param value
308     *     allowed object is
309     *     {@link BooleanDefaultTrue }
310     *     
311     */
312    public void setDoNotSaveAsSingleFile(BooleanDefaultTrue value) {
313        this.doNotSaveAsSingleFile = value;
314    }
315
316    /**
317     * Gets the value of the doNotOrganizeInFolder property.
318     *
319     * @return
320     *     possible object is
321     *     {@link BooleanDefaultTrue }
322     *     
323     */
324    public BooleanDefaultTrue getDoNotOrganizeInFolder() {
325        return doNotOrganizeInFolder;
326    }
327
328    /**
329     * Sets the value of the doNotOrganizeInFolder property.
330     *
331     * @param value
332     *     allowed object is
333     *     {@link BooleanDefaultTrue }
334     *     
335     */
336    public void setDoNotOrganizeInFolder(BooleanDefaultTrue value) {
337        this.doNotOrganizeInFolder = value;
338    }
339
340    /**
341     * Gets the value of the doNotUseLongFileNames property.
342     *
343     * @return
344     *     possible object is
345     *     {@link BooleanDefaultTrue }
346     *     
347     */
348    public BooleanDefaultTrue getDoNotUseLongFileNames() {
349        return doNotUseLongFileNames;
350    }
351
352    /**
353     * Sets the value of the doNotUseLongFileNames property.
354     *
355     * @param value
356     *     allowed object is
357     *     {@link BooleanDefaultTrue }
358     *     
359     */
360    public void setDoNotUseLongFileNames(BooleanDefaultTrue value) {
361        this.doNotUseLongFileNames = value;
362    }
363
364    /**
365     * Gets the value of the pixelsPerInch property.
366     *
367     * @return
368     *     possible object is
369     *     {@link CTWebSettings.PixelsPerInch }
370     *     
371     */
372    public CTWebSettings.PixelsPerInch getPixelsPerInch() {
373        return pixelsPerInch;
374    }
375
376    /**
377     * Sets the value of the pixelsPerInch property.
378     *
379     * @param value
380     *     allowed object is
381     *     {@link CTWebSettings.PixelsPerInch }
382     *     
383     */
384    public void setPixelsPerInch(CTWebSettings.PixelsPerInch value) {
385        this.pixelsPerInch = value;
386    }
387
388    /**
389     * Gets the value of the targetScreenSz property.
390     *
391     * @return
392     *     possible object is
393     *     {@link CTTargetScreenSz }
394     *     
395     */
396    public CTTargetScreenSz getTargetScreenSz() {
397        return targetScreenSz;
398    }
399
400    /**
401     * Sets the value of the targetScreenSz property.
402     *
403     * @param value
404     *     allowed object is
405     *     {@link CTTargetScreenSz }
406     *     
407     */
408    public void setTargetScreenSz(CTTargetScreenSz value) {
409        this.targetScreenSz = value;
410    }
411
412    /**
413     * Gets the value of the saveSmartTagsAsXml property.
414     *
415     * @return
416     *     possible object is
417     *     {@link BooleanDefaultTrue }
418     *     
419     */
420    public BooleanDefaultTrue getSaveSmartTagsAsXml() {
421        return saveSmartTagsAsXml;
422    }
423
424    /**
425     * Sets the value of the saveSmartTagsAsXml property.
426     *
427     * @param value
428     *     allowed object is
429     *     {@link BooleanDefaultTrue }
430     *     
431     */
432    public void setSaveSmartTagsAsXml(BooleanDefaultTrue value) {
433        this.saveSmartTagsAsXml = value;
434    }
435
436    /**
437     * Gets the parent object in the object tree representing the unmarshalled xml document.
438     *
439     * @return
440     *     The parent object.
441     */
442    public Object getParent() {
443        return this.parent;
444    }
445
446    public void setParent(Object parent) {
447        this.parent = parent;
448    }
449
450    /**
451     * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
452     *
453     * @param parent
454     *     The parent object in the object tree.
455     * @param unmarshaller
456     *     The unmarshaller that generated the instance.
457     */
458    public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
459        setParent(parent);
460    }
461
462
463    /**
464     * <p>Java class for anonymous complex type.
465     *
466     * <p>The following schema fragment specifies the expected content contained within this class.
467     *
468     * <pre>
469     * &lt;complexType>
470     *   &lt;complexContent>
471     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
472     *       &lt;attribute name="val" type="{http://www.w3.org/2001/XMLSchema}string" />
473     *     &lt;/restriction>
474     *   &lt;/complexContent>
475     * &lt;/complexType>
476     * </pre>
477     *
478     *
479     */
480    @XmlAccessorType(XmlAccessType.FIELD)
481    @XmlType(name = "")
482    public static class Encoding
483        implements Child
484    {
485
486        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main")
487        protected String val;
488        @XmlTransient
489        private Object parent;
490
491        /**
492         * Gets the value of the val property.
493         *
494         * @return
495         *     possible object is
496         *     {@link String }
497         *     
498         */
499        public String getVal() {
500            return val;
501        }
502
503        /**
504         * Sets the value of the val property.
505         *
506         * @param value
507         *     allowed object is
508         *     {@link String }
509         *     
510         */
511        public void setVal(String value) {
512            this.val = value;
513        }
514
515        /**
516         * Gets the parent object in the object tree representing the unmarshalled xml document.
517         *
518         * @return
519         *     The parent object.
520         */
521        public Object getParent() {
522            return this.parent;
523        }
524
525        public void setParent(Object parent) {
526            this.parent = parent;
527        }
528
529        /**
530         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
531         *
532         * @param parent
533         *     The parent object in the object tree.
534         * @param unmarshaller
535         *     The unmarshaller that generated the instance.
536         */
537        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
538            setParent(parent);
539        }
540
541    }
542
543
544    /**
545     * <p>Java class for anonymous complex type.
546     *
547     * <p>The following schema fragment specifies the expected content contained within this class.
548     *
549     * <pre>
550     * &lt;complexType>
551     *   &lt;complexContent>
552     *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
553     *       &lt;attribute name="val" use="required">
554     *         &lt;simpleType>
555     *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}integer">
556     *           &lt;/restriction>
557     *         &lt;/simpleType>
558     *       &lt;/attribute>
559     *     &lt;/restriction>
560     *   &lt;/complexContent>
561     * &lt;/complexType>
562     * </pre>
563     *
564     *
565     */
566    @XmlAccessorType(XmlAccessType.FIELD)
567    @XmlType(name = "")
568    public static class PixelsPerInch
569        implements Child
570    {
571
572        @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true)
573        protected BigInteger val;
574        @XmlTransient
575        private Object parent;
576
577        /**
578         * Gets the value of the val property.
579         *
580         * @return
581         *     possible object is
582         *     {@link BigInteger }
583         *     
584         */
585        public BigInteger getVal() {
586            return val;
587        }
588
589        /**
590         * Sets the value of the val property.
591         *
592         * @param value
593         *     allowed object is
594         *     {@link BigInteger }
595         *     
596         */
597        public void setVal(BigInteger value) {
598            this.val = value;
599        }
600
601        /**
602         * Gets the parent object in the object tree representing the unmarshalled xml document.
603         *
604         * @return
605         *     The parent object.
606         */
607        public Object getParent() {
608            return this.parent;
609        }
610
611        public void setParent(Object parent) {
612            this.parent = parent;
613        }
614
615        /**
616         * This method is invoked by the JAXB implementation on each instance when unmarshalling completes.
617         *
618         * @param parent
619         *     The parent object in the object tree.
620         * @param unmarshaller
621         *     The unmarshaller that generated the instance.
622         */
623        public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) {
624            setParent(parent);
625        }
626
627    }
628
629}
Note: See TracBrowser for help on using the repository browser.