summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/PatternElement.java76
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/Block.java220
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/BlockPalette.java74
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerParameters.java158
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerValueMap.java93
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/ObjectFactory.java116
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/SimpleParameter.java119
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringParameters.java158
-rw-r--r--scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringValueMap.java92
9 files changed, 1106 insertions, 0 deletions
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/PatternElement.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/PatternElement.java
new file mode 100644
index 0000000..82b0352
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/PatternElement.java
@@ -0,0 +1,76 @@
1/*
2 * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
3 * Copyright (C) 2010 - Jerzy Zagorski
4 *
5 * This file must be used under the terms of the CeCILL.
6 * This source file is licensed as described in the file COPYING, which
7 * you should have received as part of this distribution. The terms
8 * are also available at
9 * http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
10 *
11 */
12
13package org.scilab.modules.xcos.simulink;
14import java.io.FileInputStream;
15import java.io.IOException;
16import java.util.Iterator;
17
18import javax.xml.bind.JAXBContext;
19import javax.xml.bind.JAXBElement;
20import javax.xml.bind.JAXBException;
21import javax.xml.bind.UnmarshalException;
22import javax.xml.bind.Unmarshaller;
23import javax.xml.transform.stream.StreamSource;
24
25import org.apache.commons.logging.Log;
26import org.apache.commons.logging.LogFactory;
27import org.scilab.modules.jvm.utils.ScilabConstants;
28import org.scilab.modules.xcos.simulink.patterns.*;
29import org.scilab.modules.xcos.utils.XcosConstants;
30
31public class PatternElement {
32 private static final Log LOG = LogFactory.getLog(PatternElement.class);
33 private JAXBContext jc;
34 private Unmarshaller u;
35 private BlockPalette blocks;
36
37 /**
38 * Function reading compatibility patterns to BlockPalette object
39 */
40 public PatternElement(){
41 try{
42 /*
43 * Creating Java JAXBContext from compiled xsd schema of compatibility patterns
44 */
45 JAXBContext jc = JAXBContext.newInstance( "org.scilab.modules.xcos.simulink.patterns" );
46 Unmarshaller u = jc.createUnmarshaller();
47 //FIXME: now you have to manually copy compatibility pattern to SCIHOME
48 JAXBElement<BlockPalette> element = u.unmarshal(
49 new StreamSource(ScilabConstants.SCIHOME + "/simulinkImportBlocks.xml"),
50 BlockPalette.class );
51 blocks = element.getValue();
52 } catch( UnmarshalException ue ) {
53 LogFactory.getLog(PatternElement.class).error(ue);
54 } catch( JAXBException je ) {
55 LogFactory.getLog(PatternElement.class).error(je);
56 }
57 }
58 /**
59 * Functions printPattern is created for debugging compatibility patterns
60 */
61 public void printPattern() {
62 if (LOG.isTraceEnabled()) {
63 try{
64 Iterator<Block> blockIter = blocks.getBlock().iterator();
65 while (blockIter.hasNext()){
66 Block block = blockIter.next();
67 if(LOG.isTraceEnabled()){
68 LOG.trace("From: " + block.getSim() + " to: " + block.getXcos());
69 }
70 }
71 } catch(Exception e1) {
72 LogFactory.getLog(PatternElement.class).error(e1);
73 }
74 }
75 }
76}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/Block.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/Block.java
new file mode 100644
index 0000000..0dedcb9
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/Block.java
@@ -0,0 +1,220 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlAttribute;
16import javax.xml.bind.annotation.XmlType;
17
18
19/**
20 * <p>Java class for Block complex type.
21 *
22 * <p>The following schema fragment specifies the expected content contained within this class.
23 *
24 * <pre>
25 * &lt;complexType name="Block">
26 * &lt;complexContent>
27 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
28 * &lt;sequence>
29 * &lt;element name="string" type="{}StringParameters" maxOccurs="unbounded" minOccurs="0"/>
30 * &lt;element name="integer" type="{}IntegerParameters" maxOccurs="unbounded" minOccurs="0"/>
31 * &lt;element name="simple" type="{}SimpleParameter" maxOccurs="unbounded" minOccurs="0"/>
32 * &lt;/sequence>
33 * &lt;attribute name="sim" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * &lt;attribute name="xcos" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
35 * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
36 * &lt;/restriction>
37 * &lt;/complexContent>
38 * &lt;/complexType>
39 * </pre>
40 *
41 *
42 */
43@XmlAccessorType(XmlAccessType.FIELD)
44@XmlType(name = "Block", propOrder = {
45 "string",
46 "integer",
47 "simple"
48})
49public class Block {
50
51 protected List<StringParameters> string;
52 protected List<IntegerParameters> integer;
53 protected List<SimpleParameter> simple;
54 @XmlAttribute(required = true)
55 protected String sim;
56 @XmlAttribute(required = true)
57 protected String xcos;
58 @XmlAttribute
59 protected String description;
60
61 /**
62 * Gets the value of the string property.
63 *
64 * <p>
65 * This accessor method returns a reference to the live list,
66 * not a snapshot. Therefore any modification you make to the
67 * returned list will be present inside the JAXB object.
68 * This is why there is not a <CODE>set</CODE> method for the string property.
69 *
70 * <p>
71 * For example, to add a new item, do as follows:
72 * <pre>
73 * getString().add(newItem);
74 * </pre>
75 *
76 *
77 * <p>
78 * Objects of the following type(s) are allowed in the list
79 * {@link StringParameters }
80 *
81 *
82 */
83 public List<StringParameters> getString() {
84 if (string == null) {
85 string = new ArrayList<StringParameters>();
86 }
87 return this.string;
88 }
89
90 /**
91 * Gets the value of the integer property.
92 *
93 * <p>
94 * This accessor method returns a reference to the live list,
95 * not a snapshot. Therefore any modification you make to the
96 * returned list will be present inside the JAXB object.
97 * This is why there is not a <CODE>set</CODE> method for the integer property.
98 *
99 * <p>
100 * For example, to add a new item, do as follows:
101 * <pre>
102 * getInteger().add(newItem);
103 * </pre>
104 *
105 *
106 * <p>
107 * Objects of the following type(s) are allowed in the list
108 * {@link IntegerParameters }
109 *
110 *
111 */
112 public List<IntegerParameters> getInteger() {
113 if (integer == null) {
114 integer = new ArrayList<IntegerParameters>();
115 }
116 return this.integer;
117 }
118
119 /**
120 * Gets the value of the simple property.
121 *
122 * <p>
123 * This accessor method returns a reference to the live list,
124 * not a snapshot. Therefore any modification you make to the
125 * returned list will be present inside the JAXB object.
126 * This is why there is not a <CODE>set</CODE> method for the simple property.
127 *
128 * <p>
129 * For example, to add a new item, do as follows:
130 * <pre>
131 * getSimple().add(newItem);
132 * </pre>
133 *
134 *
135 * <p>
136 * Objects of the following type(s) are allowed in the list
137 * {@link SimpleParameter }
138 *
139 *
140 */
141 public List<SimpleParameter> getSimple() {
142 if (simple == null) {
143 simple = new ArrayList<SimpleParameter>();
144 }
145 return this.simple;
146 }
147
148 /**
149 * Gets the value of the sim property.
150 *
151 * @return
152 * possible object is
153 * {@link String }
154 *
155 */
156 public String getSim() {
157 return sim;
158 }
159
160 /**
161 * Sets the value of the sim property.
162 *
163 * @param value
164 * allowed object is
165 * {@link String }
166 *
167 */
168 public void setSim(String value) {
169 this.sim = value;
170 }
171
172 /**
173 * Gets the value of the xcos property.
174 *
175 * @return
176 * possible object is
177 * {@link String }
178 *
179 */
180 public String getXcos() {
181 return xcos;
182 }
183
184 /**
185 * Sets the value of the xcos property.
186 *
187 * @param value
188 * allowed object is
189 * {@link String }
190 *
191 */
192 public void setXcos(String value) {
193 this.xcos = value;
194 }
195
196 /**
197 * Gets the value of the description property.
198 *
199 * @return
200 * possible object is
201 * {@link String }
202 *
203 */
204 public String getDescription() {
205 return description;
206 }
207
208 /**
209 * Sets the value of the description property.
210 *
211 * @param value
212 * allowed object is
213 * {@link String }
214 *
215 */
216 public void setDescription(String value) {
217 this.description = value;
218 }
219
220}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/BlockPalette.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/BlockPalette.java
new file mode 100644
index 0000000..bc168b9
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/BlockPalette.java
@@ -0,0 +1,74 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlType;
16
17
18/**
19 * <p>Java class for BlockPalette complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * &lt;complexType name="BlockPalette">
25 * &lt;complexContent>
26 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * &lt;sequence>
28 * &lt;element name="block" type="{}Block" maxOccurs="unbounded" minOccurs="0"/>
29 * &lt;/sequence>
30 * &lt;/restriction>
31 * &lt;/complexContent>
32 * &lt;/complexType>
33 * </pre>
34 *
35 *
36 */
37@XmlAccessorType(XmlAccessType.FIELD)
38@XmlType(name = "BlockPalette", propOrder = {
39 "block"
40})
41public class BlockPalette {
42
43 protected List<Block> block;
44
45 /**
46 * Gets the value of the block property.
47 *
48 * <p>
49 * This accessor method returns a reference to the live list,
50 * not a snapshot. Therefore any modification you make to the
51 * returned list will be present inside the JAXB object.
52 * This is why there is not a <CODE>set</CODE> method for the block property.
53 *
54 * <p>
55 * For example, to add a new item, do as follows:
56 * <pre>
57 * getBlock().add(newItem);
58 * </pre>
59 *
60 *
61 * <p>
62 * Objects of the following type(s) are allowed in the list
63 * {@link Block }
64 *
65 *
66 */
67 public List<Block> getBlock() {
68 if (block == null) {
69 block = new ArrayList<Block>();
70 }
71 return this.block;
72 }
73
74}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerParameters.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerParameters.java
new file mode 100644
index 0000000..ab48c3d
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerParameters.java
@@ -0,0 +1,158 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlAttribute;
16import javax.xml.bind.annotation.XmlElement;
17import javax.xml.bind.annotation.XmlType;
18
19
20/**
21 * <p>Java class for IntegerParameters complex type.
22 *
23 * <p>The following schema fragment specifies the expected content contained within this class.
24 *
25 * <pre>
26 * &lt;complexType name="IntegerParameters">
27 * &lt;complexContent>
28 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 * &lt;sequence>
30 * &lt;element name="parMap" type="{}IntegerValueMap" maxOccurs="unbounded"/>
31 * &lt;/sequence>
32 * &lt;attribute name="sim" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
33 * &lt;attribute name="xcos" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
35 * &lt;/restriction>
36 * &lt;/complexContent>
37 * &lt;/complexType>
38 * </pre>
39 *
40 *
41 */
42@XmlAccessorType(XmlAccessType.FIELD)
43@XmlType(name = "IntegerParameters", propOrder = {
44 "parMap"
45})
46public class IntegerParameters {
47
48 @XmlElement(required = true)
49 protected List<IntegerValueMap> parMap;
50 @XmlAttribute(required = true)
51 protected String sim;
52 @XmlAttribute(required = true)
53 protected String xcos;
54 @XmlAttribute
55 protected String description;
56
57 /**
58 * Gets the value of the parMap property.
59 *
60 * <p>
61 * This accessor method returns a reference to the live list,
62 * not a snapshot. Therefore any modification you make to the
63 * returned list will be present inside the JAXB object.
64 * This is why there is not a <CODE>set</CODE> method for the parMap property.
65 *
66 * <p>
67 * For example, to add a new item, do as follows:
68 * <pre>
69 * getParMap().add(newItem);
70 * </pre>
71 *
72 *
73 * <p>
74 * Objects of the following type(s) are allowed in the list
75 * {@link IntegerValueMap }
76 *
77 *
78 */
79 public List<IntegerValueMap> getParMap() {
80 if (parMap == null) {
81 parMap = new ArrayList<IntegerValueMap>();
82 }
83 return this.parMap;
84 }
85
86 /**
87 * Gets the value of the sim property.
88 *
89 * @return
90 * possible object is
91 * {@link String }
92 *
93 */
94 public String getSim() {
95 return sim;
96 }
97
98 /**
99 * Sets the value of the sim property.
100 *
101 * @param value
102 * allowed object is
103 * {@link String }
104 *
105 */
106 public void setSim(String value) {
107 this.sim = value;
108 }
109
110 /**
111 * Gets the value of the xcos property.
112 *
113 * @return
114 * possible object is
115 * {@link String }
116 *
117 */
118 public String getXcos() {
119 return xcos;
120 }
121
122 /**
123 * Sets the value of the xcos property.
124 *
125 * @param value
126 * allowed object is
127 * {@link String }
128 *
129 */
130 public void setXcos(String value) {
131 this.xcos = value;
132 }
133
134 /**
135 * Gets the value of the description property.
136 *
137 * @return
138 * possible object is
139 * {@link String }
140 *
141 */
142 public String getDescription() {
143 return description;
144 }
145
146 /**
147 * Sets the value of the description property.
148 *
149 * @param value
150 * allowed object is
151 * {@link String }
152 *
153 */
154 public void setDescription(String value) {
155 this.description = value;
156 }
157
158}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerValueMap.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerValueMap.java
new file mode 100644
index 0000000..9c0784b
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/IntegerValueMap.java
@@ -0,0 +1,93 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import java.math.BigInteger;
12import javax.xml.bind.annotation.XmlAccessType;
13import javax.xml.bind.annotation.XmlAccessorType;
14import javax.xml.bind.annotation.XmlAttribute;
15import javax.xml.bind.annotation.XmlType;
16
17
18/**
19 * <p>Java class for IntegerValueMap complex type.
20 *
21 * <p>The following schema fragment specifies the expected content contained within this class.
22 *
23 * <pre>
24 * &lt;complexType name="IntegerValueMap">
25 * &lt;complexContent>
26 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
27 * &lt;attribute name="simVal" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
28 * &lt;attribute name="xcosVal" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
29 * &lt;/restriction>
30 * &lt;/complexContent>
31 * &lt;/complexType>
32 * </pre>
33 *
34 *
35 */
36@XmlAccessorType(XmlAccessType.FIELD)
37@XmlType(name = "IntegerValueMap")
38public class IntegerValueMap {
39
40 @XmlAttribute(required = true)
41 protected BigInteger simVal;
42 @XmlAttribute(required = true)
43 protected BigInteger xcosVal;
44
45 /**
46 * Gets the value of the simVal property.
47 *
48 * @return
49 * possible object is
50 * {@link BigInteger }
51 *
52 */
53 public BigInteger getSimVal() {
54 return simVal;
55 }
56
57 /**
58 * Sets the value of the simVal property.
59 *
60 * @param value
61 * allowed object is
62 * {@link BigInteger }
63 *
64 */
65 public void setSimVal(BigInteger value) {
66 this.simVal = value;
67 }
68
69 /**
70 * Gets the value of the xcosVal property.
71 *
72 * @return
73 * possible object is
74 * {@link BigInteger }
75 *
76 */
77 public BigInteger getXcosVal() {
78 return xcosVal;
79 }
80
81 /**
82 * Sets the value of the xcosVal property.
83 *
84 * @param value
85 * allowed object is
86 * {@link BigInteger }
87 *
88 */
89 public void setXcosVal(BigInteger value) {
90 this.xcosVal = value;
91 }
92
93}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/ObjectFactory.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/ObjectFactory.java
new file mode 100644
index 0000000..d51772b
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/ObjectFactory.java
@@ -0,0 +1,116 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import javax.xml.bind.JAXBElement;
12import javax.xml.bind.annotation.XmlElementDecl;
13import javax.xml.bind.annotation.XmlRegistry;
14import javax.xml.namespace.QName;
15
16
17/**
18 * This object contains factory methods for each
19 * Java content interface and Java element interface
20 * generated in the org.scilab.modules.xcos.simulink.patterns package.
21 * <p>An ObjectFactory allows you to programatically
22 * construct new instances of the Java representation
23 * for XML content. The Java representation of XML
24 * content can consist of schema derived interfaces
25 * and classes representing the binding of schema
26 * type definitions, element declarations and model
27 * groups. Factory methods for each of these are
28 * provided in this class.
29 *
30 */
31@XmlRegistry
32public class ObjectFactory {
33
34 private final static QName _Blocks_QNAME = new QName("", "blocks");
35
36 /**
37 * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.scilab.modules.xcos.simulink.patterns
38 *
39 */
40 public ObjectFactory() {
41 }
42
43 /**
44 * Create an instance of {@link Block }
45 *
46 */
47 public Block createBlock() {
48 return new Block();
49 }
50
51 /**
52 * Create an instance of {@link BlockPalette }
53 *
54 */
55 public BlockPalette createBlockPalette() {
56 return new BlockPalette();
57 }
58
59 /**
60 * Create an instance of {@link GeneralParameters }
61 *
62 */
63 public GeneralParameters createGeneralParameters() {
64 return new GeneralParameters();
65 }
66
67 /**
68 * Create an instance of {@link SimpleParameter }
69 *
70 */
71 public SimpleParameter createSimpleParameter() {
72 return new SimpleParameter();
73 }
74
75 /**
76 * Create an instance of {@link StringValueMap }
77 *
78 */
79 public StringValueMap createStringValueMap() {
80 return new StringValueMap();
81 }
82
83 /**
84 * Create an instance of {@link IntegerParameters }
85 *
86 */
87 public IntegerParameters createIntegerParameters() {
88 return new IntegerParameters();
89 }
90
91 /**
92 * Create an instance of {@link StringParameters }
93 *
94 */
95 public StringParameters createStringParameters() {
96 return new StringParameters();
97 }
98
99 /**
100 * Create an instance of {@link IntegerValueMap }
101 *
102 */
103 public IntegerValueMap createIntegerValueMap() {
104 return new IntegerValueMap();
105 }
106
107 /**
108 * Create an instance of {@link JAXBElement }{@code <}{@link BlockPalette }{@code >}}
109 *
110 */
111 @XmlElementDecl(namespace = "", name = "blocks")
112 public JAXBElement<BlockPalette> createBlocks(BlockPalette value) {
113 return new JAXBElement<BlockPalette>(_Blocks_QNAME, BlockPalette.class, null, value);
114 }
115
116}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/SimpleParameter.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/SimpleParameter.java
new file mode 100644
index 0000000..7abf0f9
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/SimpleParameter.java
@@ -0,0 +1,119 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import javax.xml.bind.annotation.XmlAccessType;
12import javax.xml.bind.annotation.XmlAccessorType;
13import javax.xml.bind.annotation.XmlAttribute;
14import javax.xml.bind.annotation.XmlType;
15
16
17/**
18 * <p>Java class for SimpleParameter complex type.
19 *
20 * <p>The following schema fragment specifies the expected content contained within this class.
21 *
22 * <pre>
23 * &lt;complexType name="SimpleParameter">
24 * &lt;complexContent>
25 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26 * &lt;attribute name="sim" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
27 * &lt;attribute name="xcos" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
28 * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
29 * &lt;/restriction>
30 * &lt;/complexContent>
31 * &lt;/complexType>
32 * </pre>
33 *
34 *
35 */
36@XmlAccessorType(XmlAccessType.FIELD)
37@XmlType(name = "SimpleParameter")
38public class SimpleParameter {
39
40 @XmlAttribute(required = true)
41 protected String sim;
42 @XmlAttribute(required = true)
43 protected String xcos;
44 @XmlAttribute
45 protected String description;
46
47 /**
48 * Gets the value of the sim property.
49 *
50 * @return
51 * possible object is
52 * {@link String }
53 *
54 */
55 public String getSim() {
56 return sim;
57 }
58
59 /**
60 * Sets the value of the sim property.
61 *
62 * @param value
63 * allowed object is
64 * {@link String }
65 *
66 */
67 public void setSim(String value) {
68 this.sim = value;
69 }
70
71 /**
72 * Gets the value of the xcos property.
73 *
74 * @return
75 * possible object is
76 * {@link String }
77 *
78 */
79 public String getXcos() {
80 return xcos;
81 }
82
83 /**
84 * Sets the value of the xcos property.
85 *
86 * @param value
87 * allowed object is
88 * {@link String }
89 *
90 */
91 public void setXcos(String value) {
92 this.xcos = value;
93 }
94
95 /**
96 * Gets the value of the description property.
97 *
98 * @return
99 * possible object is
100 * {@link String }
101 *
102 */
103 public String getDescription() {
104 return description;
105 }
106
107 /**
108 * Sets the value of the description property.
109 *
110 * @param value
111 * allowed object is
112 * {@link String }
113 *
114 */
115 public void setDescription(String value) {
116 this.description = value;
117 }
118
119}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringParameters.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringParameters.java
new file mode 100644
index 0000000..363dfb1
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringParameters.java
@@ -0,0 +1,158 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import java.util.ArrayList;
12import java.util.List;
13import javax.xml.bind.annotation.XmlAccessType;
14import javax.xml.bind.annotation.XmlAccessorType;
15import javax.xml.bind.annotation.XmlAttribute;
16import javax.xml.bind.annotation.XmlElement;
17import javax.xml.bind.annotation.XmlType;
18
19
20/**
21 * <p>Java class for StringParameters complex type.
22 *
23 * <p>The following schema fragment specifies the expected content contained within this class.
24 *
25 * <pre>
26 * &lt;complexType name="StringParameters">
27 * &lt;complexContent>
28 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
29 * &lt;sequence>
30 * &lt;element name="parMap" type="{}StringValueMap" maxOccurs="unbounded"/>
31 * &lt;/sequence>
32 * &lt;attribute name="sim" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
33 * &lt;attribute name="xcos" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
34 * &lt;attribute name="description" type="{http://www.w3.org/2001/XMLSchema}string" />
35 * &lt;/restriction>
36 * &lt;/complexContent>
37 * &lt;/complexType>
38 * </pre>
39 *
40 *
41 */
42@XmlAccessorType(XmlAccessType.FIELD)
43@XmlType(name = "StringParameters", propOrder = {
44 "parMap"
45})
46public class StringParameters {
47
48 @XmlElement(required = true)
49 protected List<StringValueMap> parMap;
50 @XmlAttribute(required = true)
51 protected String sim;
52 @XmlAttribute(required = true)
53 protected String xcos;
54 @XmlAttribute
55 protected String description;
56
57 /**
58 * Gets the value of the parMap property.
59 *
60 * <p>
61 * This accessor method returns a reference to the live list,
62 * not a snapshot. Therefore any modification you make to the
63 * returned list will be present inside the JAXB object.
64 * This is why there is not a <CODE>set</CODE> method for the parMap property.
65 *
66 * <p>
67 * For example, to add a new item, do as follows:
68 * <pre>
69 * getParMap().add(newItem);
70 * </pre>
71 *
72 *
73 * <p>
74 * Objects of the following type(s) are allowed in the list
75 * {@link StringValueMap }
76 *
77 *
78 */
79 public List<StringValueMap> getParMap() {
80 if (parMap == null) {
81 parMap = new ArrayList<StringValueMap>();
82 }
83 return this.parMap;
84 }
85
86 /**
87 * Gets the value of the sim property.
88 *
89 * @return
90 * possible object is
91 * {@link String }
92 *
93 */
94 public String getSim() {
95 return sim;
96 }
97
98 /**
99 * Sets the value of the sim property.
100 *
101 * @param value
102 * allowed object is
103 * {@link String }
104 *
105 */
106 public void setSim(String value) {
107 this.sim = value;
108 }
109
110 /**
111 * Gets the value of the xcos property.
112 *
113 * @return
114 * possible object is
115 * {@link String }
116 *
117 */
118 public String getXcos() {
119 return xcos;
120 }
121
122 /**
123 * Sets the value of the xcos property.
124 *
125 * @param value
126 * allowed object is
127 * {@link String }
128 *
129 */
130 public void setXcos(String value) {
131 this.xcos = value;
132 }
133
134 /**
135 * Gets the value of the description property.
136 *
137 * @return
138 * possible object is
139 * {@link String }
140 *
141 */
142 public String getDescription() {
143 return description;
144 }
145
146 /**
147 * Sets the value of the description property.
148 *
149 * @param value
150 * allowed object is
151 * {@link String }
152 *
153 */
154 public void setDescription(String value) {
155 this.description = value;
156 }
157
158}
diff --git a/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringValueMap.java b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringValueMap.java
new file mode 100644
index 0000000..7e50798
--- /dev/null
+++ b/scilab/modules/xcos/src/java/org/scilab/modules/xcos/simulink/patterns/StringValueMap.java
@@ -0,0 +1,92 @@
1//
2// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.1.10
3// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
4// Any modifications to this file will be lost upon recompilation of the source schema.
5// Generated on: 2010.06.17 at 04:34:40 PM CEST
6//
7
8
9package org.scilab.modules.xcos.simulink.patterns;
10
11import javax.xml.bind.annotation.XmlAccessType;
12import javax.xml.bind.annotation.XmlAccessorType;
13import javax.xml.bind.annotation.XmlAttribute;
14import javax.xml.bind.annotation.XmlType;
15
16
17/**
18 * <p>Java class for StringValueMap complex type.
19 *
20 * <p>The following schema fragment specifies the expected content contained within this class.
21 *
22 * <pre>
23 * &lt;complexType name="StringValueMap">
24 * &lt;complexContent>
25 * &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26 * &lt;attribute name="simVal" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
27 * &lt;attribute name="xcosVal" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
28 * &lt;/restriction>
29 * &lt;/complexContent>
30 * &lt;/complexType>
31 * </pre>
32 *
33 *
34 */
35@XmlAccessorType(XmlAccessType.FIELD)
36@XmlType(name = "StringValueMap")
37public class StringValueMap {
38
39 @XmlAttribute(required = true)
40 protected String simVal;
41 @XmlAttribute(required = true)
42 protected String xcosVal;
43
44 /**
45 * Gets the value of the simVal property.
46 *
47 * @return
48 * possible object is
49 * {@link String }
50 *
51 */
52 public String getSimVal() {
53 return simVal;
54 }
55
56 /**
57 * Sets the value of the simVal property.
58 *
59 * @param value
60 * allowed object is
61 * {@link String }
62 *
63 */
64 public void setSimVal(String value) {
65 this.simVal = value;
66 }
67
68 /**
69 * Gets the value of the xcosVal property.
70 *
71 * @return
72 * possible object is
73 * {@link String }
74 *
75 */
76 public String getXcosVal() {
77 return xcosVal;
78 }
79
80 /**
81 * Sets the value of the xcosVal property.
82 *
83 * @param value
84 * allowed object is
85 * {@link String }
86 *
87 */
88 public void setXcosVal(String value) {
89 this.xcosVal = value;
90 }
91
92}