| 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.vml; |
|---|
| 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_Shadow complex type. |
|---|
| 35 | * |
|---|
| 36 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 37 | * |
|---|
| 38 | * <pre> |
|---|
| 39 | * <complexType name="CT_Shadow"> |
|---|
| 40 | * <complexContent> |
|---|
| 41 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 42 | * <attGroup ref="{urn:schemas-microsoft-com:vml}AG_Id"/> |
|---|
| 43 | * <attribute name="on" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 44 | * <attribute name="type" type="{urn:schemas-microsoft-com:vml}ST_ShadowType" /> |
|---|
| 45 | * <attribute name="obscured" type="{urn:schemas-microsoft-com:vml}ST_TrueFalse" /> |
|---|
| 46 | * <attribute name="color" type="{urn:schemas-microsoft-com:vml}ST_ColorType" /> |
|---|
| 47 | * <attribute name="opacity" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 48 | * <attribute name="offset" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 49 | * <attribute name="color2" type="{urn:schemas-microsoft-com:vml}ST_ColorType" /> |
|---|
| 50 | * <attribute name="offset2" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 51 | * <attribute name="origin" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 52 | * <attribute name="matrix" type="{http://www.w3.org/2001/XMLSchema}string" /> |
|---|
| 53 | * </restriction> |
|---|
| 54 | * </complexContent> |
|---|
| 55 | * </complexType> |
|---|
| 56 | * </pre> |
|---|
| 57 | * |
|---|
| 58 | * |
|---|
| 59 | */ |
|---|
| 60 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 61 | @XmlType(name = "CT_Shadow") |
|---|
| 62 | public class CTShadow implements Child |
|---|
| 63 | { |
|---|
| 64 | |
|---|
| 65 | @XmlAttribute(name = "on") |
|---|
| 66 | protected STTrueFalse on; |
|---|
| 67 | @XmlAttribute(name = "type") |
|---|
| 68 | protected STShadowType type; |
|---|
| 69 | @XmlAttribute(name = "obscured") |
|---|
| 70 | protected STTrueFalse obscured; |
|---|
| 71 | @XmlAttribute(name = "color") |
|---|
| 72 | protected String color; |
|---|
| 73 | @XmlAttribute(name = "opacity") |
|---|
| 74 | protected String opacity; |
|---|
| 75 | @XmlAttribute(name = "offset") |
|---|
| 76 | protected String offset; |
|---|
| 77 | @XmlAttribute(name = "color2") |
|---|
| 78 | protected String color2; |
|---|
| 79 | @XmlAttribute(name = "offset2") |
|---|
| 80 | protected String offset2; |
|---|
| 81 | @XmlAttribute(name = "origin") |
|---|
| 82 | protected String origin; |
|---|
| 83 | @XmlAttribute(name = "matrix") |
|---|
| 84 | protected String matrix; |
|---|
| 85 | @XmlAttribute(name = "id") |
|---|
| 86 | protected String vmlId; |
|---|
| 87 | @XmlTransient |
|---|
| 88 | private Object parent; |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Gets the value of the on property. |
|---|
| 92 | * |
|---|
| 93 | * @return |
|---|
| 94 | * possible object is |
|---|
| 95 | * {@link STTrueFalse } |
|---|
| 96 | * |
|---|
| 97 | */ |
|---|
| 98 | public STTrueFalse getOn() { |
|---|
| 99 | return on; |
|---|
| 100 | } |
|---|
| 101 | |
|---|
| 102 | /** |
|---|
| 103 | * Sets the value of the on property. |
|---|
| 104 | * |
|---|
| 105 | * @param value |
|---|
| 106 | * allowed object is |
|---|
| 107 | * {@link STTrueFalse } |
|---|
| 108 | * |
|---|
| 109 | */ |
|---|
| 110 | public void setOn(STTrueFalse value) { |
|---|
| 111 | this.on = value; |
|---|
| 112 | } |
|---|
| 113 | |
|---|
| 114 | /** |
|---|
| 115 | * Gets the value of the type property. |
|---|
| 116 | * |
|---|
| 117 | * @return |
|---|
| 118 | * possible object is |
|---|
| 119 | * {@link STShadowType } |
|---|
| 120 | * |
|---|
| 121 | */ |
|---|
| 122 | public STShadowType getType() { |
|---|
| 123 | return type; |
|---|
| 124 | } |
|---|
| 125 | |
|---|
| 126 | /** |
|---|
| 127 | * Sets the value of the type property. |
|---|
| 128 | * |
|---|
| 129 | * @param value |
|---|
| 130 | * allowed object is |
|---|
| 131 | * {@link STShadowType } |
|---|
| 132 | * |
|---|
| 133 | */ |
|---|
| 134 | public void setType(STShadowType value) { |
|---|
| 135 | this.type = value; |
|---|
| 136 | } |
|---|
| 137 | |
|---|
| 138 | /** |
|---|
| 139 | * Gets the value of the obscured property. |
|---|
| 140 | * |
|---|
| 141 | * @return |
|---|
| 142 | * possible object is |
|---|
| 143 | * {@link STTrueFalse } |
|---|
| 144 | * |
|---|
| 145 | */ |
|---|
| 146 | public STTrueFalse getObscured() { |
|---|
| 147 | return obscured; |
|---|
| 148 | } |
|---|
| 149 | |
|---|
| 150 | /** |
|---|
| 151 | * Sets the value of the obscured property. |
|---|
| 152 | * |
|---|
| 153 | * @param value |
|---|
| 154 | * allowed object is |
|---|
| 155 | * {@link STTrueFalse } |
|---|
| 156 | * |
|---|
| 157 | */ |
|---|
| 158 | public void setObscured(STTrueFalse value) { |
|---|
| 159 | this.obscured = value; |
|---|
| 160 | } |
|---|
| 161 | |
|---|
| 162 | /** |
|---|
| 163 | * Gets the value of the color property. |
|---|
| 164 | * |
|---|
| 165 | * @return |
|---|
| 166 | * possible object is |
|---|
| 167 | * {@link String } |
|---|
| 168 | * |
|---|
| 169 | */ |
|---|
| 170 | public String getColor() { |
|---|
| 171 | return color; |
|---|
| 172 | } |
|---|
| 173 | |
|---|
| 174 | /** |
|---|
| 175 | * Sets the value of the color property. |
|---|
| 176 | * |
|---|
| 177 | * @param value |
|---|
| 178 | * allowed object is |
|---|
| 179 | * {@link String } |
|---|
| 180 | * |
|---|
| 181 | */ |
|---|
| 182 | public void setColor(String value) { |
|---|
| 183 | this.color = value; |
|---|
| 184 | } |
|---|
| 185 | |
|---|
| 186 | /** |
|---|
| 187 | * Gets the value of the opacity property. |
|---|
| 188 | * |
|---|
| 189 | * @return |
|---|
| 190 | * possible object is |
|---|
| 191 | * {@link String } |
|---|
| 192 | * |
|---|
| 193 | */ |
|---|
| 194 | public String getOpacity() { |
|---|
| 195 | return opacity; |
|---|
| 196 | } |
|---|
| 197 | |
|---|
| 198 | /** |
|---|
| 199 | * Sets the value of the opacity property. |
|---|
| 200 | * |
|---|
| 201 | * @param value |
|---|
| 202 | * allowed object is |
|---|
| 203 | * {@link String } |
|---|
| 204 | * |
|---|
| 205 | */ |
|---|
| 206 | public void setOpacity(String value) { |
|---|
| 207 | this.opacity = value; |
|---|
| 208 | } |
|---|
| 209 | |
|---|
| 210 | /** |
|---|
| 211 | * Gets the value of the offset property. |
|---|
| 212 | * |
|---|
| 213 | * @return |
|---|
| 214 | * possible object is |
|---|
| 215 | * {@link String } |
|---|
| 216 | * |
|---|
| 217 | */ |
|---|
| 218 | public String getOffset() { |
|---|
| 219 | return offset; |
|---|
| 220 | } |
|---|
| 221 | |
|---|
| 222 | /** |
|---|
| 223 | * Sets the value of the offset property. |
|---|
| 224 | * |
|---|
| 225 | * @param value |
|---|
| 226 | * allowed object is |
|---|
| 227 | * {@link String } |
|---|
| 228 | * |
|---|
| 229 | */ |
|---|
| 230 | public void setOffset(String value) { |
|---|
| 231 | this.offset = value; |
|---|
| 232 | } |
|---|
| 233 | |
|---|
| 234 | /** |
|---|
| 235 | * Gets the value of the color2 property. |
|---|
| 236 | * |
|---|
| 237 | * @return |
|---|
| 238 | * possible object is |
|---|
| 239 | * {@link String } |
|---|
| 240 | * |
|---|
| 241 | */ |
|---|
| 242 | public String getColor2() { |
|---|
| 243 | return color2; |
|---|
| 244 | } |
|---|
| 245 | |
|---|
| 246 | /** |
|---|
| 247 | * Sets the value of the color2 property. |
|---|
| 248 | * |
|---|
| 249 | * @param value |
|---|
| 250 | * allowed object is |
|---|
| 251 | * {@link String } |
|---|
| 252 | * |
|---|
| 253 | */ |
|---|
| 254 | public void setColor2(String value) { |
|---|
| 255 | this.color2 = value; |
|---|
| 256 | } |
|---|
| 257 | |
|---|
| 258 | /** |
|---|
| 259 | * Gets the value of the offset2 property. |
|---|
| 260 | * |
|---|
| 261 | * @return |
|---|
| 262 | * possible object is |
|---|
| 263 | * {@link String } |
|---|
| 264 | * |
|---|
| 265 | */ |
|---|
| 266 | public String getOffset2() { |
|---|
| 267 | return offset2; |
|---|
| 268 | } |
|---|
| 269 | |
|---|
| 270 | /** |
|---|
| 271 | * Sets the value of the offset2 property. |
|---|
| 272 | * |
|---|
| 273 | * @param value |
|---|
| 274 | * allowed object is |
|---|
| 275 | * {@link String } |
|---|
| 276 | * |
|---|
| 277 | */ |
|---|
| 278 | public void setOffset2(String value) { |
|---|
| 279 | this.offset2 = value; |
|---|
| 280 | } |
|---|
| 281 | |
|---|
| 282 | /** |
|---|
| 283 | * Gets the value of the origin property. |
|---|
| 284 | * |
|---|
| 285 | * @return |
|---|
| 286 | * possible object is |
|---|
| 287 | * {@link String } |
|---|
| 288 | * |
|---|
| 289 | */ |
|---|
| 290 | public String getOrigin() { |
|---|
| 291 | return origin; |
|---|
| 292 | } |
|---|
| 293 | |
|---|
| 294 | /** |
|---|
| 295 | * Sets the value of the origin property. |
|---|
| 296 | * |
|---|
| 297 | * @param value |
|---|
| 298 | * allowed object is |
|---|
| 299 | * {@link String } |
|---|
| 300 | * |
|---|
| 301 | */ |
|---|
| 302 | public void setOrigin(String value) { |
|---|
| 303 | this.origin = value; |
|---|
| 304 | } |
|---|
| 305 | |
|---|
| 306 | /** |
|---|
| 307 | * Gets the value of the matrix property. |
|---|
| 308 | * |
|---|
| 309 | * @return |
|---|
| 310 | * possible object is |
|---|
| 311 | * {@link String } |
|---|
| 312 | * |
|---|
| 313 | */ |
|---|
| 314 | public String getMatrix() { |
|---|
| 315 | return matrix; |
|---|
| 316 | } |
|---|
| 317 | |
|---|
| 318 | /** |
|---|
| 319 | * Sets the value of the matrix property. |
|---|
| 320 | * |
|---|
| 321 | * @param value |
|---|
| 322 | * allowed object is |
|---|
| 323 | * {@link String } |
|---|
| 324 | * |
|---|
| 325 | */ |
|---|
| 326 | public void setMatrix(String value) { |
|---|
| 327 | this.matrix = value; |
|---|
| 328 | } |
|---|
| 329 | |
|---|
| 330 | /** |
|---|
| 331 | * Gets the value of the vmlId property. |
|---|
| 332 | * |
|---|
| 333 | * @return |
|---|
| 334 | * possible object is |
|---|
| 335 | * {@link String } |
|---|
| 336 | * |
|---|
| 337 | */ |
|---|
| 338 | public String getVmlId() { |
|---|
| 339 | return vmlId; |
|---|
| 340 | } |
|---|
| 341 | |
|---|
| 342 | /** |
|---|
| 343 | * Sets the value of the vmlId property. |
|---|
| 344 | * |
|---|
| 345 | * @param value |
|---|
| 346 | * allowed object is |
|---|
| 347 | * {@link String } |
|---|
| 348 | * |
|---|
| 349 | */ |
|---|
| 350 | public void setVmlId(String value) { |
|---|
| 351 | this.vmlId = value; |
|---|
| 352 | } |
|---|
| 353 | |
|---|
| 354 | /** |
|---|
| 355 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 356 | * |
|---|
| 357 | * @return |
|---|
| 358 | * The parent object. |
|---|
| 359 | */ |
|---|
| 360 | public Object getParent() { |
|---|
| 361 | return this.parent; |
|---|
| 362 | } |
|---|
| 363 | |
|---|
| 364 | public void setParent(Object parent) { |
|---|
| 365 | this.parent = parent; |
|---|
| 366 | } |
|---|
| 367 | |
|---|
| 368 | /** |
|---|
| 369 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 370 | * |
|---|
| 371 | * @param parent |
|---|
| 372 | * The parent object in the object tree. |
|---|
| 373 | * @param unmarshaller |
|---|
| 374 | * The unmarshaller that generated the instance. |
|---|
| 375 | */ |
|---|
| 376 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 377 | setParent(parent); |
|---|
| 378 | } |
|---|
| 379 | |
|---|
| 380 | } |
|---|