Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/test/javax/xml/bind/marshal/8036981/Main.java
38861 views
/*1* Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*/2223package testjaxbcontext;2425import javax.xml.bind.annotation.*;2627/**28* <p>29* Java class for main complex type.30*31* <p>32* The following schema fragment specifies the expected content contained within33* this class.34*35* <pre>36* <complexType name="main">37* <complexContent>38* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">39* <sequence>40* <element name="Root" type="{}Root"/>41* <element name="Good" type="{}Good"/>42* </sequence>43* </restriction>44* </complexContent>45* </complexType>46* </pre>47*48*49*/50@XmlAccessorType(XmlAccessType.FIELD)51@XmlType(name = "main", propOrder = {52"root",53"good"54})55@XmlRootElement56public class Main {5758@XmlElement(name = "Root", required = true)59protected Root root;60@XmlElement(name = "Good", required = true)61protected Good good;6263/**64* Gets the value of the root property.65*66* @return possible object is {@link Root }67*68*/69public Root getRoot() {70return root;71}7273/**74* Sets the value of the root property.75*76* @param value allowed object is {@link Root }77*78*/79public void setRoot(Root value) {80this.root = value;81}8283/**84* Gets the value of the good property.85*86* @return possible object is {@link Good }87*88*/89public Good getGood() {90return good;91}9293/**94* Sets the value of the good property.95*96* @param value allowed object is {@link Good }97*98*/99public void setGood(Good value) {100this.good = value;101}102103}104105106