| 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 java.math.BigInteger; |
|---|
| 25 | import java.util.ArrayList; |
|---|
| 26 | import java.util.List; |
|---|
| 27 | import javax.xml.bind.Unmarshaller; |
|---|
| 28 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 29 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 30 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 31 | import javax.xml.bind.annotation.XmlRootElement; |
|---|
| 32 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 33 | import javax.xml.bind.annotation.XmlType; |
|---|
| 34 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | /** |
|---|
| 38 | * <p>Java class for anonymous complex type. |
|---|
| 39 | * |
|---|
| 40 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 41 | * |
|---|
| 42 | * <pre> |
|---|
| 43 | * <complexType> |
|---|
| 44 | * <complexContent> |
|---|
| 45 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 46 | * <sequence> |
|---|
| 47 | * <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}docDefaults" minOccurs="0"/> |
|---|
| 48 | * <element name="latentStyles" minOccurs="0"> |
|---|
| 49 | * <complexType> |
|---|
| 50 | * <complexContent> |
|---|
| 51 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 52 | * <sequence> |
|---|
| 53 | * <element name="lsdException" maxOccurs="unbounded" minOccurs="0"> |
|---|
| 54 | * <complexType> |
|---|
| 55 | * <complexContent> |
|---|
| 56 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 57 | * <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 58 | * <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 59 | * <attribute name="uiPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 60 | * <attribute name="semiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 61 | * <attribute name="unhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 62 | * <attribute name="qFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
|---|
| 63 | * </restriction> |
|---|
| 64 | * </complexContent> |
|---|
| 65 | * </complexType> |
|---|
| 66 | * </element> |
|---|
| 67 | * </sequence> |
|---|
| 68 | * <attribute name="defLockedState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 69 | * <attribute name="defUIPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 70 | * <attribute name="defSemiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 71 | * <attribute name="defUnhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 72 | * <attribute name="defQFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> |
|---|
| 73 | * <attribute name="count" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 74 | * </restriction> |
|---|
| 75 | * </complexContent> |
|---|
| 76 | * </complexType> |
|---|
| 77 | * </element> |
|---|
| 78 | * <element ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}style" maxOccurs="unbounded" minOccurs="0"/> |
|---|
| 79 | * </sequence> |
|---|
| 80 | * </restriction> |
|---|
| 81 | * </complexContent> |
|---|
| 82 | * </complexType> |
|---|
| 83 | * </pre> |
|---|
| 84 | * |
|---|
| 85 | * |
|---|
| 86 | */ |
|---|
| 87 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 88 | @XmlType(name = "", propOrder = { |
|---|
| 89 | "docDefaults", |
|---|
| 90 | "latentStyles", |
|---|
| 91 | "style" |
|---|
| 92 | }) |
|---|
| 93 | @XmlRootElement(name = "styles") |
|---|
| 94 | public class Styles |
|---|
| 95 | implements Child |
|---|
| 96 | { |
|---|
| 97 | |
|---|
| 98 | protected DocDefaults docDefaults; |
|---|
| 99 | protected Styles.LatentStyles latentStyles; |
|---|
| 100 | protected List<Style> style; |
|---|
| 101 | @XmlTransient |
|---|
| 102 | private Object parent; |
|---|
| 103 | |
|---|
| 104 | /** |
|---|
| 105 | * Gets the value of the docDefaults property. |
|---|
| 106 | * |
|---|
| 107 | * @return |
|---|
| 108 | * possible object is |
|---|
| 109 | * {@link DocDefaults } |
|---|
| 110 | * |
|---|
| 111 | */ |
|---|
| 112 | public DocDefaults getDocDefaults() { |
|---|
| 113 | return docDefaults; |
|---|
| 114 | } |
|---|
| 115 | |
|---|
| 116 | /** |
|---|
| 117 | * Sets the value of the docDefaults property. |
|---|
| 118 | * |
|---|
| 119 | * @param value |
|---|
| 120 | * allowed object is |
|---|
| 121 | * {@link DocDefaults } |
|---|
| 122 | * |
|---|
| 123 | */ |
|---|
| 124 | public void setDocDefaults(DocDefaults value) { |
|---|
| 125 | this.docDefaults = value; |
|---|
| 126 | } |
|---|
| 127 | |
|---|
| 128 | /** |
|---|
| 129 | * Gets the value of the latentStyles property. |
|---|
| 130 | * |
|---|
| 131 | * @return |
|---|
| 132 | * possible object is |
|---|
| 133 | * {@link Styles.LatentStyles } |
|---|
| 134 | * |
|---|
| 135 | */ |
|---|
| 136 | public Styles.LatentStyles getLatentStyles() { |
|---|
| 137 | return latentStyles; |
|---|
| 138 | } |
|---|
| 139 | |
|---|
| 140 | /** |
|---|
| 141 | * Sets the value of the latentStyles property. |
|---|
| 142 | * |
|---|
| 143 | * @param value |
|---|
| 144 | * allowed object is |
|---|
| 145 | * {@link Styles.LatentStyles } |
|---|
| 146 | * |
|---|
| 147 | */ |
|---|
| 148 | public void setLatentStyles(Styles.LatentStyles value) { |
|---|
| 149 | this.latentStyles = value; |
|---|
| 150 | } |
|---|
| 151 | |
|---|
| 152 | /** |
|---|
| 153 | * Gets the value of the style property. |
|---|
| 154 | * |
|---|
| 155 | * <p> |
|---|
| 156 | * This accessor method returns a reference to the live list, |
|---|
| 157 | * not a snapshot. Therefore any modification you make to the |
|---|
| 158 | * returned list will be present inside the JAXB object. |
|---|
| 159 | * This is why there is not a <CODE>set</CODE> method for the style property. |
|---|
| 160 | * |
|---|
| 161 | * <p> |
|---|
| 162 | * For example, to add a new item, do as follows: |
|---|
| 163 | * <pre> |
|---|
| 164 | * getStyle().add(newItem); |
|---|
| 165 | * </pre> |
|---|
| 166 | * |
|---|
| 167 | * |
|---|
| 168 | * <p> |
|---|
| 169 | * Objects of the following type(s) are allowed in the list |
|---|
| 170 | * {@link Style } |
|---|
| 171 | * |
|---|
| 172 | * |
|---|
| 173 | */ |
|---|
| 174 | public List<Style> getStyle() { |
|---|
| 175 | if (style == null) { |
|---|
| 176 | style = new ArrayList<Style>(); |
|---|
| 177 | } |
|---|
| 178 | return this.style; |
|---|
| 179 | } |
|---|
| 180 | |
|---|
| 181 | /** |
|---|
| 182 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 183 | * |
|---|
| 184 | * @return |
|---|
| 185 | * The parent object. |
|---|
| 186 | */ |
|---|
| 187 | public Object getParent() { |
|---|
| 188 | return this.parent; |
|---|
| 189 | } |
|---|
| 190 | |
|---|
| 191 | public void setParent(Object parent) { |
|---|
| 192 | this.parent = parent; |
|---|
| 193 | } |
|---|
| 194 | |
|---|
| 195 | /** |
|---|
| 196 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 197 | * |
|---|
| 198 | * @param parent |
|---|
| 199 | * The parent object in the object tree. |
|---|
| 200 | * @param unmarshaller |
|---|
| 201 | * The unmarshaller that generated the instance. |
|---|
| 202 | */ |
|---|
| 203 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 204 | setParent(parent); |
|---|
| 205 | } |
|---|
| 206 | |
|---|
| 207 | |
|---|
| 208 | /** |
|---|
| 209 | * <p>Java class for anonymous complex type. |
|---|
| 210 | * |
|---|
| 211 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 212 | * |
|---|
| 213 | * <pre> |
|---|
| 214 | * <complexType> |
|---|
| 215 | * <complexContent> |
|---|
| 216 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 217 | * <sequence> |
|---|
| 218 | * <element name="lsdException" maxOccurs="unbounded" minOccurs="0"> |
|---|
| 219 | * <complexType> |
|---|
| 220 | * <complexContent> |
|---|
| 221 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 222 | * <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 223 | * <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 224 | * <attribute name="uiPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 225 | * <attribute name="semiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 226 | * <attribute name="unhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 227 | * <attribute name="qFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
|---|
| 228 | * </restriction> |
|---|
| 229 | * </complexContent> |
|---|
| 230 | * </complexType> |
|---|
| 231 | * </element> |
|---|
| 232 | * </sequence> |
|---|
| 233 | * <attribute name="defLockedState" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 234 | * <attribute name="defUIPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 235 | * <attribute name="defSemiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 236 | * <attribute name="defUnhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 237 | * <attribute name="defQFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" /> |
|---|
| 238 | * <attribute name="count" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 239 | * </restriction> |
|---|
| 240 | * </complexContent> |
|---|
| 241 | * </complexType> |
|---|
| 242 | * </pre> |
|---|
| 243 | * |
|---|
| 244 | * |
|---|
| 245 | */ |
|---|
| 246 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 247 | @XmlType(name = "", propOrder = { |
|---|
| 248 | "lsdException" |
|---|
| 249 | }) |
|---|
| 250 | public static class LatentStyles |
|---|
| 251 | implements Child |
|---|
| 252 | { |
|---|
| 253 | |
|---|
| 254 | protected List<Styles.LatentStyles.LsdException> lsdException; |
|---|
| 255 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 256 | protected Boolean defLockedState; |
|---|
| 257 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 258 | protected BigInteger defUIPriority; |
|---|
| 259 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 260 | protected Boolean defSemiHidden; |
|---|
| 261 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 262 | protected Boolean defUnhideWhenUsed; |
|---|
| 263 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 264 | protected Boolean defQFormat; |
|---|
| 265 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 266 | protected BigInteger count; |
|---|
| 267 | @XmlTransient |
|---|
| 268 | private Object parent; |
|---|
| 269 | |
|---|
| 270 | /** |
|---|
| 271 | * Gets the value of the lsdException property. |
|---|
| 272 | * |
|---|
| 273 | * <p> |
|---|
| 274 | * This accessor method returns a reference to the live list, |
|---|
| 275 | * not a snapshot. Therefore any modification you make to the |
|---|
| 276 | * returned list will be present inside the JAXB object. |
|---|
| 277 | * This is why there is not a <CODE>set</CODE> method for the lsdException property. |
|---|
| 278 | * |
|---|
| 279 | * <p> |
|---|
| 280 | * For example, to add a new item, do as follows: |
|---|
| 281 | * <pre> |
|---|
| 282 | * getLsdException().add(newItem); |
|---|
| 283 | * </pre> |
|---|
| 284 | * |
|---|
| 285 | * |
|---|
| 286 | * <p> |
|---|
| 287 | * Objects of the following type(s) are allowed in the list |
|---|
| 288 | * {@link Styles.LatentStyles.LsdException } |
|---|
| 289 | * |
|---|
| 290 | * |
|---|
| 291 | */ |
|---|
| 292 | public List<Styles.LatentStyles.LsdException> getLsdException() { |
|---|
| 293 | if (lsdException == null) { |
|---|
| 294 | lsdException = new ArrayList<Styles.LatentStyles.LsdException>(); |
|---|
| 295 | } |
|---|
| 296 | return this.lsdException; |
|---|
| 297 | } |
|---|
| 298 | |
|---|
| 299 | /** |
|---|
| 300 | * Gets the value of the defLockedState property. |
|---|
| 301 | * |
|---|
| 302 | * @return |
|---|
| 303 | * possible object is |
|---|
| 304 | * {@link Boolean } |
|---|
| 305 | * |
|---|
| 306 | */ |
|---|
| 307 | public boolean isDefLockedState() { |
|---|
| 308 | if (defLockedState == null) { |
|---|
| 309 | return true; |
|---|
| 310 | } else { |
|---|
| 311 | return defLockedState; |
|---|
| 312 | } |
|---|
| 313 | } |
|---|
| 314 | |
|---|
| 315 | /** |
|---|
| 316 | * Sets the value of the defLockedState property. |
|---|
| 317 | * |
|---|
| 318 | * @param value |
|---|
| 319 | * allowed object is |
|---|
| 320 | * {@link Boolean } |
|---|
| 321 | * |
|---|
| 322 | */ |
|---|
| 323 | public void setDefLockedState(Boolean value) { |
|---|
| 324 | this.defLockedState = value; |
|---|
| 325 | } |
|---|
| 326 | |
|---|
| 327 | /** |
|---|
| 328 | * Gets the value of the defUIPriority property. |
|---|
| 329 | * |
|---|
| 330 | * @return |
|---|
| 331 | * possible object is |
|---|
| 332 | * {@link BigInteger } |
|---|
| 333 | * |
|---|
| 334 | */ |
|---|
| 335 | public BigInteger getDefUIPriority() { |
|---|
| 336 | return defUIPriority; |
|---|
| 337 | } |
|---|
| 338 | |
|---|
| 339 | /** |
|---|
| 340 | * Sets the value of the defUIPriority property. |
|---|
| 341 | * |
|---|
| 342 | * @param value |
|---|
| 343 | * allowed object is |
|---|
| 344 | * {@link BigInteger } |
|---|
| 345 | * |
|---|
| 346 | */ |
|---|
| 347 | public void setDefUIPriority(BigInteger value) { |
|---|
| 348 | this.defUIPriority = value; |
|---|
| 349 | } |
|---|
| 350 | |
|---|
| 351 | /** |
|---|
| 352 | * Gets the value of the defSemiHidden property. |
|---|
| 353 | * |
|---|
| 354 | * @return |
|---|
| 355 | * possible object is |
|---|
| 356 | * {@link Boolean } |
|---|
| 357 | * |
|---|
| 358 | */ |
|---|
| 359 | public boolean isDefSemiHidden() { |
|---|
| 360 | if (defSemiHidden == null) { |
|---|
| 361 | return true; |
|---|
| 362 | } else { |
|---|
| 363 | return defSemiHidden; |
|---|
| 364 | } |
|---|
| 365 | } |
|---|
| 366 | |
|---|
| 367 | /** |
|---|
| 368 | * Sets the value of the defSemiHidden property. |
|---|
| 369 | * |
|---|
| 370 | * @param value |
|---|
| 371 | * allowed object is |
|---|
| 372 | * {@link Boolean } |
|---|
| 373 | * |
|---|
| 374 | */ |
|---|
| 375 | public void setDefSemiHidden(Boolean value) { |
|---|
| 376 | this.defSemiHidden = value; |
|---|
| 377 | } |
|---|
| 378 | |
|---|
| 379 | /** |
|---|
| 380 | * Gets the value of the defUnhideWhenUsed property. |
|---|
| 381 | * |
|---|
| 382 | * @return |
|---|
| 383 | * possible object is |
|---|
| 384 | * {@link Boolean } |
|---|
| 385 | * |
|---|
| 386 | */ |
|---|
| 387 | public boolean isDefUnhideWhenUsed() { |
|---|
| 388 | if (defUnhideWhenUsed == null) { |
|---|
| 389 | return true; |
|---|
| 390 | } else { |
|---|
| 391 | return defUnhideWhenUsed; |
|---|
| 392 | } |
|---|
| 393 | } |
|---|
| 394 | |
|---|
| 395 | /** |
|---|
| 396 | * Sets the value of the defUnhideWhenUsed property. |
|---|
| 397 | * |
|---|
| 398 | * @param value |
|---|
| 399 | * allowed object is |
|---|
| 400 | * {@link Boolean } |
|---|
| 401 | * |
|---|
| 402 | */ |
|---|
| 403 | public void setDefUnhideWhenUsed(Boolean value) { |
|---|
| 404 | this.defUnhideWhenUsed = value; |
|---|
| 405 | } |
|---|
| 406 | |
|---|
| 407 | /** |
|---|
| 408 | * Gets the value of the defQFormat property. |
|---|
| 409 | * |
|---|
| 410 | * @return |
|---|
| 411 | * possible object is |
|---|
| 412 | * {@link Boolean } |
|---|
| 413 | * |
|---|
| 414 | */ |
|---|
| 415 | public boolean isDefQFormat() { |
|---|
| 416 | if (defQFormat == null) { |
|---|
| 417 | return false; |
|---|
| 418 | } else { |
|---|
| 419 | return defQFormat; |
|---|
| 420 | } |
|---|
| 421 | } |
|---|
| 422 | |
|---|
| 423 | /** |
|---|
| 424 | * Sets the value of the defQFormat property. |
|---|
| 425 | * |
|---|
| 426 | * @param value |
|---|
| 427 | * allowed object is |
|---|
| 428 | * {@link Boolean } |
|---|
| 429 | * |
|---|
| 430 | */ |
|---|
| 431 | public void setDefQFormat(Boolean value) { |
|---|
| 432 | this.defQFormat = value; |
|---|
| 433 | } |
|---|
| 434 | |
|---|
| 435 | /** |
|---|
| 436 | * Gets the value of the count property. |
|---|
| 437 | * |
|---|
| 438 | * @return |
|---|
| 439 | * possible object is |
|---|
| 440 | * {@link BigInteger } |
|---|
| 441 | * |
|---|
| 442 | */ |
|---|
| 443 | public BigInteger getCount() { |
|---|
| 444 | return count; |
|---|
| 445 | } |
|---|
| 446 | |
|---|
| 447 | /** |
|---|
| 448 | * Sets the value of the count property. |
|---|
| 449 | * |
|---|
| 450 | * @param value |
|---|
| 451 | * allowed object is |
|---|
| 452 | * {@link BigInteger } |
|---|
| 453 | * |
|---|
| 454 | */ |
|---|
| 455 | public void setCount(BigInteger value) { |
|---|
| 456 | this.count = value; |
|---|
| 457 | } |
|---|
| 458 | |
|---|
| 459 | /** |
|---|
| 460 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 461 | * |
|---|
| 462 | * @return |
|---|
| 463 | * The parent object. |
|---|
| 464 | */ |
|---|
| 465 | public Object getParent() { |
|---|
| 466 | return this.parent; |
|---|
| 467 | } |
|---|
| 468 | |
|---|
| 469 | public void setParent(Object parent) { |
|---|
| 470 | this.parent = parent; |
|---|
| 471 | } |
|---|
| 472 | |
|---|
| 473 | /** |
|---|
| 474 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 475 | * |
|---|
| 476 | * @param parent |
|---|
| 477 | * The parent object in the object tree. |
|---|
| 478 | * @param unmarshaller |
|---|
| 479 | * The unmarshaller that generated the instance. |
|---|
| 480 | */ |
|---|
| 481 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 482 | setParent(parent); |
|---|
| 483 | } |
|---|
| 484 | |
|---|
| 485 | |
|---|
| 486 | /** |
|---|
| 487 | * <p>Java class for anonymous complex type. |
|---|
| 488 | * |
|---|
| 489 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 490 | * |
|---|
| 491 | * <pre> |
|---|
| 492 | * <complexType> |
|---|
| 493 | * <complexContent> |
|---|
| 494 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 495 | * <attribute name="name" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_String" /> |
|---|
| 496 | * <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 497 | * <attribute name="uiPriority" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_DecimalNumber" /> |
|---|
| 498 | * <attribute name="semiHidden" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 499 | * <attribute name="unhideWhenUsed" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" /> |
|---|
| 500 | * <attribute name="qFormat" type="{http://www.w3.org/2001/XMLSchema}boolean" /> |
|---|
| 501 | * </restriction> |
|---|
| 502 | * </complexContent> |
|---|
| 503 | * </complexType> |
|---|
| 504 | * </pre> |
|---|
| 505 | * |
|---|
| 506 | * |
|---|
| 507 | */ |
|---|
| 508 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 509 | @XmlType(name = "") |
|---|
| 510 | public static class LsdException |
|---|
| 511 | implements Child |
|---|
| 512 | { |
|---|
| 513 | |
|---|
| 514 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 515 | protected String name; |
|---|
| 516 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 517 | protected Boolean locked; |
|---|
| 518 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 519 | protected BigInteger uiPriority; |
|---|
| 520 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 521 | protected Boolean semiHidden; |
|---|
| 522 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 523 | protected Boolean unhideWhenUsed; |
|---|
| 524 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 525 | protected Boolean qFormat; |
|---|
| 526 | @XmlTransient |
|---|
| 527 | private Object parent; |
|---|
| 528 | |
|---|
| 529 | /** |
|---|
| 530 | * Gets the value of the name property. |
|---|
| 531 | * |
|---|
| 532 | * @return |
|---|
| 533 | * possible object is |
|---|
| 534 | * {@link String } |
|---|
| 535 | * |
|---|
| 536 | */ |
|---|
| 537 | public String getName() { |
|---|
| 538 | return name; |
|---|
| 539 | } |
|---|
| 540 | |
|---|
| 541 | /** |
|---|
| 542 | * Sets the value of the name property. |
|---|
| 543 | * |
|---|
| 544 | * @param value |
|---|
| 545 | * allowed object is |
|---|
| 546 | * {@link String } |
|---|
| 547 | * |
|---|
| 548 | */ |
|---|
| 549 | public void setName(String value) { |
|---|
| 550 | this.name = value; |
|---|
| 551 | } |
|---|
| 552 | |
|---|
| 553 | /** |
|---|
| 554 | * Gets the value of the locked property. |
|---|
| 555 | * |
|---|
| 556 | * @return |
|---|
| 557 | * possible object is |
|---|
| 558 | * {@link Boolean } |
|---|
| 559 | * |
|---|
| 560 | */ |
|---|
| 561 | public boolean isLocked() { |
|---|
| 562 | if (locked == null) { |
|---|
| 563 | return true; |
|---|
| 564 | } else { |
|---|
| 565 | return locked; |
|---|
| 566 | } |
|---|
| 567 | } |
|---|
| 568 | |
|---|
| 569 | /** |
|---|
| 570 | * Sets the value of the locked property. |
|---|
| 571 | * |
|---|
| 572 | * @param value |
|---|
| 573 | * allowed object is |
|---|
| 574 | * {@link Boolean } |
|---|
| 575 | * |
|---|
| 576 | */ |
|---|
| 577 | public void setLocked(Boolean value) { |
|---|
| 578 | this.locked = value; |
|---|
| 579 | } |
|---|
| 580 | |
|---|
| 581 | /** |
|---|
| 582 | * Gets the value of the uiPriority property. |
|---|
| 583 | * |
|---|
| 584 | * @return |
|---|
| 585 | * possible object is |
|---|
| 586 | * {@link BigInteger } |
|---|
| 587 | * |
|---|
| 588 | */ |
|---|
| 589 | public BigInteger getUiPriority() { |
|---|
| 590 | return uiPriority; |
|---|
| 591 | } |
|---|
| 592 | |
|---|
| 593 | /** |
|---|
| 594 | * Sets the value of the uiPriority property. |
|---|
| 595 | * |
|---|
| 596 | * @param value |
|---|
| 597 | * allowed object is |
|---|
| 598 | * {@link BigInteger } |
|---|
| 599 | * |
|---|
| 600 | */ |
|---|
| 601 | public void setUiPriority(BigInteger value) { |
|---|
| 602 | this.uiPriority = value; |
|---|
| 603 | } |
|---|
| 604 | |
|---|
| 605 | /** |
|---|
| 606 | * Gets the value of the semiHidden property. |
|---|
| 607 | * |
|---|
| 608 | * @return |
|---|
| 609 | * possible object is |
|---|
| 610 | * {@link Boolean } |
|---|
| 611 | * |
|---|
| 612 | */ |
|---|
| 613 | public boolean isSemiHidden() { |
|---|
| 614 | if (semiHidden == null) { |
|---|
| 615 | return true; |
|---|
| 616 | } else { |
|---|
| 617 | return semiHidden; |
|---|
| 618 | } |
|---|
| 619 | } |
|---|
| 620 | |
|---|
| 621 | /** |
|---|
| 622 | * Sets the value of the semiHidden property. |
|---|
| 623 | * |
|---|
| 624 | * @param value |
|---|
| 625 | * allowed object is |
|---|
| 626 | * {@link Boolean } |
|---|
| 627 | * |
|---|
| 628 | */ |
|---|
| 629 | public void setSemiHidden(Boolean value) { |
|---|
| 630 | this.semiHidden = value; |
|---|
| 631 | } |
|---|
| 632 | |
|---|
| 633 | /** |
|---|
| 634 | * Gets the value of the unhideWhenUsed property. |
|---|
| 635 | * |
|---|
| 636 | * @return |
|---|
| 637 | * possible object is |
|---|
| 638 | * {@link Boolean } |
|---|
| 639 | * |
|---|
| 640 | */ |
|---|
| 641 | public boolean isUnhideWhenUsed() { |
|---|
| 642 | if (unhideWhenUsed == null) { |
|---|
| 643 | return true; |
|---|
| 644 | } else { |
|---|
| 645 | return unhideWhenUsed; |
|---|
| 646 | } |
|---|
| 647 | } |
|---|
| 648 | |
|---|
| 649 | /** |
|---|
| 650 | * Sets the value of the unhideWhenUsed property. |
|---|
| 651 | * |
|---|
| 652 | * @param value |
|---|
| 653 | * allowed object is |
|---|
| 654 | * {@link Boolean } |
|---|
| 655 | * |
|---|
| 656 | */ |
|---|
| 657 | public void setUnhideWhenUsed(Boolean value) { |
|---|
| 658 | this.unhideWhenUsed = value; |
|---|
| 659 | } |
|---|
| 660 | |
|---|
| 661 | /** |
|---|
| 662 | * Gets the value of the qFormat property. |
|---|
| 663 | * |
|---|
| 664 | * @return |
|---|
| 665 | * possible object is |
|---|
| 666 | * {@link Boolean } |
|---|
| 667 | * |
|---|
| 668 | */ |
|---|
| 669 | public Boolean isQFormat() { |
|---|
| 670 | |
|---|
| 671 | if (qFormat==null) { |
|---|
| 672 | return ((Styles.LatentStyles)this.parent).isDefQFormat(); |
|---|
| 673 | } else { |
|---|
| 674 | return qFormat; |
|---|
| 675 | } |
|---|
| 676 | } |
|---|
| 677 | |
|---|
| 678 | /** |
|---|
| 679 | * Sets the value of the qFormat property. |
|---|
| 680 | * |
|---|
| 681 | * @param value |
|---|
| 682 | * allowed object is |
|---|
| 683 | * {@link Boolean } |
|---|
| 684 | * |
|---|
| 685 | */ |
|---|
| 686 | public void setQFormat(Boolean value) { |
|---|
| 687 | this.qFormat = value; |
|---|
| 688 | } |
|---|
| 689 | |
|---|
| 690 | /** |
|---|
| 691 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 692 | * |
|---|
| 693 | * @return |
|---|
| 694 | * The parent object. |
|---|
| 695 | */ |
|---|
| 696 | public Object getParent() { |
|---|
| 697 | return this.parent; |
|---|
| 698 | } |
|---|
| 699 | |
|---|
| 700 | public void setParent(Object parent) { |
|---|
| 701 | this.parent = parent; |
|---|
| 702 | } |
|---|
| 703 | |
|---|
| 704 | /** |
|---|
| 705 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 706 | * |
|---|
| 707 | * @param parent |
|---|
| 708 | * The parent object in the object tree. |
|---|
| 709 | * @param unmarshaller |
|---|
| 710 | * The unmarshaller that generated the instance. |
|---|
| 711 | */ |
|---|
| 712 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 713 | setParent(parent); |
|---|
| 714 | } |
|---|
| 715 | |
|---|
| 716 | } |
|---|
| 717 | |
|---|
| 718 | } |
|---|
| 719 | |
|---|
| 720 | } |
|---|