| 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 | package org.docx4j.relationships; |
|---|
| 22 | |
|---|
| 23 | import javax.xml.bind.annotation.XmlAccessType; |
|---|
| 24 | import javax.xml.bind.annotation.XmlAccessorType; |
|---|
| 25 | import javax.xml.bind.annotation.XmlAttribute; |
|---|
| 26 | import javax.xml.bind.annotation.XmlID; |
|---|
| 27 | import javax.xml.bind.annotation.XmlRootElement; |
|---|
| 28 | import javax.xml.bind.annotation.XmlSchemaType; |
|---|
| 29 | import javax.xml.bind.annotation.XmlType; |
|---|
| 30 | import javax.xml.bind.annotation.XmlValue; |
|---|
| 31 | import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; |
|---|
| 32 | import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | /** |
|---|
| 36 | * <p>Java class for anonymous complex type. |
|---|
| 37 | * |
|---|
| 38 | * <p>The following schema fragment specifies the expected content contained within this class. |
|---|
| 39 | * |
|---|
| 40 | * <pre> |
|---|
| 41 | * <complexType> |
|---|
| 42 | * <simpleContent> |
|---|
| 43 | * <extension base="<http://www.w3.org/2001/XMLSchema>string"> |
|---|
| 44 | * <attribute name="TargetMode"> |
|---|
| 45 | * <simpleType> |
|---|
| 46 | * <restriction base="{http://www.w3.org/2001/XMLSchema}string"> |
|---|
| 47 | * <enumeration value="External"/> |
|---|
| 48 | * <enumeration value="Internal"/> |
|---|
| 49 | * </restriction> |
|---|
| 50 | * </simpleType> |
|---|
| 51 | * </attribute> |
|---|
| 52 | * <attribute name="Target" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> |
|---|
| 53 | * <attribute name="Type" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> |
|---|
| 54 | * <attribute name="Id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> |
|---|
| 55 | * </extension> |
|---|
| 56 | * </simpleContent> |
|---|
| 57 | * </complexType> |
|---|
| 58 | * </pre> |
|---|
| 59 | * |
|---|
| 60 | * |
|---|
| 61 | */ |
|---|
| 62 | @XmlAccessorType(XmlAccessType.FIELD) |
|---|
| 63 | @XmlType(name = "", propOrder = { |
|---|
| 64 | "value" |
|---|
| 65 | }) |
|---|
| 66 | @XmlRootElement(name = "Relationship") |
|---|
| 67 | public class Relationship { |
|---|
| 68 | |
|---|
| 69 | @XmlValue |
|---|
| 70 | protected String value; |
|---|
| 71 | @XmlAttribute(name = "TargetMode") |
|---|
| 72 | protected String targetMode; |
|---|
| 73 | @XmlAttribute(name = "Target", required = true) |
|---|
| 74 | @XmlSchemaType(name = "anyURI") |
|---|
| 75 | protected String target; |
|---|
| 76 | @XmlAttribute(name = "Type", required = true) |
|---|
| 77 | @XmlSchemaType(name = "anyURI") |
|---|
| 78 | protected String type; |
|---|
| 79 | @XmlAttribute(name = "Id", required = true) |
|---|
| 80 | @XmlJavaTypeAdapter(CollapsedStringAdapter.class) |
|---|
| 81 | @XmlID |
|---|
| 82 | @XmlSchemaType(name = "ID") |
|---|
| 83 | protected String id; |
|---|
| 84 | |
|---|
| 85 | /** |
|---|
| 86 | * Gets the value of the value property. |
|---|
| 87 | * |
|---|
| 88 | * @return |
|---|
| 89 | * possible object is |
|---|
| 90 | * {@link String } |
|---|
| 91 | * |
|---|
| 92 | */ |
|---|
| 93 | public String getValue() { |
|---|
| 94 | return value; |
|---|
| 95 | } |
|---|
| 96 | |
|---|
| 97 | /** |
|---|
| 98 | * Sets the value of the value property. |
|---|
| 99 | * |
|---|
| 100 | * @param value |
|---|
| 101 | * allowed object is |
|---|
| 102 | * {@link String } |
|---|
| 103 | * |
|---|
| 104 | */ |
|---|
| 105 | public void setValue(String value) { |
|---|
| 106 | this.value = value; |
|---|
| 107 | } |
|---|
| 108 | |
|---|
| 109 | /** |
|---|
| 110 | * Gets the value of the targetMode property. |
|---|
| 111 | * |
|---|
| 112 | * @return |
|---|
| 113 | * possible object is |
|---|
| 114 | * {@link String } |
|---|
| 115 | * |
|---|
| 116 | */ |
|---|
| 117 | public String getTargetMode() { |
|---|
| 118 | return targetMode; |
|---|
| 119 | } |
|---|
| 120 | |
|---|
| 121 | /** |
|---|
| 122 | * Sets the value of the targetMode property. |
|---|
| 123 | * |
|---|
| 124 | * @param value |
|---|
| 125 | * allowed object is |
|---|
| 126 | * {@link String } |
|---|
| 127 | * |
|---|
| 128 | */ |
|---|
| 129 | public void setTargetMode(String value) { |
|---|
| 130 | this.targetMode = value; |
|---|
| 131 | } |
|---|
| 132 | |
|---|
| 133 | /** |
|---|
| 134 | * Gets the value of the target property. |
|---|
| 135 | * |
|---|
| 136 | * @return |
|---|
| 137 | * possible object is |
|---|
| 138 | * {@link String } |
|---|
| 139 | * |
|---|
| 140 | */ |
|---|
| 141 | public String getTarget() { |
|---|
| 142 | return target; |
|---|
| 143 | } |
|---|
| 144 | |
|---|
| 145 | /** |
|---|
| 146 | * Sets the value of the target property. |
|---|
| 147 | * |
|---|
| 148 | * @param value |
|---|
| 149 | * allowed object is |
|---|
| 150 | * {@link String } |
|---|
| 151 | * |
|---|
| 152 | */ |
|---|
| 153 | public void setTarget(String value) { |
|---|
| 154 | this.target = value; |
|---|
| 155 | } |
|---|
| 156 | |
|---|
| 157 | /** |
|---|
| 158 | * Gets the value of the type property. |
|---|
| 159 | * |
|---|
| 160 | * @return |
|---|
| 161 | * possible object is |
|---|
| 162 | * {@link String } |
|---|
| 163 | * |
|---|
| 164 | */ |
|---|
| 165 | public String getType() { |
|---|
| 166 | return type; |
|---|
| 167 | } |
|---|
| 168 | |
|---|
| 169 | /** |
|---|
| 170 | * Sets the value of the type property. |
|---|
| 171 | * |
|---|
| 172 | * @param value |
|---|
| 173 | * allowed object is |
|---|
| 174 | * {@link String } |
|---|
| 175 | * |
|---|
| 176 | */ |
|---|
| 177 | public void setType(String value) { |
|---|
| 178 | this.type = value; |
|---|
| 179 | } |
|---|
| 180 | |
|---|
| 181 | /** |
|---|
| 182 | * Gets the value of the id property. |
|---|
| 183 | * |
|---|
| 184 | * @return |
|---|
| 185 | * possible object is |
|---|
| 186 | * {@link String } |
|---|
| 187 | * |
|---|
| 188 | */ |
|---|
| 189 | public String getId() { |
|---|
| 190 | return id; |
|---|
| 191 | } |
|---|
| 192 | |
|---|
| 193 | /** |
|---|
| 194 | * Sets the value of the id property. |
|---|
| 195 | * |
|---|
| 196 | * @param value |
|---|
| 197 | * allowed object is |
|---|
| 198 | * {@link String } |
|---|
| 199 | * |
|---|
| 200 | */ |
|---|
| 201 | public void setId(String value) { |
|---|
| 202 | this.id = value; |
|---|
| 203 | } |
|---|
| 204 | |
|---|
| 205 | } |
|---|