| 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_SSubSupPr complex type. |
|---|
| 34 | * |
|---|
| 35 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 36 | * |
|---|
| 37 | * <pre> |
|---|
| 38 | * <complexType name="CT_SSubSupPr"> |
|---|
| 39 | * <complexContent> |
|---|
| 40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 41 | * <sequence> |
|---|
| 42 | * <element name="alnScr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_OnOff" minOccurs="0"/> |
|---|
| 43 | * <element name="ctrlPr" type="{http://schemas.openxmlformats.org/officeDocument/2006/math}CT_CtrlPr" minOccurs="0"/> |
|---|
| 44 | * </sequence> |
|---|
| 45 | * </restriction> |
|---|
| 46 | * </complexContent> |
|---|
| 47 | * </complexType> |
|---|
| 48 | * </pre> |
|---|
| 49 | * |
|---|
| 50 | * |
|---|
| 51 | */ |
|---|
| 52 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 53 | @XmlType(name = "CT_SSubSupPr", propOrder = { |
|---|
| 54 | "alnScr", |
|---|
| 55 | "ctrlPr" |
|---|
| 56 | }) |
|---|
| 57 | public class CTSSubSupPr |
|---|
| 58 | implements Child |
|---|
| 59 | { |
|---|
| 60 | |
|---|
| 61 | protected CTOnOff alnScr; |
|---|
| 62 | protected CTCtrlPr ctrlPr; |
|---|
| 63 | @XmlTransient |
|---|
| 64 | private Object parent; |
|---|
| 65 | |
|---|
| 66 | /** |
|---|
| 67 | * Gets the value of the alnScr property. |
|---|
| 68 | * |
|---|
| 69 | * @return |
|---|
| 70 | * possible object is |
|---|
| 71 | * {@link CTOnOff } |
|---|
| 72 | * |
|---|
| 73 | */ |
|---|
| 74 | public CTOnOff getAlnScr() { |
|---|
| 75 | return alnScr; |
|---|
| 76 | } |
|---|
| 77 | |
|---|
| 78 | /** |
|---|
| 79 | * Sets the value of the alnScr property. |
|---|
| 80 | * |
|---|
| 81 | * @param value |
|---|
| 82 | * allowed object is |
|---|
| 83 | * {@link CTOnOff } |
|---|
| 84 | * |
|---|
| 85 | */ |
|---|
| 86 | public void setAlnScr(CTOnOff value) { |
|---|
| 87 | this.alnScr = value; |
|---|
| 88 | } |
|---|
| 89 | |
|---|
| 90 | /** |
|---|
| 91 | * Gets the value of the ctrlPr property. |
|---|
| 92 | * |
|---|
| 93 | * @return |
|---|
| 94 | * possible object is |
|---|
| 95 | * {@link CTCtrlPr } |
|---|
| 96 | * |
|---|
| 97 | */ |
|---|
| 98 | public CTCtrlPr getCtrlPr() { |
|---|
| 99 | return ctrlPr; |
|---|
| 100 | } |
|---|
| 101 | |
|---|
| 102 | /** |
|---|
| 103 | * Sets the value of the ctrlPr property. |
|---|
| 104 | * |
|---|
| 105 | * @param value |
|---|
| 106 | * allowed object is |
|---|
| 107 | * {@link CTCtrlPr } |
|---|
| 108 | * |
|---|
| 109 | */ |
|---|
| 110 | public void setCtrlPr(CTCtrlPr value) { |
|---|
| 111 | this.ctrlPr = value; |
|---|
| 112 | } |
|---|
| 113 | |
|---|
| 114 | /** |
|---|
| 115 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 116 | * |
|---|
| 117 | * @return |
|---|
| 118 | * The parent object. |
|---|
| 119 | */ |
|---|
| 120 | public Object getParent() { |
|---|
| 121 | return this.parent; |
|---|
| 122 | } |
|---|
| 123 | |
|---|
| 124 | public void setParent(Object parent) { |
|---|
| 125 | this.parent = parent; |
|---|
| 126 | } |
|---|
| 127 | |
|---|
| 128 | /** |
|---|
| 129 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 130 | * |
|---|
| 131 | * @param parent |
|---|
| 132 | * The parent object in the object tree. |
|---|
| 133 | * @param unmarshaller |
|---|
| 134 | * The unmarshaller that generated the instance. |
|---|
| 135 | */ |
|---|
| 136 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 137 | setParent(parent); |
|---|
| 138 | } |
|---|
| 139 | |
|---|
| 140 | } |
|---|