source: trunk/docx4j/src/main/java/org/docx4j/dml/TextFont.java @ 1041

Revision 1041, 4.2 KB checked in by jharrop, 2 years ago (diff)

More complete DML, generated from TC45 1.0 final, using dmlROOT.xsd

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.dml;
23
24import javax.xml.bind.annotation.XmlAccessType;
25import javax.xml.bind.annotation.XmlAccessorType;
26import javax.xml.bind.annotation.XmlAttribute;
27import javax.xml.bind.annotation.XmlType;
28
29
30/**
31 * <p>Java class for CT_TextFont complex type.
32 *
33 * <p>The following schema fragment specifies the expected content contained within this class.
34 *
35 * <pre>
36 * &lt;complexType name="CT_TextFont">
37 *   &lt;complexContent>
38 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
39 *       &lt;attribute name="typeface">
40 *         &lt;simpleType>
41 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
42 *           &lt;/restriction>
43 *         &lt;/simpleType>
44 *       &lt;/attribute>
45 *       &lt;attribute name="panose">
46 *         &lt;simpleType>
47 *           &lt;restriction base="{http://www.w3.org/2001/XMLSchema}string">
48 *           &lt;/restriction>
49 *         &lt;/simpleType>
50 *       &lt;/attribute>
51 *       &lt;attribute name="pitchFamily" type="{http://www.w3.org/2001/XMLSchema}byte" default="0" />
52 *       &lt;attribute name="charset" type="{http://www.w3.org/2001/XMLSchema}byte" default="1" />
53 *     &lt;/restriction>
54 *   &lt;/complexContent>
55 * &lt;/complexType>
56 * </pre>
57 *
58 *
59 */
60@XmlAccessorType(XmlAccessType.FIELD)
61@XmlType(name = "CT_TextFont")
62public class TextFont {
63
64    @XmlAttribute
65    protected String typeface;
66    @XmlAttribute
67    protected String panose;
68    @XmlAttribute
69    protected Byte pitchFamily;
70    @XmlAttribute
71    protected Byte charset;
72
73    /**
74     * Gets the value of the typeface property.
75     *
76     * @return
77     *     possible object is
78     *     {@link String }
79     *     
80     */
81    public String getTypeface() {
82        return typeface;
83    }
84
85    /**
86     * Sets the value of the typeface property.
87     *
88     * @param value
89     *     allowed object is
90     *     {@link String }
91     *     
92     */
93    public void setTypeface(String value) {
94        this.typeface = value;
95    }
96
97    /**
98     * Gets the value of the panose property.
99     *
100     * @return
101     *     possible object is
102     *     {@link String }
103     *     
104     */
105    public String getPanose() {
106        return panose;
107    }
108
109    /**
110     * Sets the value of the panose property.
111     *
112     * @param value
113     *     allowed object is
114     *     {@link String }
115     *     
116     */
117    public void setPanose(String value) {
118        this.panose = value;
119    }
120
121    /**
122     * Gets the value of the pitchFamily property.
123     *
124     * @return
125     *     possible object is
126     *     {@link Byte }
127     *     
128     */
129    public byte getPitchFamily() {
130        if (pitchFamily == null) {
131            return ((byte) 0);
132        } else {
133            return pitchFamily;
134        }
135    }
136
137    /**
138     * Sets the value of the pitchFamily property.
139     *
140     * @param value
141     *     allowed object is
142     *     {@link Byte }
143     *     
144     */
145    public void setPitchFamily(Byte value) {
146        this.pitchFamily = value;
147    }
148
149    /**
150     * Gets the value of the charset property.
151     *
152     * @return
153     *     possible object is
154     *     {@link Byte }
155     *     
156     */
157    public byte getCharset() {
158        if (charset == null) {
159            return ((byte) 1);
160        } else {
161            return charset;
162        }
163    }
164
165    /**
166     * Sets the value of the charset property.
167     *
168     * @param value
169     *     allowed object is
170     *     {@link Byte }
171     *     
172     */
173    public void setCharset(Byte value) {
174        this.charset = value;
175    }
176
177}
Note: See TracBrowser for help on using the repository browser.