1 /**
2 * JSpiff
3 * -----------------
4 * Copyright (c) 2005-2006 Emil A. Lefkof III
5 *
6 * I always give it my best shot to make a program useful and solid, but
7 * remeber that there is absolutely no warranty for using this program as
8 * stated in the following terms:
9 *
10 * Licensed under the Apache License, Version 2.0 (the "License");
11 * you may not use this file except in compliance with the License.
12 * You may obtain a copy of the License at
13 *
14 * http://www.apache.org/licenses/LICENSE-2.0
15 *
16 * Unless required by applicable law or agreed to in writing, software
17 * distributed under the License is distributed on an "AS IS" BASIS,
18 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 * See the License for the specific language governing permissions and
20 * limitations under the License.
21 */
22
23 package com.melloware.jspiff.jaxb;
24
25 import java.util.ArrayList;
26 import java.util.List;
27 import javax.xml.bind.annotation.XmlAccessType;
28 import javax.xml.bind.annotation.XmlAccessorType;
29 import javax.xml.bind.annotation.XmlAnyElement;
30 import javax.xml.bind.annotation.XmlAttribute;
31 import javax.xml.bind.annotation.XmlMixed;
32 import javax.xml.bind.annotation.XmlType;
33 import org.w3c.dom.Element;
34
35
36 /**
37 * <p>Java class for ExtensionType complex type.
38 *
39 * <p>The following schema fragment specifies the expected content contained within this class.
40 *
41 * <pre>
42 * <complexType name="ExtensionType">
43 * <complexContent>
44 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
45 * <sequence>
46 * <any/>
47 * </sequence>
48 * <attribute name="application" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
49 * </restriction>
50 * </complexContent>
51 * </complexType>
52 * </pre>
53 *
54 *
55 */
56 @XmlAccessorType(XmlAccessType.FIELD)
57 @XmlType(name = "ExtensionType", propOrder = {
58 "content"
59 })
60 public class ExtensionType {
61
62 @XmlMixed
63 @XmlAnyElement
64 protected List<Object> content;
65 @XmlAttribute(required = true)
66 protected String application;
67
68 /**
69 * Gets the value of the content property.
70 *
71 * <p>
72 * This accessor method returns a reference to the live list,
73 * not a snapshot. Therefore any modification you make to the
74 * returned list will be present inside the JAXB object.
75 * This is why there is not a <CODE>set</CODE> method for the content property.
76 *
77 * <p>
78 * For example, to add a new item, do as follows:
79 * <pre>
80 * getContent().add(newItem);
81 * </pre>
82 *
83 *
84 * <p>
85 * Objects of the following type(s) are allowed in the list
86 * {@link Element }
87 * {@link String }
88 *
89 *
90 */
91 public List<Object> getContent() {
92 if (content == null) {
93 content = new ArrayList<Object>();
94 }
95 return this.content;
96 }
97
98 /**
99 * Gets the value of the application property.
100 *
101 * @return
102 * possible object is
103 * {@link String }
104 *
105 */
106 public String getApplication() {
107 return application;
108 }
109
110 /**
111 * Sets the value of the application property.
112 *
113 * @param value
114 * allowed object is
115 * {@link String }
116 *
117 */
118 public void setApplication(String value) {
119 this.application = value;
120 }
121
122 }