| 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.XmlTransient; |
|---|
| 28 | import javax.xml.bind.annotation.XmlType; |
|---|
| 29 | import org.jvnet.jaxb2_commons.ppp.Child; |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | /** |
|---|
| 33 | * <p>Java class for CT_SSubPr complex type. |
|---|
| 34 | * |
|---|
| 35 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 36 | * |
|---|
| 37 | * <pre> |
|---|
| 38 | * <complexType name="CT_SSubPr"> |
|---|
| 39 | * <complexContent> |
|---|
| 40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 41 | * <sequence> |
|---|
| 42 | * <element name="ctrlPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_CtrlPr" minOccurs="0"/> |
|---|
| 43 | * </sequence> |
|---|
| 44 | * </restriction> |
|---|
| 45 | * </complexContent> |
|---|
| 46 | * </complexType> |
|---|
| 47 | * </pre> |
|---|
| 48 | * |
|---|
| 49 | * |
|---|
| 50 | */ |
|---|
| 51 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 52 | @XmlType(name = "CT_SSubPr", propOrder = { |
|---|
| 53 | "ctrlPr" |
|---|
| 54 | }) |
|---|
| 55 | public class CTSSubPr |
|---|
| 56 | implements Child |
|---|
| 57 | { |
|---|
| 58 | |
|---|
| 59 | protected CTCtrlPr ctrlPr; |
|---|
| 60 | @XmlTransient |
|---|
| 61 | private Object parent; |
|---|
| 62 | |
|---|
| 63 | /** |
|---|
| 64 | * Gets the value of the ctrlPr property. |
|---|
| 65 | * |
|---|
| 66 | * @return |
|---|
| 67 | * possible object is |
|---|
| 68 | * {@link CTCtrlPr } |
|---|
| 69 | * |
|---|
| 70 | */ |
|---|
| 71 | public CTCtrlPr getCtrlPr() { |
|---|
| 72 | return ctrlPr; |
|---|
| 73 | } |
|---|
| 74 | |
|---|
| 75 | /** |
|---|
| 76 | * Sets the value of the ctrlPr property. |
|---|
| 77 | * |
|---|
| 78 | * @param value |
|---|
| 79 | * allowed object is |
|---|
| 80 | * {@link CTCtrlPr } |
|---|
| 81 | * |
|---|
| 82 | */ |
|---|
| 83 | public void setCtrlPr(CTCtrlPr value) { |
|---|
| 84 | this.ctrlPr = value; |
|---|
| 85 | } |
|---|
| 86 | |
|---|
| 87 | /** |
|---|
| 88 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 89 | * |
|---|
| 90 | * @return |
|---|
| 91 | * The parent object. |
|---|
| 92 | */ |
|---|
| 93 | public Object getParent() { |
|---|
| 94 | return this.parent; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | public void setParent(Object parent) { |
|---|
| 98 | this.parent = parent; |
|---|
| 99 | } |
|---|
| 100 | |
|---|
| 101 | /** |
|---|
| 102 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 103 | * |
|---|
| 104 | * @param parent |
|---|
| 105 | * The parent object in the object tree. |
|---|
| 106 | * @param unmarshaller |
|---|
| 107 | * The unmarshaller that generated the instance. |
|---|
| 108 | */ |
|---|
| 109 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 110 | setParent(parent); |
|---|
| 111 | } |
|---|
| 112 | |
|---|
| 113 | } |
|---|