| 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.XmlTransient; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | /** |
|---|
| 34 | * <p>Java class for CT_FramesetSplitbar complex type. |
|---|
| 35 | * |
|---|
| 36 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 37 | * |
|---|
| 38 | * <pre> |
|---|
| 39 | * <complexType name="CT_FramesetSplitbar"> |
|---|
| 40 | * <complexContent> |
|---|
| 41 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 42 | * <sequence> |
|---|
| 43 | * <element name="w" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_TwipsMeasure" minOccurs="0"/> |
|---|
| 44 | * <element name="color" minOccurs="0"> |
|---|
| 45 | * <complexType> |
|---|
| 46 | * <complexContent> |
|---|
| 47 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 48 | * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HexColor" /> |
|---|
| 49 | * <attribute name="themeColor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ThemeColor" /> |
|---|
| 50 | * <attribute name="themeTint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" /> |
|---|
| 51 | * <attribute name="themeShade" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" /> |
|---|
| 52 | * </restriction> |
|---|
| 53 | * </complexContent> |
|---|
| 54 | * </complexType> |
|---|
| 55 | * </element> |
|---|
| 56 | * <element name="noBorder" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 57 | * <element name="flatBorders" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}BooleanDefaultTrue" minOccurs="0"/> |
|---|
| 58 | * </sequence> |
|---|
| 59 | * </restriction> |
|---|
| 60 | * </complexContent> |
|---|
| 61 | * </complexType> |
|---|
| 62 | * </pre> |
|---|
| 63 | * |
|---|
| 64 | * |
|---|
| 65 | */ |
|---|
| 66 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 67 | @XmlType(name = "CT_FramesetSplitbar", propOrder = { |
|---|
| 68 | "w", |
|---|
| 69 | "color", |
|---|
| 70 | "noBorder", |
|---|
| 71 | "flatBorders" |
|---|
| 72 | }) |
|---|
| 73 | public class CTFramesetSplitbar |
|---|
| 74 | implements Child |
|---|
| 75 | { |
|---|
| 76 | |
|---|
| 77 | protected CTTwipsMeasure w; |
|---|
| 78 | protected CTFramesetSplitbar.Color color; |
|---|
| 79 | protected BooleanDefaultTrue noBorder; |
|---|
| 80 | protected BooleanDefaultTrue flatBorders; |
|---|
| 81 | @XmlTransient |
|---|
| 82 | private Object parent; |
|---|
| 83 | |
|---|
| 84 | /** |
|---|
| 85 | * Gets the value of the w property. |
|---|
| 86 | * |
|---|
| 87 | * @return |
|---|
| 88 | * possible object is |
|---|
| 89 | * {@link CTTwipsMeasure } |
|---|
| 90 | * |
|---|
| 91 | */ |
|---|
| 92 | public CTTwipsMeasure getW() { |
|---|
| 93 | return w; |
|---|
| 94 | } |
|---|
| 95 | |
|---|
| 96 | /** |
|---|
| 97 | * Sets the value of the w property. |
|---|
| 98 | * |
|---|
| 99 | * @param value |
|---|
| 100 | * allowed object is |
|---|
| 101 | * {@link CTTwipsMeasure } |
|---|
| 102 | * |
|---|
| 103 | */ |
|---|
| 104 | public void setW(CTTwipsMeasure value) { |
|---|
| 105 | this.w = value; |
|---|
| 106 | } |
|---|
| 107 | |
|---|
| 108 | /** |
|---|
| 109 | * Gets the value of the color property. |
|---|
| 110 | * |
|---|
| 111 | * @return |
|---|
| 112 | * possible object is |
|---|
| 113 | * {@link CTFramesetSplitbar.Color } |
|---|
| 114 | * |
|---|
| 115 | */ |
|---|
| 116 | public CTFramesetSplitbar.Color getColor() { |
|---|
| 117 | return color; |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | /** |
|---|
| 121 | * Sets the value of the color property. |
|---|
| 122 | * |
|---|
| 123 | * @param value |
|---|
| 124 | * allowed object is |
|---|
| 125 | * {@link CTFramesetSplitbar.Color } |
|---|
| 126 | * |
|---|
| 127 | */ |
|---|
| 128 | public void setColor(CTFramesetSplitbar.Color value) { |
|---|
| 129 | this.color = value; |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | /** |
|---|
| 133 | * Gets the value of the noBorder property. |
|---|
| 134 | * |
|---|
| 135 | * @return |
|---|
| 136 | * possible object is |
|---|
| 137 | * {@link BooleanDefaultTrue } |
|---|
| 138 | * |
|---|
| 139 | */ |
|---|
| 140 | public BooleanDefaultTrue getNoBorder() { |
|---|
| 141 | return noBorder; |
|---|
| 142 | } |
|---|
| 143 | |
|---|
| 144 | /** |
|---|
| 145 | * Sets the value of the noBorder property. |
|---|
| 146 | * |
|---|
| 147 | * @param value |
|---|
| 148 | * allowed object is |
|---|
| 149 | * {@link BooleanDefaultTrue } |
|---|
| 150 | * |
|---|
| 151 | */ |
|---|
| 152 | public void setNoBorder(BooleanDefaultTrue value) { |
|---|
| 153 | this.noBorder = value; |
|---|
| 154 | } |
|---|
| 155 | |
|---|
| 156 | /** |
|---|
| 157 | * Gets the value of the flatBorders property. |
|---|
| 158 | * |
|---|
| 159 | * @return |
|---|
| 160 | * possible object is |
|---|
| 161 | * {@link BooleanDefaultTrue } |
|---|
| 162 | * |
|---|
| 163 | */ |
|---|
| 164 | public BooleanDefaultTrue getFlatBorders() { |
|---|
| 165 | return flatBorders; |
|---|
| 166 | } |
|---|
| 167 | |
|---|
| 168 | /** |
|---|
| 169 | * Sets the value of the flatBorders property. |
|---|
| 170 | * |
|---|
| 171 | * @param value |
|---|
| 172 | * allowed object is |
|---|
| 173 | * {@link BooleanDefaultTrue } |
|---|
| 174 | * |
|---|
| 175 | */ |
|---|
| 176 | public void setFlatBorders(BooleanDefaultTrue value) { |
|---|
| 177 | this.flatBorders = value; |
|---|
| 178 | } |
|---|
| 179 | |
|---|
| 180 | /** |
|---|
| 181 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 182 | * |
|---|
| 183 | * @return |
|---|
| 184 | * The parent object. |
|---|
| 185 | */ |
|---|
| 186 | public Object getParent() { |
|---|
| 187 | return this.parent; |
|---|
| 188 | } |
|---|
| 189 | |
|---|
| 190 | public void setParent(Object parent) { |
|---|
| 191 | this.parent = parent; |
|---|
| 192 | } |
|---|
| 193 | |
|---|
| 194 | /** |
|---|
| 195 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 196 | * |
|---|
| 197 | * @param parent |
|---|
| 198 | * The parent object in the object tree. |
|---|
| 199 | * @param unmarshaller |
|---|
| 200 | * The unmarshaller that generated the instance. |
|---|
| 201 | */ |
|---|
| 202 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 203 | setParent(parent); |
|---|
| 204 | } |
|---|
| 205 | |
|---|
| 206 | |
|---|
| 207 | /** |
|---|
| 208 | * <p>Java class for anonymous complex type. |
|---|
| 209 | * |
|---|
| 210 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 211 | * |
|---|
| 212 | * <pre> |
|---|
| 213 | * <complexType> |
|---|
| 214 | * <complexContent> |
|---|
| 215 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 216 | * <attribute name="val" use="required" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_HexColor" /> |
|---|
| 217 | * <attribute name="themeColor" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_ThemeColor" /> |
|---|
| 218 | * <attribute name="themeTint" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" /> |
|---|
| 219 | * <attribute name="themeShade" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_UcharHexNumber" /> |
|---|
| 220 | * </restriction> |
|---|
| 221 | * </complexContent> |
|---|
| 222 | * </complexType> |
|---|
| 223 | * </pre> |
|---|
| 224 | * |
|---|
| 225 | * |
|---|
| 226 | */ |
|---|
| 227 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 228 | @XmlType(name = "") |
|---|
| 229 | public static class Color |
|---|
| 230 | implements Child |
|---|
| 231 | { |
|---|
| 232 | |
|---|
| 233 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main", required = true) |
|---|
| 234 | protected String val; |
|---|
| 235 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 236 | protected STThemeColor themeColor; |
|---|
| 237 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 238 | protected String themeTint; |
|---|
| 239 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 240 | protected String themeShade; |
|---|
| 241 | @XmlTransient |
|---|
| 242 | private Object parent; |
|---|
| 243 | |
|---|
| 244 | /** |
|---|
| 245 | * Gets the value of the val property. |
|---|
| 246 | * |
|---|
| 247 | * @return |
|---|
| 248 | * possible object is |
|---|
| 249 | * {@link String } |
|---|
| 250 | * |
|---|
| 251 | */ |
|---|
| 252 | public String getVal() { |
|---|
| 253 | return val; |
|---|
| 254 | } |
|---|
| 255 | |
|---|
| 256 | /** |
|---|
| 257 | * Sets the value of the val property. |
|---|
| 258 | * |
|---|
| 259 | * @param value |
|---|
| 260 | * allowed object is |
|---|
| 261 | * {@link String } |
|---|
| 262 | * |
|---|
| 263 | */ |
|---|
| 264 | public void setVal(String value) { |
|---|
| 265 | this.val = value; |
|---|
| 266 | } |
|---|
| 267 | |
|---|
| 268 | /** |
|---|
| 269 | * Gets the value of the themeColor property. |
|---|
| 270 | * |
|---|
| 271 | * @return |
|---|
| 272 | * possible object is |
|---|
| 273 | * {@link STThemeColor } |
|---|
| 274 | * |
|---|
| 275 | */ |
|---|
| 276 | public STThemeColor getThemeColor() { |
|---|
| 277 | return themeColor; |
|---|
| 278 | } |
|---|
| 279 | |
|---|
| 280 | /** |
|---|
| 281 | * Sets the value of the themeColor property. |
|---|
| 282 | * |
|---|
| 283 | * @param value |
|---|
| 284 | * allowed object is |
|---|
| 285 | * {@link STThemeColor } |
|---|
| 286 | * |
|---|
| 287 | */ |
|---|
| 288 | public void setThemeColor(STThemeColor value) { |
|---|
| 289 | this.themeColor = value; |
|---|
| 290 | } |
|---|
| 291 | |
|---|
| 292 | /** |
|---|
| 293 | * Gets the value of the themeTint property. |
|---|
| 294 | * |
|---|
| 295 | * @return |
|---|
| 296 | * possible object is |
|---|
| 297 | * {@link String } |
|---|
| 298 | * |
|---|
| 299 | */ |
|---|
| 300 | public String getThemeTint() { |
|---|
| 301 | return themeTint; |
|---|
| 302 | } |
|---|
| 303 | |
|---|
| 304 | /** |
|---|
| 305 | * Sets the value of the themeTint property. |
|---|
| 306 | * |
|---|
| 307 | * @param value |
|---|
| 308 | * allowed object is |
|---|
| 309 | * {@link String } |
|---|
| 310 | * |
|---|
| 311 | */ |
|---|
| 312 | public void setThemeTint(String value) { |
|---|
| 313 | this.themeTint = value; |
|---|
| 314 | } |
|---|
| 315 | |
|---|
| 316 | /** |
|---|
| 317 | * Gets the value of the themeShade property. |
|---|
| 318 | * |
|---|
| 319 | * @return |
|---|
| 320 | * possible object is |
|---|
| 321 | * {@link String } |
|---|
| 322 | * |
|---|
| 323 | */ |
|---|
| 324 | public String getThemeShade() { |
|---|
| 325 | return themeShade; |
|---|
| 326 | } |
|---|
| 327 | |
|---|
| 328 | /** |
|---|
| 329 | * Sets the value of the themeShade property. |
|---|
| 330 | * |
|---|
| 331 | * @param value |
|---|
| 332 | * allowed object is |
|---|
| 333 | * {@link String } |
|---|
| 334 | * |
|---|
| 335 | */ |
|---|
| 336 | public void setThemeShade(String value) { |
|---|
| 337 | this.themeShade = value; |
|---|
| 338 | } |
|---|
| 339 | |
|---|
| 340 | /** |
|---|
| 341 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 342 | * |
|---|
| 343 | * @return |
|---|
| 344 | * The parent object. |
|---|
| 345 | */ |
|---|
| 346 | public Object getParent() { |
|---|
| 347 | return this.parent; |
|---|
| 348 | } |
|---|
| 349 | |
|---|
| 350 | public void setParent(Object parent) { |
|---|
| 351 | this.parent = parent; |
|---|
| 352 | } |
|---|
| 353 | |
|---|
| 354 | /** |
|---|
| 355 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 356 | * |
|---|
| 357 | * @param parent |
|---|
| 358 | * The parent object in the object tree. |
|---|
| 359 | * @param unmarshaller |
|---|
| 360 | * The unmarshaller that generated the instance. |
|---|
| 361 | */ |
|---|
| 362 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 363 | setParent(parent); |
|---|
| 364 | } |
|---|
| 365 | |
|---|
| 366 | } |
|---|
| 367 | |
|---|
| 368 | } |
|---|