2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010-2010 - DIGITEO - Clement DAVID <clement.david@scilab.org>
4 * Copyright (C) 2011-2013 - Scilab Enterprises - Clement DAVID
6 * This file must be used under the terms of the CeCILL.
7 * This source file is licensed as described in the file COPYING, which
8 * you should have received as part of this distribution. The terms
9 * are also available at
10 * http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.txt
14 package org.scilab.modules.xcos.modelica.model;
16 import java.util.ArrayList;
17 import java.util.List;
18 import javax.xml.bind.annotation.XmlAccessType;
19 import javax.xml.bind.annotation.XmlAccessorType;
20 import javax.xml.bind.annotation.XmlElement;
21 import javax.xml.bind.annotation.XmlElements;
22 import javax.xml.bind.annotation.XmlType;
25 * Partial tree of a structured content. Each node of a this type must not be a
29 * Java class for Struct complex type.
32 * The following schema fragment specifies the expected content contained within
36 * <complexType name="Struct">
38 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
40 * <element name="name" type="{http://www.w3.org/2001/XMLSchema}string"/>
41 * <element name="subnodes">
44 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
46 * <choice maxOccurs="unbounded" minOccurs="0">
47 * <element name="struct" type="{}Struct"/>
48 * <element name="terminal" type="{}Terminal"/>
52 * </complexContent>
57 * </complexContent>
63 @XmlAccessorType(XmlAccessType.FIELD)
64 @XmlType(name = "Struct", propOrder = { "name", "subnodes" })
67 @XmlElement(required = true)
68 protected String name;
69 @XmlElement(required = true)
70 protected Struct.Subnodes subnodes;
73 * Gets the value of the name property.
75 * @return possible object is {@link String }
78 public String getName() {
83 * Sets the value of the name property.
86 * allowed object is {@link String }
89 public void setName(String value) {
94 * Gets the value of the subnodes property.
96 * @return possible object is {@link Struct.Subnodes }
99 public Struct.Subnodes getSubnodes() {
104 * Sets the value of the subnodes property.
107 * allowed object is {@link Struct.Subnodes }
110 public void setSubnodes(Struct.Subnodes value) {
111 this.subnodes = value;
116 * Java class for anonymous complex type.
119 * The following schema fragment specifies the expected content contained
124 * <complexContent>
125 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
127 * <choice maxOccurs="unbounded" minOccurs="0">
128 * <element name="struct" type="{}Struct"/>
129 * <element name="terminal" type="{}Terminal"/>
133 * </complexContent>
139 @XmlAccessorType(XmlAccessType.FIELD)
140 @XmlType(name = "", propOrder = { "structOrTerminal" })
141 public static class Subnodes {
143 @XmlElements({ @XmlElement(name = "terminal", type = Terminal.class), @XmlElement(name = "struct", type = Struct.class) })
144 protected List<Object> structOrTerminal;
147 * Gets the value of the structOrTerminal property.
150 * This accessor method returns a reference to the live list, not a
151 * snapshot. Therefore any modification you make to the returned list
152 * will be present inside the JAXB object. This is why there is not a
153 * <CODE>set</CODE> method for the structOrTerminal property.
156 * For example, to add a new item, do as follows:
159 * getStructOrTerminal().add(newItem);
164 * Objects of the following type(s) are allowed in the list
165 * {@link Terminal } {@link Struct }
169 public List<Object> getStructOrTerminal() {
170 if (structOrTerminal == null) {
171 structOrTerminal = new ArrayList<Object>();
173 return this.structOrTerminal;