| 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.math; |
|---|
| 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.XmlElement; |
|---|
| 28 | import javax.xml.bind.annotation.XmlTransient; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import org.docx4j.wml.CTRPrChange; |
|---|
| 31 | import org.docx4j.wml.RPr; |
|---|
| 32 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | /** |
|---|
| 36 | * <p>Java class for CT_CtrlPr complex type. |
|---|
| 37 | * |
|---|
| 38 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 39 | * |
|---|
| 40 | * <pre> |
|---|
| 41 | * <complexType name="CT_CtrlPr"> |
|---|
| 42 | * <complexContent> |
|---|
| 43 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 44 | * <sequence> |
|---|
| 45 | * <group ref="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}EG_RPrMath" minOccurs="0"/> |
|---|
| 46 | * </sequence> |
|---|
| 47 | * </restriction> |
|---|
| 48 | * </complexContent> |
|---|
| 49 | * </complexType> |
|---|
| 50 | * </pre> |
|---|
| 51 | * |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 55 | @XmlType(name = "CT_CtrlPr", propOrder = { |
|---|
| 56 | "rPr", |
|---|
| 57 | "ins", |
|---|
| 58 | "del" |
|---|
| 59 | }) |
|---|
| 60 | public class CTCtrlPr |
|---|
| 61 | implements Child |
|---|
| 62 | { |
|---|
| 63 | |
|---|
| 64 | @XmlElement(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 65 | protected RPr rPr; |
|---|
| 66 | @XmlElement(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 67 | protected CTRPrChange ins; |
|---|
| 68 | @XmlElement(namespace = "http://schemas.openxmlformats.org/wordprocessingml/2006/main") |
|---|
| 69 | protected CTRPrChange del; |
|---|
| 70 | @XmlTransient |
|---|
| 71 | private Object parent; |
|---|
| 72 | |
|---|
| 73 | /** |
|---|
| 74 | * Gets the value of the rPr property. |
|---|
| 75 | * |
|---|
| 76 | * @return |
|---|
| 77 | * possible object is |
|---|
| 78 | * {@link RPr } |
|---|
| 79 | * |
|---|
| 80 | */ |
|---|
| 81 | public RPr getRPr() { |
|---|
| 82 | return rPr; |
|---|
| 83 | } |
|---|
| 84 | |
|---|
| 85 | /** |
|---|
| 86 | * Sets the value of the rPr property. |
|---|
| 87 | * |
|---|
| 88 | * @param value |
|---|
| 89 | * allowed object is |
|---|
| 90 | * {@link RPr } |
|---|
| 91 | * |
|---|
| 92 | */ |
|---|
| 93 | public void setRPr(RPr value) { |
|---|
| 94 | this.rPr = value; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Gets the value of the ins property. |
|---|
| 99 | * |
|---|
| 100 | * @return |
|---|
| 101 | * possible object is |
|---|
| 102 | * {@link CTRPrChange } |
|---|
| 103 | * |
|---|
| 104 | */ |
|---|
| 105 | public CTRPrChange getIns() { |
|---|
| 106 | return ins; |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | /** |
|---|
| 110 | * Sets the value of the ins property. |
|---|
| 111 | * |
|---|
| 112 | * @param value |
|---|
| 113 | * allowed object is |
|---|
| 114 | * {@link CTRPrChange } |
|---|
| 115 | * |
|---|
| 116 | */ |
|---|
| 117 | public void setIns(CTRPrChange value) { |
|---|
| 118 | this.ins = value; |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | /** |
|---|
| 122 | * Gets the value of the del property. |
|---|
| 123 | * |
|---|
| 124 | * @return |
|---|
| 125 | * possible object is |
|---|
| 126 | * {@link CTRPrChange } |
|---|
| 127 | * |
|---|
| 128 | */ |
|---|
| 129 | public CTRPrChange getDel() { |
|---|
| 130 | return del; |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Sets the value of the del property. |
|---|
| 135 | * |
|---|
| 136 | * @param value |
|---|
| 137 | * allowed object is |
|---|
| 138 | * {@link CTRPrChange } |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | public void setDel(CTRPrChange value) { |
|---|
| 142 | this.del = value; |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /** |
|---|
| 146 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 147 | * |
|---|
| 148 | * @return |
|---|
| 149 | * The parent object. |
|---|
| 150 | */ |
|---|
| 151 | public Object getParent() { |
|---|
| 152 | return this.parent; |
|---|
| 153 | } |
|---|
| 154 | |
|---|
| 155 | public void setParent(Object parent) { |
|---|
| 156 | this.parent = parent; |
|---|
| 157 | } |
|---|
| 158 | |
|---|
| 159 | /** |
|---|
| 160 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 161 | * |
|---|
| 162 | * @param parent |
|---|
| 163 | * The parent object in the object tree. |
|---|
| 164 | * @param unmarshaller |
|---|
| 165 | * The unmarshaller that generated the instance. |
|---|
| 166 | */ |
|---|
| 167 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 168 | setParent(parent); |
|---|
| 169 | } |
|---|
| 170 | |
|---|
| 171 | } |
|---|