source: trunk/docx4j/src/main/java/org/docx4j/dml/CTAudioCDTime.java @ 1041

Revision 1041, 2.6 KB checked in by jharrop, 2 years ago (diff)

More complete DML, generated from TC45 1.0 final, using dmlROOT.xsd

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.dml;
23
24import javax.xml.bind.annotation.XmlAccessType;
25import javax.xml.bind.annotation.XmlAccessorType;
26import javax.xml.bind.annotation.XmlAttribute;
27import javax.xml.bind.annotation.XmlSchemaType;
28import javax.xml.bind.annotation.XmlType;
29
30
31/**
32 * <p>Java class for CT_AudioCDTime complex type.
33 *
34 * <p>The following schema fragment specifies the expected content contained within this class.
35 *
36 * <pre>
37 * &lt;complexType name="CT_AudioCDTime">
38 *   &lt;complexContent>
39 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40 *       &lt;attribute name="track" use="required" type="{http://www.w3.org/2001/XMLSchema}unsignedByte" />
41 *       &lt;attribute name="time" type="{http://www.w3.org/2001/XMLSchema}unsignedInt" default="0" />
42 *     &lt;/restriction>
43 *   &lt;/complexContent>
44 * &lt;/complexType>
45 * </pre>
46 *
47 *
48 */
49@XmlAccessorType(XmlAccessType.FIELD)
50@XmlType(name = "CT_AudioCDTime")
51public class CTAudioCDTime {
52
53    @XmlAttribute(required = true)
54    @XmlSchemaType(name = "unsignedByte")
55    protected short track;
56    @XmlAttribute
57    @XmlSchemaType(name = "unsignedInt")
58    protected Long time;
59
60    /**
61     * Gets the value of the track property.
62     *
63     */
64    public short getTrack() {
65        return track;
66    }
67
68    /**
69     * Sets the value of the track property.
70     *
71     */
72    public void setTrack(short value) {
73        this.track = value;
74    }
75
76    /**
77     * Gets the value of the time property.
78     *
79     * @return
80     *     possible object is
81     *     {@link Long }
82     *     
83     */
84    public long getTime() {
85        if (time == null) {
86            return  0L;
87        } else {
88            return time;
89        }
90    }
91
92    /**
93     * Sets the value of the time property.
94     *
95     * @param value
96     *     allowed object is
97     *     {@link Long }
98     *     
99     */
100    public void setTime(Long value) {
101        this.time = value;
102    }
103
104}
Note: See TracBrowser for help on using the repository browser.