| 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 javax.xml.bind.Unmarshaller; |
|---|
| 26 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 27 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 28 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 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 CT_Object complex type. |
|---|
| 36 | * |
|---|
| 37 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 38 | * |
|---|
| 39 | * <pre> |
|---|
| 40 | * <complexType name="CT_Object"> |
|---|
| 41 | * <complexContent> |
|---|
| 42 | * <extension base="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_PictureBase"> |
|---|
| 43 | * <sequence> |
|---|
| 44 | * <element name="control" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Control" minOccurs="0"/> |
|---|
| 45 | * </sequence> |
|---|
| 46 | * <attribute name="dxaOrig" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" /> |
|---|
| 47 | * <attribute name="dyaOrig" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}ST_TwipsMeasure" /> |
|---|
| 48 | * </extension> |
|---|
| 49 | * </complexContent> |
|---|
| 50 | * </complexType> |
|---|
| 51 | * </pre> |
|---|
| 52 | * |
|---|
| 53 | * |
|---|
| 54 | */ |
|---|
| 55 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 56 | @XmlType(name = "CT_Object", propOrder = { |
|---|
| 57 | "control" |
|---|
| 58 | }) |
|---|
| 59 | public class CTObject |
|---|
| 60 | extends CTPictureBase |
|---|
| 61 | implements Child |
|---|
| 62 | { |
|---|
| 63 | |
|---|
| 64 | protected CTControl control; |
|---|
| 65 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 66 | protected BigInteger dxaOrig; |
|---|
| 67 | @XmlAttribute(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 68 | protected BigInteger dyaOrig; |
|---|
| 69 | @XmlTransient |
|---|
| 70 | private Object parent; |
|---|
| 71 | |
|---|
| 72 | /** |
|---|
| 73 | * Gets the value of the control property. |
|---|
| 74 | * |
|---|
| 75 | * @return |
|---|
| 76 | * possible object is |
|---|
| 77 | * {@link CTControl } |
|---|
| 78 | * |
|---|
| 79 | */ |
|---|
| 80 | public CTControl getControl() { |
|---|
| 81 | return control; |
|---|
| 82 | } |
|---|
| 83 | |
|---|
| 84 | /** |
|---|
| 85 | * Sets the value of the control property. |
|---|
| 86 | * |
|---|
| 87 | * @param value |
|---|
| 88 | * allowed object is |
|---|
| 89 | * {@link CTControl } |
|---|
| 90 | * |
|---|
| 91 | */ |
|---|
| 92 | public void setControl(CTControl value) { |
|---|
| 93 | this.control = value; |
|---|
| 94 | } |
|---|
| 95 | |
|---|
| 96 | /** |
|---|
| 97 | * Gets the value of the dxaOrig property. |
|---|
| 98 | * |
|---|
| 99 | * @return |
|---|
| 100 | * possible object is |
|---|
| 101 | * {@link BigInteger } |
|---|
| 102 | * |
|---|
| 103 | */ |
|---|
| 104 | public BigInteger getDxaOrig() { |
|---|
| 105 | return dxaOrig; |
|---|
| 106 | } |
|---|
| 107 | |
|---|
| 108 | /** |
|---|
| 109 | * Sets the value of the dxaOrig property. |
|---|
| 110 | * |
|---|
| 111 | * @param value |
|---|
| 112 | * allowed object is |
|---|
| 113 | * {@link BigInteger } |
|---|
| 114 | * |
|---|
| 115 | */ |
|---|
| 116 | public void setDxaOrig(BigInteger value) { |
|---|
| 117 | this.dxaOrig = value; |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | /** |
|---|
| 121 | * Gets the value of the dyaOrig property. |
|---|
| 122 | * |
|---|
| 123 | * @return |
|---|
| 124 | * possible object is |
|---|
| 125 | * {@link BigInteger } |
|---|
| 126 | * |
|---|
| 127 | */ |
|---|
| 128 | public BigInteger getDyaOrig() { |
|---|
| 129 | return dyaOrig; |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | /** |
|---|
| 133 | * Sets the value of the dyaOrig property. |
|---|
| 134 | * |
|---|
| 135 | * @param value |
|---|
| 136 | * allowed object is |
|---|
| 137 | * {@link BigInteger } |
|---|
| 138 | * |
|---|
| 139 | */ |
|---|
| 140 | public void setDyaOrig(BigInteger value) { |
|---|
| 141 | this.dyaOrig = value; |
|---|
| 142 | } |
|---|
| 143 | |
|---|
| 144 | /** |
|---|
| 145 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 146 | * |
|---|
| 147 | * @return |
|---|
| 148 | * The parent object. |
|---|
| 149 | */ |
|---|
| 150 | public Object getParent() { |
|---|
| 151 | return this.parent; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | public void setParent(Object parent) { |
|---|
| 155 | this.parent = parent; |
|---|
| 156 | } |
|---|
| 157 | |
|---|
| 158 | /** |
|---|
| 159 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 160 | * |
|---|
| 161 | * @param parent |
|---|
| 162 | * The parent object in the object tree. |
|---|
| 163 | * @param unmarshaller |
|---|
| 164 | * The unmarshaller that generated the instance. |
|---|
| 165 | */ |
|---|
| 166 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 167 | setParent(parent); |
|---|
| 168 | } |
|---|
| 169 | |
|---|
| 170 | } |
|---|