| 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 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_DivBdr complex type. |
|---|
| 34 | * |
|---|
| 35 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 36 | * |
|---|
| 37 | * <pre> |
|---|
| 38 | * <complexType name="CT_DivBdr"> |
|---|
| 39 | * <complexContent> |
|---|
| 40 | * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> |
|---|
| 41 | * <sequence> |
|---|
| 42 | * <element name="top" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/> |
|---|
| 43 | * <element name="left" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/> |
|---|
| 44 | * <element name="bottom" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/> |
|---|
| 45 | * <element name="right" type="{http://schemas.openxmlformats.org/wordprocessingml/2006/main}CT_Border" minOccurs="0"/> |
|---|
| 46 | * </sequence> |
|---|
| 47 | * </restriction> |
|---|
| 48 | * </complexContent> |
|---|
| 49 | * </complexType> |
|---|
| 50 | * </pre> |
|---|
| 51 | * |
|---|
| 52 | * |
|---|
| 53 | */ |
|---|
| 54 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 55 | @XmlType(name = "CT_DivBdr", propOrder = { |
|---|
| 56 | "top", |
|---|
| 57 | "left", |
|---|
| 58 | "bottom", |
|---|
| 59 | "right" |
|---|
| 60 | }) |
|---|
| 61 | public class CTDivBdr |
|---|
| 62 | implements Child |
|---|
| 63 | { |
|---|
| 64 | |
|---|
| 65 | protected CTBorder top; |
|---|
| 66 | protected CTBorder left; |
|---|
| 67 | protected CTBorder bottom; |
|---|
| 68 | protected CTBorder right; |
|---|
| 69 | @XmlTransient |
|---|
| 70 | private Object parent; |
|---|
| 71 | |
|---|
| 72 | /** |
|---|
| 73 | * Gets the value of the top property. |
|---|
| 74 | * |
|---|
| 75 | * @return |
|---|
| 76 | * possible object is |
|---|
| 77 | * {@link CTBorder } |
|---|
| 78 | * |
|---|
| 79 | */ |
|---|
| 80 | public CTBorder getTop() { |
|---|
| 81 | return top; |
|---|
| 82 | } |
|---|
| 83 | |
|---|
| 84 | /** |
|---|
| 85 | * Sets the value of the top property. |
|---|
| 86 | * |
|---|
| 87 | * @param value |
|---|
| 88 | * allowed object is |
|---|
| 89 | * {@link CTBorder } |
|---|
| 90 | * |
|---|
| 91 | */ |
|---|
| 92 | public void setTop(CTBorder value) { |
|---|
| 93 | this.top = value; |
|---|
| 94 | } |
|---|
| 95 | |
|---|
| 96 | /** |
|---|
| 97 | * Gets the value of the left property. |
|---|
| 98 | * |
|---|
| 99 | * @return |
|---|
| 100 | * possible object is |
|---|
| 101 | * {@link CTBorder } |
|---|
| 102 | * |
|---|
| 103 | */ |
|---|
| 104 | public CTBorder getLeft() { |
|---|
| 105 | return left; |
|---|
| 106 | } |
|---|
| 107 | |
|---|
| 108 | /** |
|---|
| 109 | * Sets the value of the left property. |
|---|
| 110 | * |
|---|
| 111 | * @param value |
|---|
| 112 | * allowed object is |
|---|
| 113 | * {@link CTBorder } |
|---|
| 114 | * |
|---|
| 115 | */ |
|---|
| 116 | public void setLeft(CTBorder value) { |
|---|
| 117 | this.left = value; |
|---|
| 118 | } |
|---|
| 119 | |
|---|
| 120 | /** |
|---|
| 121 | * Gets the value of the bottom property. |
|---|
| 122 | * |
|---|
| 123 | * @return |
|---|
| 124 | * possible object is |
|---|
| 125 | * {@link CTBorder } |
|---|
| 126 | * |
|---|
| 127 | */ |
|---|
| 128 | public CTBorder getBottom() { |
|---|
| 129 | return bottom; |
|---|
| 130 | } |
|---|
| 131 | |
|---|
| 132 | /** |
|---|
| 133 | * Sets the value of the bottom property. |
|---|
| 134 | * |
|---|
| 135 | * @param value |
|---|
| 136 | * allowed object is |
|---|
| 137 | * {@link CTBorder } |
|---|
| 138 | * |
|---|
| 139 | */ |
|---|
| 140 | public void setBottom(CTBorder value) { |
|---|
| 141 | this.bottom = value; |
|---|
| 142 | } |
|---|
| 143 | |
|---|
| 144 | /** |
|---|
| 145 | * Gets the value of the right property. |
|---|
| 146 | * |
|---|
| 147 | * @return |
|---|
| 148 | * possible object is |
|---|
| 149 | * {@link CTBorder } |
|---|
| 150 | * |
|---|
| 151 | */ |
|---|
| 152 | public CTBorder getRight() { |
|---|
| 153 | return right; |
|---|
| 154 | } |
|---|
| 155 | |
|---|
| 156 | /** |
|---|
| 157 | * Sets the value of the right property. |
|---|
| 158 | * |
|---|
| 159 | * @param value |
|---|
| 160 | * allowed object is |
|---|
| 161 | * {@link CTBorder } |
|---|
| 162 | * |
|---|
| 163 | */ |
|---|
| 164 | public void setRight(CTBorder value) { |
|---|
| 165 | this.right = value; |
|---|
| 166 | } |
|---|
| 167 | |
|---|
| 168 | /** |
|---|
| 169 | * Gets the parent object in the object tree representing the unmarshalled xml document. |
|---|
| 170 | * |
|---|
| 171 | * @return |
|---|
| 172 | * The parent object. |
|---|
| 173 | */ |
|---|
| 174 | public Object getParent() { |
|---|
| 175 | return this.parent; |
|---|
| 176 | } |
|---|
| 177 | |
|---|
| 178 | public void setParent(Object parent) { |
|---|
| 179 | this.parent = parent; |
|---|
| 180 | } |
|---|
| 181 | |
|---|
| 182 | /** |
|---|
| 183 | * This method is invoked by the JAXB implementation on each instance when unmarshalling completes. |
|---|
| 184 | * |
|---|
| 185 | * @param parent |
|---|
| 186 | * The parent object in the object tree. |
|---|
| 187 | * @param unmarshaller |
|---|
| 188 | * The unmarshaller that generated the instance. |
|---|
| 189 | */ |
|---|
| 190 | public void afterUnmarshal(Unmarshaller unmarshaller, Object parent) { |
|---|
| 191 | setParent(parent); |
|---|
| 192 | } |
|---|
| 193 | |
|---|
| 194 | } |
|---|