Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openjdk-multiarch-jdk8u
Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/javax/xml/bind/marshal/8036981/Good.java
38862 views
1
/*
2
* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4
*
5
* This code is free software; you can redistribute it and/or modify it
6
* under the terms of the GNU General Public License version 2 only, as
7
* published by the Free Software Foundation.
8
*
9
* This code is distributed in the hope that it will be useful, but WITHOUT
10
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12
* version 2 for more details (a copy is included in the LICENSE file that
13
* accompanied this code).
14
*
15
* You should have received a copy of the GNU General Public License version
16
* 2 along with this work; if not, write to the Free Software Foundation,
17
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18
*
19
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20
* or visit www.oracle.com if you need additional information or have any
21
* questions.
22
*/
23
24
package testjaxbcontext;
25
26
import org.w3c.dom.Element;
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.XmlType;
31
import java.util.ArrayList;
32
import java.util.List;
33
34
/**
35
* <p>
36
* Java class for Good complex type.
37
*
38
* <p>
39
* The following schema fragment specifies the expected content contained within
40
* this class.
41
*
42
* <pre>
43
* &lt;complexType name="Good">
44
* &lt;complexContent>
45
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
46
* &lt;sequence>
47
* &lt;any processContents='skip' maxOccurs="70"/>
48
* &lt;/sequence>
49
* &lt;/restriction>
50
* &lt;/complexContent>
51
* &lt;/complexType>
52
* </pre>
53
*
54
*
55
*/
56
@XmlAccessorType(XmlAccessType.FIELD)
57
@XmlType(name = "Good", propOrder = {
58
"any"
59
})
60
public class Good {
61
62
@XmlAnyElement
63
protected List<Element> any;
64
65
/**
66
* Gets the value of the any property.
67
*
68
* <p>
69
* This accessor method returns a reference to the live list, not a
70
* snapshot. Therefore any modification you make to the returned list will
71
* be present inside the JAXB object. This is why there is not a
72
* <CODE>set</CODE> method for the any property.
73
*
74
* <p>
75
* For example, to add a new item, do as follows:
76
* <pre>
77
* getAny().add(newItem);
78
* </pre>
79
*
80
*
81
* <p>
82
* Objects of the following type(s) are allowed in the list
83
* {@link org.w3c.dom.Element }
84
*
85
*
86
*/
87
public List<Element> getAny() {
88
if (any == null) {
89
any = new ArrayList<Element>();
90
}
91
return this.any;
92
}
93
94
}
95
96