| 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 | |
|---|
| 22 | package org.docx4j.wml; |
|---|
| 23 | |
|---|
| 24 | import javax.xml.bind.Unmarshaller; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 28 | import javax.xml.bind.annotation.XmlRootElement; |
|---|
| 29 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 30 | import javax.xml.bind.annotation.XmlType; |
|---|
| 31 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | /** |
|---|
| 35 | * <p>Java class for anonymous complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 43 | * <attribute name="hint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Hint" /> |
|---|
| 44 | * <attribute name="ascii" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 45 | * <attribute name="hAnsi" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 46 | * <attribute name="eastAsia" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 47 | * <attribute name="cs" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 48 | * <attribute name="asciiTheme" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Theme" /> |
|---|
| 49 | * <attribute name="hAnsiTheme" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Theme" /> |
|---|
| 50 | * <attribute name="eastAsiaTheme" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Theme" /> |
|---|
| 51 | * <attribute name="cstheme" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_Theme" /> |
|---|
| 52 | * </restriction> |
|---|
| 53 | * </complexContent> |
|---|
| 54 | * </complexType> |
|---|
| 55 | * </pre> |
|---|
| 56 | * |
|---|
| 57 | * |
|---|
| 58 | */ |
|---|
| 59 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 60 | @XmlType(name = "") |
|---|
| 61 | @XmlRootElement(name = "rFonts") |
|---|
| 62 | public class RFonts implements Child |
|---|
| 63 | { |
|---|
| 64 | |
|---|
| 65 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 66 | protected STHint hint; |
|---|
| 67 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 68 | protected String ascii; |
|---|
| 69 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 70 | protected String hAnsi; |
|---|
| 71 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 72 | protected String eastAsia; |
|---|
| 73 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 74 | protected String cs; |
|---|
| 75 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 76 | protected STTheme asciiTheme; |
|---|
| 77 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 78 | protected STTheme hAnsiTheme; |
|---|
| 79 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 80 | protected STTheme eastAsiaTheme; |
|---|
| 81 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 82 | protected STTheme cstheme; |
|---|
| 83 | @XmlTransient |
|---|
| 84 | private Object parent; |
|---|
| 85 | |
|---|
| 86 | /** |
|---|
| 87 | * Gets the value of the hint property. |
|---|
| 88 | * |
|---|
| 89 | * @return |
|---|
| 90 | * possible object is |
|---|
| 91 | * {@link STHint } |
|---|
| 92 | * |
|---|
| 93 | */ |
|---|
| 94 | public STHint getHint() { |
|---|
| 95 | return hint; |
|---|
| 96 | } |
|---|
| 97 | |
|---|
| 98 | /** |
|---|
| 99 | * Sets the value of the hint property. |
|---|
| 100 | * |
|---|
| 101 | * @param value |
|---|
| 102 | * allowed object is |
|---|
| 103 | * {@link STHint } |
|---|
| 104 | * |
|---|
| 105 | */ |
|---|
| 106 | public void setHint(STHint value) { |
|---|
| 107 | this.hint = value; |
|---|
| 108 | } |
|---|
| 109 | |
|---|
| 110 | /** |
|---|
| 111 | * Gets the value of the ascii property. |
|---|
| 112 | * |
|---|
| 113 | * @return |
|---|
| 114 | * possible object is |
|---|
| 115 | * {@link String } |
|---|
| 116 | * |
|---|
| 117 | */ |
|---|
| 118 | public String getAscii() { |
|---|
| 119 | return ascii; |
|---|
| 120 | } |
|---|
| 121 | |
|---|
| 122 | /** |
|---|
| 123 | * Sets the value of the ascii property. |
|---|
| 124 | * |
|---|
| 125 | * @param value |
|---|
| 126 | * allowed object is |
|---|
| 127 | * {@link String } |
|---|
| 128 | * |
|---|
| 129 | */ |
|---|
| 130 | public void setAscii(String value) { |
|---|
| 131 | this.ascii = value; |
|---|
| 132 | } |
|---|
| 133 | |
|---|
| 134 | /** |
|---|
| 135 | * Gets the value of the hAnsi property. |
|---|
| 136 | * |
|---|
| 137 | * @return |
|---|
| 138 | * possible object is |
|---|
| 139 | * {@link String } |
|---|
| 140 | * |
|---|
| 141 | */ |
|---|
| 142 | public String getHAnsi() { |
|---|
| 143 | return hAnsi; |
|---|
| 144 | } |
|---|
| 145 | |
|---|
| 146 | /** |
|---|
| 147 | * Sets the value of the hAnsi property. |
|---|
| 148 | * |
|---|
| 149 | * @param value |
|---|
| 150 | * allowed object is |
|---|
| 151 | * {@link String } |
|---|
| 152 | * |
|---|
| 153 | */ |
|---|
| 154 | public void setHAnsi(String value) { |
|---|
| 155 | this.hAnsi = value; |
|---|
| 156 | } |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * Gets the value of the eastAsia property. |
|---|
| 160 | * |
|---|
| 161 | * @return |
|---|
| 162 | * possible object is |
|---|
| 163 | * {@link String } |
|---|
| 164 | * |
|---|
| 165 | */ |
|---|
| 166 | public String getEastAsia() { |
|---|
| 167 | return eastAsia; |
|---|
| 168 | } |
|---|
| 169 | |
|---|
| 170 | /** |
|---|
| 171 | * Sets the value of the eastAsia property. |
|---|
| 172 | * |
|---|
| 173 | * @param value |
|---|
| 174 | * allowed object is |
|---|
| 175 | * {@link String } |
|---|
| 176 | * |
|---|
| 177 | */ |
|---|
| 178 | public void setEastAsia(String value) { |
|---|
| 179 | this.eastAsia = value; |
|---|
| 180 | } |
|---|
| 181 | |
|---|
| 182 | /** |
|---|
| 183 | * Gets the value of the cs property. |
|---|
| 184 | * |
|---|
| 185 | * @return |
|---|
| 186 | * possible object is |
|---|
| 187 | * {@link String } |
|---|
| 188 | * |
|---|
| 189 | */ |
|---|
| 190 | public String getCs() { |
|---|
| 191 | return cs; |
|---|
| 192 | } |
|---|
| 193 | |
|---|
| 194 | /** |
|---|
| 195 | * Sets the value of the cs property. |
|---|
| 196 | * |
|---|
| 197 | * @param value |
|---|
| 198 | * allowed object is |
|---|
| 199 | * {@link String } |
|---|
| 200 | * |
|---|
| 201 | */ |
|---|
| 202 | public void setCs(String value) { |
|---|
| 203 | this.cs = value; |
|---|
| 204 | } |
|---|
| 205 | |
|---|
| 206 | /** |
|---|
| 207 | * Gets the value of the asciiTheme property. |
|---|
| 208 | * |
|---|
| 209 | * @return |
|---|
| 210 | * possible object is |
|---|
| 211 | * {@link STTheme } |
|---|
| 212 | * |
|---|
| 213 | */ |
|---|
| 214 | public STTheme getAsciiTheme() { |
|---|
| 215 | return asciiTheme; |
|---|
| 216 | } |
|---|
| 217 | |
|---|
| 218 | /** |
|---|
| 219 | * Sets the value of the asciiTheme property. |
|---|
| 220 | * |
|---|
| 221 | * @param value |
|---|
| 222 | * allowed object is |
|---|
| 223 | * {@link STTheme } |
|---|
| 224 | * |
|---|
| 225 | */ |
|---|
| 226 | public void setAsciiTheme(STTheme value) { |
|---|
| 227 | this.asciiTheme = value; |
|---|
| 228 | } |
|---|
| 229 | |
|---|
| 230 | /** |
|---|
| 231 | * Gets the value of the hAnsiTheme property. |
|---|
| 232 | * |
|---|
| 233 | * @return |
|---|
| 234 | * possible object is |
|---|
| 235 | * {@link STTheme } |
|---|
| 236 | * |
|---|
| 237 | */ |
|---|
| 238 | public STTheme getHAnsiTheme() { |
|---|
| 239 | return hAnsiTheme; |
|---|
| 240 | } |
|---|
| 241 | |
|---|
| 242 | /** |
|---|
| 243 | * Sets the value of the hAnsiTheme property. |
|---|
| 244 | * |
|---|
| 245 | * @param value |
|---|
| 246 | * allowed object is |
|---|
| 247 | * {@link STTheme } |
|---|
| 248 | * |
|---|
| 249 | */ |
|---|
| 250 | public void setHAnsiTheme(STTheme value) { |
|---|
| 251 | this.hAnsiTheme = value; |
|---|
| 252 | } |
|---|
| 253 | |
|---|
| 254 | /** |
|---|
| 255 | * Gets the value of the eastAsiaTheme property. |
|---|
| 256 | * |
|---|
| 257 | * @return |
|---|
| 258 | * possible object is |
|---|
| 259 | * {@link STTheme } |
|---|
| 260 | * |
|---|
| 261 | */ |
|---|
| 262 | public STTheme getEastAsiaTheme() { |
|---|
| 263 | return eastAsiaTheme; |
|---|
| 264 | } |
|---|
| 265 | |
|---|
| 266 | /** |
|---|
| 267 | * Sets the value of the eastAsiaTheme property. |
|---|
| 268 | * |
|---|
| 269 | * @param value |
|---|
| 270 | * allowed object is |
|---|
| 271 | * {@link STTheme } |
|---|
| 272 | * |
|---|
| 273 | */ |
|---|
| 274 | public void setEastAsiaTheme(STTheme value) { |
|---|
| 275 | this.eastAsiaTheme = value; |
|---|
| 276 | } |
|---|
| 277 | |
|---|
| 278 | /** |
|---|
| 279 | * Gets the value of the cstheme property. |
|---|
| 280 | * |
|---|
| 281 | * @return |
|---|
| 282 | * possible object is |
|---|
| 283 | * {@link STTheme } |
|---|
| 284 | * |
|---|
| 285 | */ |
|---|
| 286 | public STTheme getCstheme() { |
|---|
| 287 | return cstheme; |
|---|
| 288 | } |
|---|
| 289 | |
|---|
| 290 | /** |
|---|
| 291 | * Sets the value of the cstheme property. |
|---|
| 292 | * |
|---|
| 293 | * @param value |
|---|
| 294 | * allowed object is |
|---|
| 295 | * {@link STTheme } |
|---|
| 296 | * |
|---|
| 297 | */ |
|---|
| 298 | public void setCstheme(STTheme value) { |
|---|
| 299 | this.cstheme = value; |
|---|
| 300 | } |
|---|
| 301 | |
|---|
| 302 | /** |
|---|
| 303 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 304 | * |
|---|
| 305 | * @return |
|---|
| 306 | * The parent object. |
|---|
| 307 | */ |
|---|
| 308 | public Object getParent() { |
|---|
| 309 | return this.parent; |
|---|
| 310 | } |
|---|
| 311 | |
|---|
| 312 | public void setParent(Object parent) { |
|---|
| 313 | this.parent = parent; |
|---|
| 314 | } |
|---|
| 315 | |
|---|
| 316 | /** |
|---|
| 317 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 318 | * |
|---|
| 319 | * @param parent |
|---|
| 320 | * The parent object in the object tree. |
|---|
| 321 | * @param unmarshaller |
|---|
| 322 | * The unmarshaller that generated the instance. |
|---|
| 323 | */ |
|---|
| 324 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 325 | setParent(parent); |
|---|
| 326 | } |
|---|
| 327 | |
|---|
| 328 | } |
|---|