source: trunk/docx4j/src/main/java/org/docx4j/wml/CTDataBinding.java @ 1469

Revision 1469, 4.5 KB checked in by jharrop, 13 months ago (diff)

@XmlRootElement?(name = "dataBinding")

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