From 257ab3d8f2341dccba080661603f560dd821aa1c Mon Sep 17 00:00:00 2001 From: jkauttio Date: Mon, 27 Apr 2015 10:28:21 +0000 Subject: [PATCH] Move xmile plugin from incubator to sysdyn trunk refs #5645 git-svn-id: https://www.simantics.org/svn/simantics/sysdyn/trunk@31219 ac1ea38d-2e2b-0410-8846-a27921b304fc --- org.simantics.sysdyn.xmile/.classpath | 7 + org.simantics.sysdyn.xmile/.project | 28 + .../.settings/org.eclipse.jdt.core.prefs | 7 + .../META-INF/MANIFEST.MF | 18 + org.simantics.sysdyn.xmile/build.properties | 5 + org.simantics.sysdyn.xmile/plugin.xml | 75 + .../schema/generate.bat | 2 + .../schema/xmile-1.0-backup.xsd | 1994 +++ .../schema/xmile-1.0.xsd | 1994 +++ .../schema/xmile-backup.xsd | 1284 ++ org.simantics.sysdyn.xmile/schema/xmile.xsd | 1284 ++ .../org/simantics/sysdyn/xmile/Activator.java | 50 + .../simantics/sysdyn/xmile/ExportHandler.java | 76 + .../simantics/sysdyn/xmile/ImportHandler.java | 48 + .../sysdyn/xmile/ModelTransform.java | 628 + .../simantics/sysdyn/xmile/XmileParser.java | 759 ++ .../org/simantics/sysdyn/xmile/XmileUtil.java | 192 + .../expressionParser/ParseException.java | 187 + .../expressionParser/SimpleCharStream.java | 474 + .../sysdyn/xmile/expressionParser/Token.java | 131 + .../xmile/expressionParser/TokenMgrError.java | 147 + .../XmileExpressionParser.java | 590 + .../expressionParser/XmileExpressionParser.jj | 165 + .../XmileExpressionParserConstants.java | 83 + .../XmileExpressionParserTokenManager.java | 556 + .../sysdyn/xmile/schema/AccessType.java | 58 + .../sysdyn/xmile/schema/AfterChoices.java | 58 + .../sysdyn/xmile/schema/Auxiliary.java | 368 + .../sysdyn/xmile/schema/Behavior.java | 254 + .../xmile/schema/BooleanOrEmptyType.java | 37 + .../sysdyn/xmile/schema/Contact.java | 94 + .../sysdyn/xmile/schema/Conveyor.java | 300 + .../simantics/sysdyn/xmile/schema/Data.java | 746 ++ .../sysdyn/xmile/schema/DataType.java | 47 + .../sysdyn/xmile/schema/Dimensions.java | 136 + .../sysdyn/xmile/schema/EmptyType.java | 37 + .../simantics/sysdyn/xmile/schema/Entity.java | 116 + .../sysdyn/xmile/schema/EventPoster.java | 489 + .../simantics/sysdyn/xmile/schema/Flow.java | 434 + .../simantics/sysdyn/xmile/schema/Format.java | 158 + .../sysdyn/xmile/schema/FrequencyType.java | 58 + .../org/simantics/sysdyn/xmile/schema/Gf.java | 216 + .../sysdyn/xmile/schema/GraphType.java | 61 + .../sysdyn/xmile/schema/GraphicalInput.java | 842 ++ .../sysdyn/xmile/schema/GraphicsFrame.java | 715 + .../simantics/sysdyn/xmile/schema/Group.java | 171 + .../simantics/sysdyn/xmile/schema/Header.java | 469 + .../simantics/sysdyn/xmile/schema/Image.java | 181 + .../sysdyn/xmile/schema/Includes.java | 138 + .../simantics/sysdyn/xmile/schema/Knob.java | 959 ++ .../simantics/sysdyn/xmile/schema/Link.java | 278 + .../sysdyn/xmile/schema/ListInput.java | 995 ++ .../simantics/sysdyn/xmile/schema/Macro.java | 225 + .../xmile/schema/MenuActionChoices.java | 142 + .../sysdyn/xmile/schema/MinMaxType.java | 92 + .../simantics/sysdyn/xmile/schema/Model.java | 266 + .../sysdyn/xmile/schema/ModelUnits.java | 202 + .../simantics/sysdyn/xmile/schema/Module.java | 218 + .../sysdyn/xmile/schema/NumericDisplay.java | 956 ++ .../sysdyn/xmile/schema/ObjectFactory.java | 1368 ++ .../sysdyn/xmile/schema/Options.java | 954 ++ .../sysdyn/xmile/schema/Orientation.java | 58 + .../sysdyn/xmile/schema/OrientationType.java | 58 + .../sysdyn/xmile/schema/Penstyle.java | 64 + .../simantics/sysdyn/xmile/schema/Plot.java | 363 + .../sysdyn/xmile/schema/PointsType.java | 98 + .../simantics/sysdyn/xmile/schema/Popup.java | 779 ++ .../sysdyn/xmile/schema/Product.java | 123 + .../simantics/sysdyn/xmile/schema/Range.java | 94 + .../sysdyn/xmile/schema/ReportBalances.java | 58 + .../sysdyn/xmile/schema/ReportFlows.java | 58 + .../sysdyn/xmile/schema/ResetTo.java | 88 + .../simantics/sysdyn/xmile/schema/Scale.java | 149 + .../simantics/sysdyn/xmile/schema/Shape.java | 160 + .../sysdyn/xmile/schema/SimSpecs.java | 386 + .../simantics/sysdyn/xmile/schema/Slider.java | 986 ++ .../simantics/sysdyn/xmile/schema/Sound.java | 96 + .../sysdyn/xmile/schema/StackedContainer.java | 151 + .../xmile/schema/StandardBorderWidthType.java | 58 + .../xmile/schema/StandardColorType.java | 100 + .../xmile/schema/StandardMethodType.java | 67 + .../xmile/schema/StandardTimeUnitType.java | 85 + .../simantics/sysdyn/xmile/schema/Stock.java | 372 + .../simantics/sysdyn/xmile/schema/Style.java | 642 + .../sysdyn/xmile/schema/StyleType.java | 585 + .../simantics/sysdyn/xmile/schema/Switch.java | 932 ++ .../sysdyn/xmile/schema/SwitchAction.java | 181 + .../sysdyn/xmile/schema/TableItemType.java | 61 + .../sysdyn/xmile/schema/TextAlign.java | 61 + .../sysdyn/xmile/schema/TextBox.java | 722 + .../sysdyn/xmile/schema/TransparencyType.java | 58 + .../sysdyn/xmile/schema/Variables.java | 96 + .../xmile/schema/VerticalTextAlign.java | 61 + .../simantics/sysdyn/xmile/schema/Video.java | 181 + .../sysdyn/xmile/schema/ViewContentType.java | 10922 ++++++++++++++++ .../sysdyn/xmile/schema/ViewType.java | 61 + .../simantics/sysdyn/xmile/schema/Views.java | 571 + .../simantics/sysdyn/xmile/schema/Xmile.java | 448 + .../sysdyn/xmile/schema/package-info.java | 9 + .../xmile/unitParser/ParseException.java | 187 + .../xmile/unitParser/SimpleCharStream.java | 474 + .../sysdyn/xmile/unitParser/Token.java | 131 + .../xmile/unitParser/TokenMgrError.java | 147 + .../xmile/unitParser/XmileUnitParser.java | 282 + .../xmile/unitParser/XmileUnitParser.jj | 93 + .../unitParser/XmileUnitParserConstants.java | 47 + .../XmileUnitParserTokenManager.java | 497 + 107 files changed, 45522 insertions(+) create mode 100644 org.simantics.sysdyn.xmile/.classpath create mode 100644 org.simantics.sysdyn.xmile/.project create mode 100644 org.simantics.sysdyn.xmile/.settings/org.eclipse.jdt.core.prefs create mode 100644 org.simantics.sysdyn.xmile/META-INF/MANIFEST.MF create mode 100644 org.simantics.sysdyn.xmile/build.properties create mode 100644 org.simantics.sysdyn.xmile/plugin.xml create mode 100644 org.simantics.sysdyn.xmile/schema/generate.bat create mode 100644 org.simantics.sysdyn.xmile/schema/xmile-1.0-backup.xsd create mode 100644 org.simantics.sysdyn.xmile/schema/xmile-1.0.xsd create mode 100644 org.simantics.sysdyn.xmile/schema/xmile-backup.xsd create mode 100644 org.simantics.sysdyn.xmile/schema/xmile.xsd create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/Activator.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ExportHandler.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ImportHandler.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ModelTransform.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileParser.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileUtil.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/ParseException.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/SimpleCharStream.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/Token.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/TokenMgrError.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.jj create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserConstants.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserTokenManager.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AccessType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AfterChoices.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Auxiliary.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Behavior.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/BooleanOrEmptyType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Contact.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Conveyor.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Data.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/DataType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Dimensions.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EmptyType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Entity.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EventPoster.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Flow.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Format.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/FrequencyType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Gf.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicalInput.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicsFrame.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Group.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Header.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Image.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Includes.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Knob.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Link.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ListInput.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Macro.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MenuActionChoices.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MinMaxType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Model.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ModelUnits.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Module.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/NumericDisplay.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ObjectFactory.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Options.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Orientation.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/OrientationType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Penstyle.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Plot.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/PointsType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Popup.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Product.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Range.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportBalances.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportFlows.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ResetTo.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Scale.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Shape.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SimSpecs.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Slider.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Sound.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StackedContainer.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardBorderWidthType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardColorType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardMethodType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardTimeUnitType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Stock.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Style.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StyleType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Switch.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SwitchAction.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TableItemType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextAlign.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextBox.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TransparencyType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Variables.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/VerticalTextAlign.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Video.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewContentType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewType.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Views.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Xmile.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/package-info.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/ParseException.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/SimpleCharStream.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/Token.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/TokenMgrError.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParser.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParser.jj create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserConstants.java create mode 100644 org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserTokenManager.java diff --git a/org.simantics.sysdyn.xmile/.classpath b/org.simantics.sysdyn.xmile/.classpath new file mode 100644 index 00000000..b1dabee3 --- /dev/null +++ b/org.simantics.sysdyn.xmile/.classpath @@ -0,0 +1,7 @@ + + + + + + + diff --git a/org.simantics.sysdyn.xmile/.project b/org.simantics.sysdyn.xmile/.project new file mode 100644 index 00000000..b2e22b53 --- /dev/null +++ b/org.simantics.sysdyn.xmile/.project @@ -0,0 +1,28 @@ + + + org.simantics.sysdyn.xmile + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/org.simantics.sysdyn.xmile/.settings/org.eclipse.jdt.core.prefs b/org.simantics.sysdyn.xmile/.settings/org.eclipse.jdt.core.prefs new file mode 100644 index 00000000..11f6e462 --- /dev/null +++ b/org.simantics.sysdyn.xmile/.settings/org.eclipse.jdt.core.prefs @@ -0,0 +1,7 @@ +eclipse.preferences.version=1 +org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled +org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.7 +org.eclipse.jdt.core.compiler.compliance=1.7 +org.eclipse.jdt.core.compiler.problem.assertIdentifier=error +org.eclipse.jdt.core.compiler.problem.enumIdentifier=error +org.eclipse.jdt.core.compiler.source=1.7 diff --git a/org.simantics.sysdyn.xmile/META-INF/MANIFEST.MF b/org.simantics.sysdyn.xmile/META-INF/MANIFEST.MF new file mode 100644 index 00000000..bc162cde --- /dev/null +++ b/org.simantics.sysdyn.xmile/META-INF/MANIFEST.MF @@ -0,0 +1,18 @@ +Manifest-Version: 1.0 +Bundle-ManifestVersion: 2 +Bundle-Name: Sysdyn XMILE +Bundle-SymbolicName: org.simantics.sysdyn.xmile;singleton:=true +Bundle-Version: 1.0.0.qualifier +Bundle-Activator: org.simantics.sysdyn.xmile.Activator +Bundle-Vendor: VTT +Require-Bundle: org.eclipse.ui, + org.eclipse.core.runtime, + org.simantics;bundle-version="1.0.0", + org.simantics.browsing.ui.swt;bundle-version="1.1.0", + org.simantics.utils.ui;bundle-version="1.1.0", + org.simantics.sysdyn;bundle-version="1.8.0", + org.simantics.sysdyn.ontology;bundle-version="1.1.0", + org.simantics.objmap;bundle-version="0.1.0", + org.simantics.modeling;bundle-version="1.1.1" +Bundle-RequiredExecutionEnvironment: JavaSE-1.7 +Bundle-ActivationPolicy: lazy diff --git a/org.simantics.sysdyn.xmile/build.properties b/org.simantics.sysdyn.xmile/build.properties new file mode 100644 index 00000000..6f20375d --- /dev/null +++ b/org.simantics.sysdyn.xmile/build.properties @@ -0,0 +1,5 @@ +source.. = src/ +output.. = bin/ +bin.includes = META-INF/,\ + .,\ + plugin.xml diff --git a/org.simantics.sysdyn.xmile/plugin.xml b/org.simantics.sysdyn.xmile/plugin.xml new file mode 100644 index 00000000..ae3f6651 --- /dev/null +++ b/org.simantics.sysdyn.xmile/plugin.xml @@ -0,0 +1,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.sysdyn.xmile/schema/generate.bat b/org.simantics.sysdyn.xmile/schema/generate.bat new file mode 100644 index 00000000..6099a65d --- /dev/null +++ b/org.simantics.sysdyn.xmile/schema/generate.bat @@ -0,0 +1,2 @@ +"C:\Program Files\Java\jdk1.8.0_40\bin\xjc" -d ..\src -p org.simantics.sysdyn.xmile.schema1 xmile-1.0.xsd +pause \ No newline at end of file diff --git a/org.simantics.sysdyn.xmile/schema/xmile-1.0-backup.xsd b/org.simantics.sysdyn.xmile/schema/xmile-1.0-backup.xsd new file mode 100644 index 00000000..8c22c3ac --- /dev/null +++ b/org.simantics.sysdyn.xmile/schema/xmile-1.0-backup.xsd @@ -0,0 +1,1994 @@ + + + + + + + + + The root element for the XMILE file. Note that certain child elements + (i.e. model) are required for the primary file but not for included + files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the origin of the model and required + capabilities. Note that certain child elements (i.e. product, + options, vendor) are required for the primary file but not for + included files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Picture of the model in JPG, GIF, TIF, or PNG format. The + resource attribute is optional and may specify a relative + file path, an absolute file path, or a URL. The picture + data may also be embedded inside the tag in Data URI format, + using base64 encoding. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the required capabilities to use this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides a list of included files/resources. + + + + + + + + + + + + + + + + + Default simulation specifications for this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a method while providing an + enumerated list of recommended standard types. + Valid entries include enumerated entries as well as comma + separated lists, such as "rk2,rk4". + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a time unit while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + Definitions of units used in this model. + + + + + + + + + + + + + + + + + + + + + + Definition of model equations and optional diagrams. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A list of stocks, flows, auxiliaries (with equations) used in the model. + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called level or state. Stocks + accumulate. Their value at the start of the simulation must be set + as either a constant or with an initial equation. The initial + equation is evaluated only once, at the beginning of the + simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides additional options for a stock that describe the + characteristics of a conveyor. + + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called a rate or a derivative. + Flows represent the rate of change of a stock. Each timestep the + flow multiplied by the timestep is added to the stock. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Core building block of a model. Auxiliaries allow the isolation of + any algebraic function that is used. They can both clarify a model + and factor out important or repeated calculations. They can be + defined using any algebraic expression (including a constant + value), optionally in conjunction with a graphical function. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used in conjunction with submodels to define input and outputs. + + + + + + + + + + + + Default scale for a variable output. + + + + + + + + + + + + + + Default range of allowable inputs for a variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default format when displaying a variable or accepting input. + + + + + + + + + + + Graphical function, alternately called lookup functions or table + functions. They represent a (potentially) non-linear relationship. + Graphical functions may occur as part of other variables or (with + a name) as a stand alone variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A grouping of variables, also called a sector or view. + + + + + + + + + + + + + + + + + + + + Modules are placeholders in the variables section for submodels. If + present, this must appear in every model that references that + submodel. + + + + + + + + + + + + + + + + + + + + + Dimensions for a specific stock, flow, or aux in a model. + + + + + + + + + + + + + + + + + Events based on entity values can be triggered while the model + is being simulated. These events are limited to pausing the + simulation (default) or stopping the simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + List of views or diagrams pertaining to the model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content of a view or container + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A stacked container is used to allow XMILE display objects to be + stacked on top of one another in flipbook form. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Optional shape of a given element. + + + + + + + + + + + + + + + + + + + + + + Simulation behavior definitions that are inherited/cascaded through all + models defined in this XMILE document. + + + + + + + + + + + + + + + + + + + + + + + + + + + Defines macros that provide custom functions or building blocks that + can be used in model entity + equations. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This is a subset of what can be attached to individual display elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any double to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.sysdyn.xmile/schema/xmile-1.0.xsd b/org.simantics.sysdyn.xmile/schema/xmile-1.0.xsd new file mode 100644 index 00000000..e2144bfe --- /dev/null +++ b/org.simantics.sysdyn.xmile/schema/xmile-1.0.xsd @@ -0,0 +1,1994 @@ + + + + + + + + + The root element for the XMILE file. Note that certain child elements + (i.e. model) are required for the primary file but not for included + files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the origin of the model and required + capabilities. Note that certain child elements (i.e. product, + options, vendor) are required for the primary file but not for + included files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Picture of the model in JPG, GIF, TIF, or PNG format. The + resource attribute is optional and may specify a relative + file path, an absolute file path, or a URL. The picture + data may also be embedded inside the tag in Data URI format, + using base64 encoding. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the required capabilities to use this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides a list of included files/resources. + + + + + + + + + + + + + + + + + Default simulation specifications for this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a method while providing an + enumerated list of recommended standard types. + Valid entries include enumerated entries as well as comma + separated lists, such as "rk2,rk4". + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a time unit while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + Definitions of units used in this model. + + + + + + + + + + + + + + + + + + + + + + Definition of model equations and optional diagrams. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A list of stocks, flows, auxiliaries (with equations) used in the model. + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called level or state. Stocks + accumulate. Their value at the start of the simulation must be set + as either a constant or with an initial equation. The initial + equation is evaluated only once, at the beginning of the + simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides additional options for a stock that describe the + characteristics of a conveyor. + + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called a rate or a derivative. + Flows represent the rate of change of a stock. Each timestep the + flow multiplied by the timestep is added to the stock. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Core building block of a model. Auxiliaries allow the isolation of + any algebraic function that is used. They can both clarify a model + and factor out important or repeated calculations. They can be + defined using any algebraic expression (including a constant + value), optionally in conjunction with a graphical function. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used in conjunction with submodels to define input and outputs. + + + + + + + + + + + + Default scale for a variable output. + + + + + + + + + + + + + + Default range of allowable inputs for a variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default format when displaying a variable or accepting input. + + + + + + + + + + + Graphical function, alternately called lookup functions or table + functions. They represent a (potentially) non-linear relationship. + Graphical functions may occur as part of other variables or (with + a name) as a stand alone variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A grouping of variables, also called a sector or view. + + + + + + + + + + + + + + + + + + + + Modules are placeholders in the variables section for submodels. If + present, this must appear in every model that references that + submodel. + + + + + + + + + + + + + + + + + + + + + Dimensions for a specific stock, flow, or aux in a model. + + + + + + + + + + + + + + + + + Events based on entity values can be triggered while the model + is being simulated. These events are limited to pausing the + simulation (default) or stopping the simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + List of views or diagrams pertaining to the model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content of a view or container + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A stacked container is used to allow XMILE display objects to be + stacked on top of one another in flipbook form. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Optional shape of a given element. + + + + + + + + + + + + + + + + + + + + + + Simulation behavior definitions that are inherited/cascaded through all + models defined in this XMILE document. + + + + + + + + + + + + + + + + + + + + + + + + + + + Defines macros that provide custom functions or building blocks that + can be used in model entity + equations. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This is a subset of what can be attached to individual display elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any double to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.sysdyn.xmile/schema/xmile-backup.xsd b/org.simantics.sysdyn.xmile/schema/xmile-backup.xsd new file mode 100644 index 00000000..5a104479 --- /dev/null +++ b/org.simantics.sysdyn.xmile/schema/xmile-backup.xsd @@ -0,0 +1,1284 @@ + + + + + + + + + The root element for the XMILE file. Note that certain child elements + (i.e. model) are required for the primary file but not for included + files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the origin of the model and required + capabilities. Note that certain child elements (i.e. product, + options, vendor) are required for the primary file but not for + included files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Picture of the model in JPG, GIF, TIF, or PNG format. The + resource attribute is optional and may specify a relative + file path, an absolute file path, or an URL. The picture + data may also be embedded inside the tag in Data URI format, + using base64 encoding. + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the required capabilities to use this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides a list of included files/resources. + + + + + + + + + + + + + + + + + Default simulation specifications for this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a method while providing an + enumerated list of recommended standard types. + Valid entries include enumerated entries as well as comma + separated lists, such as "rk2,rk4". + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a time unit while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + Definitions of units used in this model. + + + + + + + + + + + + + + + + + + + + + + Definition of model equations and optional diagrams. + + + + + + + + + + + + + + + + + + + + + + + A list of stocks, flows, auxiliaries (with equations) used in the model. + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called level or state. Stocks + accumulate. Their value at the start of the simulation must be set + as either a constant or with an initial equation. The initial + equation is evaluated only once, at the beginning of the + simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides additional options for a stock that describe the + characteristics of a conveyor. + + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called a rate or a derivative. + Flows represent the rate of change of a stock. Each timestep the + flow multiplied by the timestep is added to the stock. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Core building block of a model. Auxiliaries allow the isolation of + any algebraic function that is used. They can both clarify a model + and factor out important or repeated calculations. They can be + defined using any algebraic expression (including a constant + value), optionally in conjunction with a graphical function. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used in conjunction with submodels to define input and outputs. + + + + + + + + + + + + Default scale for a variable output. + + + + + + + + + + + + + + Default range of allowable inputs for a variable. + + + + + + + + + + + + Default format when displaying a variable or accepting input. + + + + + + + + + + + + + + + + + + + + + + Graphical function, alternately called lookup functions or table + functions. They represent a (potentially) non-linear relationship. + Graphical functions may occur as part of other variables or (with + a name) as a stand alone variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A grouping of variables, also called a sector or view. + + + + + + + + + + + + + + + + + + + Modules are placeholders in the variables section for submodels. If + present, this must appear in every model that references that + submodel. + + + + + + + + + + + + + + + + + + + + Dimensions for a specific stock, flow, or aux in a model. + + + + + + + + + + + + + + + + + Events based on entity values can be triggered while the model + is being simulated. These events are limited to pausing the + simulation (default) or stopping the simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + List of views or diagrams pertaining to the model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content of a view or container + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A stacked container is used to allow XMILE display objects to be + stacked on top of one another in flipbook form. + + + + + + + + + + + + + + + + + + Optional shape of a given element. + + + + + + + + + + + + + + + + + + + + + + Simulation behavior definitions that are inherited/cascaded through all + models defined in this XMILE document. + + + + + + + + + + + + + + + + + + + + + + + + + + + Defines macros that provide custom functions or building blocks that + can be used in model entity + equations. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This is a subset of what can be attached to individual display elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any double to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.sysdyn.xmile/schema/xmile.xsd b/org.simantics.sysdyn.xmile/schema/xmile.xsd new file mode 100644 index 00000000..f7393c64 --- /dev/null +++ b/org.simantics.sysdyn.xmile/schema/xmile.xsd @@ -0,0 +1,1284 @@ + + + + + + + + + The root element for the XMILE file. Note that certain child elements + (i.e. model) are required for the primary file but not for included + files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the origin of the model and required + capabilities. Note that certain child elements (i.e. product, + options, vendor) are required for the primary file but not for + included files. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Picture of the model in JPG, GIF, TIF, or PNG format. The + resource attribute is optional and may specify a relative + file path, an absolute file path, or an URL. The picture + data may also be embedded inside the tag in Data URI format, + using base64 encoding. + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides information about the required capabilities to use this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides a list of included files/resources. + + + + + + + + + + + + + + + + + Default simulation specifications for this model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a method while providing an + enumerated list of recommended standard types. + Valid entries include enumerated entries as well as comma + separated lists, such as "rk2,rk4". + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a time unit while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + Definitions of units used in this model. + + + + + + + + + + + + + + + + + + + + + + Definition of model equations and optional diagrams. + + + + + + + + + + + + + + + + + + + + + + + A list of stocks, flows, auxiliaries (with equations) used in the model. + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called level or state. Stocks + accumulate. Their value at the start of the simulation must be set + as either a constant or with an initial equation. The initial + equation is evaluated only once, at the beginning of the + simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Provides additional options for a stock that describe the + characteristics of a conveyor. + + + + + + + + + + + + + + + + + + + + + Core building block of a model, also called a rate or a derivative. + Flows represent the rate of change of a stock. Each timestep the + flow multiplied by the timestep is added to the stock. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Core building block of a model. Auxiliaries allow the isolation of + any algebraic function that is used. They can both clarify a model + and factor out important or repeated calculations. They can be + defined using any algebraic expression (including a constant + value), optionally in conjunction with a graphical function. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Used in conjunction with submodels to define input and outputs. + + + + + + + + + + + + Default scale for a variable output. + + + + + + + + + + + + + + Default range of allowable inputs for a variable. + + + + + + + + + + + + Default format when displaying a variable or accepting input. + + + + + + + + + + + + + + + + + + + + + + Graphical function, alternately called lookup functions or table + functions. They represent a (potentially) non-linear relationship. + Graphical functions may occur as part of other variables or (with + a name) as a stand alone variable. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A grouping of variables, also called a sector or view. + + + + + + + + + + + + + + + + + + + Modules are placeholders in the variables section for submodels. If + present, this must appear in every model that references that + submodel. + + + + + + + + + + + + + + + + + + + + Dimensions for a specific stock, flow, or aux in a model. + + + + + + + + + + + + + + + + + Events based on entity values can be triggered while the model + is being simulated. These events are limited to pausing the + simulation (default) or stopping the simulation. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + List of views or diagrams pertaining to the model. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Content of a view or container + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + A stacked container is used to allow XMILE display objects to be + stacked on top of one another in flipbook form. + + + + + + + + + + + + + + + + + + Optional shape of a given element. + + + + + + + + + + + + + + + + + + + + + + Simulation behavior definitions that are inherited/cascaded through all + models defined in this XMILE document. + + + + + + + + + + + + + + + + + + + + + + + + + + + Defines macros that provide custom functions or building blocks that + can be used in model entity + equations. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + This is a subset of what can be attached to individual display elements. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any string to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Allows any double to be entered as a color while providing an + enumerated list of recommended + standard types. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/Activator.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/Activator.java new file mode 100644 index 00000000..83ce919c --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/Activator.java @@ -0,0 +1,50 @@ +package org.simantics.sysdyn.xmile; + +import org.eclipse.ui.plugin.AbstractUIPlugin; +import org.osgi.framework.BundleContext; + +/** + * The activator class controls the plug-in life cycle + */ +public class Activator extends AbstractUIPlugin { + + // The plug-in ID + public static final String PLUGIN_ID = "org.simantics.sysdyn.xmile"; //$NON-NLS-1$ + + // The shared instance + private static Activator plugin; + + /** + * The constructor + */ + public Activator() { + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext) + */ + public void start(BundleContext context) throws Exception { + super.start(context); + plugin = this; + } + + /* + * (non-Javadoc) + * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext) + */ + public void stop(BundleContext context) throws Exception { + plugin = null; + super.stop(context); + } + + /** + * Returns the shared instance + * + * @return the shared instance + */ + public static Activator getDefault() { + return plugin; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ExportHandler.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ExportHandler.java new file mode 100644 index 00000000..05aefed5 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ExportHandler.java @@ -0,0 +1,76 @@ +package org.simantics.sysdyn.xmile; + +import java.io.File; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.Marshaller; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.jface.viewers.ISelection; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.FileDialog; +import org.eclipse.ui.handlers.HandlerUtil; +import org.simantics.Simantics; +import org.simantics.db.Resource; +import org.simantics.db.request.Read; +import org.simantics.sysdyn.xmile.schema.Xmile; +import org.simantics.utils.ui.AdaptionUtils; +import org.simantics.utils.ui.ExceptionUtils; + +public class ExportHandler extends AbstractHandler { + + @Override + public Object execute(ExecutionEvent event) throws ExecutionException { + // prompt the user for a file + FileDialog dialog = new FileDialog(HandlerUtil.getActiveShell(event), SWT.SAVE); + dialog.setFilterExtensions(new String[] {"*.xml","*.*"}); + dialog.setOverwrite(true); + + String fileName = dialog.open(); + if (fileName == null) { + return null; + } + + try { + // the selection should always be a model as the handler should not + // be executable otherwise + ISelection selection = HandlerUtil.getCurrentSelection(event); + + Resource model = AdaptionUtils.adaptToSingle(selection, Resource.class); + + Read request; + + // there probably is some cleaner way to parse parameters but this + // will suffice for now + String includeView = event.getParameter("org.simantics.sysdyn.xmile.export.includeView"); + if (includeView != null) { + if (!(includeView.equals("true") || includeView.equals("false"))) { + throw new ExecutionException("incorrect value for includeView"); + } + request = new ModelTransform(model, includeView.equals("true")); + } + else { + request = new ModelTransform(model); + } + + // transform the sysdyn model into an xmile document + Xmile xmile = Simantics.getSession().syncRequest(request); + + // write the xml into the file + JAXBContext context = JAXBContext.newInstance("org.simantics.sysdyn.xmile.schema"); + Marshaller marshaller = context.createMarshaller(); + marshaller.setProperty("jaxb.formatted.output", Boolean.TRUE); + // TODO: this is for debugging purposes, remove when done + marshaller.marshal(xmile, System.out); + marshaller.marshal(xmile, new File(fileName)); + } + catch (Exception e) { + ExceptionUtils.logAndShowError("XMILE export failed: "+e.getMessage(), e); + } + + return null; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ImportHandler.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ImportHandler.java new file mode 100644 index 00000000..0703e3ca --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ImportHandler.java @@ -0,0 +1,48 @@ +package org.simantics.sysdyn.xmile; + +import java.io.File; + +import org.eclipse.core.commands.AbstractHandler; +import org.eclipse.core.commands.ExecutionEvent; +import org.eclipse.core.commands.ExecutionException; +import org.eclipse.swt.SWT; +import org.eclipse.swt.widgets.FileDialog; +import org.eclipse.ui.handlers.HandlerUtil; +import org.simantics.Simantics; +import org.simantics.db.WriteGraph; +import org.simantics.db.common.request.WriteRequest; +import org.simantics.db.exception.DatabaseException; +import org.simantics.sysdyn.modelImport.model.Model; +import org.simantics.utils.ui.ExceptionUtils; + +public class ImportHandler extends AbstractHandler { + + @Override + public Object execute(ExecutionEvent event) throws ExecutionException { + // prompt the user for a file + FileDialog dialog = new FileDialog(HandlerUtil.getActiveShell(event), SWT.OPEN); + dialog.setFilterExtensions(new String[] {"*.xml","*.*"}); + + String fileName = dialog.open(); + if (fileName == null) { + return null; + } + + try { + final Model model = new XmileParser().parse(new File(fileName)); + + Simantics.getSession().syncRequest(new WriteRequest() { + @Override + public void perform(WriteGraph graph) throws DatabaseException { + model.write(graph, Simantics.getProject().get()); + } + }); + } + catch (Exception e) { + ExceptionUtils.logAndShowError("XMILE import failed: "+e.getMessage(), e); + } + + return null; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ModelTransform.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ModelTransform.java new file mode 100644 index 00000000..23b27159 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/ModelTransform.java @@ -0,0 +1,628 @@ +package org.simantics.sysdyn.xmile; + +import java.math.BigDecimal; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; + +import org.simantics.databoard.Bindings; +import org.simantics.db.ReadGraph; +import org.simantics.db.Resource; +import org.simantics.db.exception.DatabaseException; +import org.simantics.db.request.Read; +import org.simantics.diagram.stubs.DiagramResource; +import org.simantics.layer0.Layer0; +import org.simantics.modeling.ModelingResources; +import org.simantics.simulation.ontology.SimulationResource; +import org.simantics.sysdyn.SysdynResource; +import org.simantics.sysdyn.manager.SysdynModel; +import org.simantics.sysdyn.manager.SysdynModelManager; +import org.simantics.sysdyn.representation.Configuration; +import org.simantics.sysdyn.representation.Enumeration; +import org.simantics.sysdyn.representation.EnumerationIndex; +import org.simantics.sysdyn.representation.IElement; +import org.simantics.sysdyn.representation.expressions.IExpression; +import org.simantics.sysdyn.representation.expressions.NormalExpression; +import org.simantics.sysdyn.representation.expressions.ParameterExpression; +import org.simantics.sysdyn.representation.expressions.StockExpression; +import org.simantics.sysdyn.representation.expressions.WithLookupExpression; +import org.simantics.sysdyn.xmile.schema.Auxiliary; +import org.simantics.sysdyn.xmile.schema.Dimensions; +import org.simantics.sysdyn.xmile.schema.Flow; +import org.simantics.sysdyn.xmile.schema.Gf; +import org.simantics.sysdyn.xmile.schema.Header; +import org.simantics.sysdyn.xmile.schema.Model; +import org.simantics.sysdyn.xmile.schema.ObjectFactory; +import org.simantics.sysdyn.xmile.schema.Options; +import org.simantics.sysdyn.xmile.schema.PointsType; +import org.simantics.sysdyn.xmile.schema.Product; +import org.simantics.sysdyn.xmile.schema.SimSpecs; +import org.simantics.sysdyn.xmile.schema.Stock; +import org.simantics.sysdyn.xmile.schema.Variables; +import org.simantics.sysdyn.xmile.schema.ViewContentType; +import org.simantics.sysdyn.xmile.schema.Views; +import org.simantics.sysdyn.xmile.schema.Xmile; +import org.simantics.sysdyn.xmile.schema.Dimensions.Dim; +import org.simantics.sysdyn.xmile.schema.ViewContentType.Connector.From; +import org.simantics.sysdyn.xmile.schema.Views.View; + +public class ModelTransform implements Read { + + private Resource source; + + private ObjectFactory factory; + private boolean includeView; + + private SysdynModel sourceModel; + + private DiagramResource dr; + private Layer0 l0; + private ModelingResources mr; + private SimulationResource sim; + private SysdynResource sr; + + private static final double version = 1.0; + + private static final String HEADER_VENDOR = "Simantics"; + private static final String HEADER_PRODUCT_NAME = "System Dynamics"; + private static final String HEADER_PRODUCT_VERSION = "0.1"; + + private static final String SPECS_SOLVER = "euler"; + + // the xmile document must specify which features are used under the + // options tag. if the sysdyn model uses one of these features the + // parser sets the related flag to true, which causes an appropriate + // options tag to be generated. + private boolean usesArrays = false; + private int usesArraysMaxDimensions = 0; + private boolean usesSubmodels = false; + private boolean usesMacros = false; + + private int connectorId = 0; + + public ModelTransform(Resource source) { + this(source, true); + } + + public ModelTransform(Resource source, boolean includeView) { + this.source = source; + this.factory = new ObjectFactory(); + this.includeView = includeView; + } + + @Override + public Xmile perform(ReadGraph graph) + throws DatabaseException { + dr = DiagramResource.getInstance(graph); + l0 = Layer0.getInstance(graph); + mr = ModelingResources.getInstance(graph); + sim = SimulationResource.getInstance(graph); + sr = SysdynResource.getInstance(graph); + + // try to use the sysdyn model interface for everything and only read + // data from graph if absolutely necessary (remember to refactor this + // method to perform outside of a transaction if the graph is not + // needed in the end) + + Resource configuration = graph.getSingleObject(source, sim.HasConfiguration); + + sourceModel = SysdynModelManager.getInstance(graph.getSession()).getModel(graph, configuration); + + return getDocument(graph); + } + + private Xmile getDocument(ReadGraph graph) + throws DatabaseException { + Xmile xmile = factory.createXmile(); + + xmile.setVersion(BigDecimal.valueOf(version)); + + xmile.setHeader(getHeader(graph)); + + xmile.getSimSpecsOrModelUnitsOrBehavior().add(getSimulationSpecifications()); + + org.simantics.sysdyn.xmile.schema.Xmile.Dimensions dims = getDimensions(); + if (dims != null) { + xmile.getSimSpecsOrModelUnitsOrBehavior().add(dims); + } + + xmile.getSimSpecsOrModelUnitsOrBehavior().addAll(getModels(graph)); + + // add options last so we know which options to set + xmile.getHeader().setOptions(getOptions()); + + return xmile; + } + + private Header getHeader(ReadGraph graph) + throws DatabaseException { + Header header = factory.createHeader(); + + // required fields + header.setVendor(HEADER_VENDOR); + + Product product = factory.createProduct(); + product.setValue(HEADER_PRODUCT_NAME); + product.setVersion(HEADER_PRODUCT_VERSION); + + header.setProduct(product); + + // optional fields + Resource model = sourceModel.getMapping().inverseGet( + sourceModel.getConfiguration().getModel()); + String name = graph.getRelatedValue(model, l0.HasName, Bindings.STRING); + header.setName(name); + + return header; + } + + private Options getOptions() { + Options options = factory.createOptions(); + + if (usesArrays) { + options.setUsesArrays(factory.createOptionsUsesArrays()); + options.getUsesArrays().setMaxDimensions(BigInteger.valueOf(usesArraysMaxDimensions)); + } + if (usesSubmodels) { + options.setUsesSubmodels(factory.createEmptyType()); + } + if (usesMacros) { + options.setUsesMacros(factory.createOptionsUsesMacros()); + options.getUsesMacros().setReferencesMacros(false); + options.getUsesMacros().setOptionFilters(false); + } + + // the options must also include a note of the view + if (includeView) { + options.setHasModelView(factory.createEmptyType()); + } + + return options; + } + + private SimSpecs getSimulationSpecifications() { + SimSpecs specs = factory.createSimSpecs(); + + specs.setMethod(SPECS_SOLVER); + + org.simantics.sysdyn.representation.Model model = + sourceModel.getConfiguration().getModel(); + + specs.setStart(model.getStartTime()); + specs.setStop(model.getStopTime()); + + specs.setDt(factory.createSimSpecsDt()); + specs.getDt().setValue(model.getSimulationStepLength()); + + return specs; + } + + private org.simantics.sysdyn.xmile.schema.Xmile.Dimensions getDimensions() { + org.simantics.sysdyn.xmile.schema.Xmile.Dimensions dimensions = + factory.createXmileDimensions(); + + // go through all configurations to find all enumerations and generate + // dimensions based on them + + for (IElement element : sourceModel.getConfiguration().getElements()) { + if (element instanceof Enumeration) { + Enumeration enumeration = (Enumeration)element; + + org.simantics.sysdyn.xmile.schema.Xmile.Dimensions.Dim dim = + factory.createXmileDimensionsDim(); + dim.setName(enumeration.getName()); + + // sysdyn supports only named indices + + for (EnumerationIndex index : enumeration.getEnumerationIndexes()) { + org.simantics.sysdyn.xmile.schema.Xmile.Dimensions.Dim.Elem elem = + factory.createXmileDimensionsDimElem(); + elem.setName(index.getName()); + dim.getElem().add(elem); + } + + dimensions.getDim().add(dim); + + usesArrays = true; + usesArraysMaxDimensions = Math.max( + usesArraysMaxDimensions, + enumeration.getEnumerationIndexes().size()); + } + } + + return dimensions.getDim().isEmpty() ? null : dimensions; + } + + private List getModels(ReadGraph graph) + throws DatabaseException { + List models = new ArrayList(); + + for (Configuration configuration : sourceModel.getModules()) { + // create submodels + } + + Model model = factory.createModel(); + + model.setVariables(getVariables(sourceModel.getConfiguration())); + + if (includeView) { + model.setViews(getViews(graph, sourceModel.getConfiguration())); + } + + models.add(model); + + return models; + } + + private Variables getVariables(Configuration configuration) + throws DatabaseException { + Variables variables = factory.createVariables(); + + for (IElement element : configuration.getElements()) { + Object variable; + + if (element instanceof org.simantics.sysdyn.representation.Auxiliary) { + variable = getAuxiliary((org.simantics.sysdyn.representation.Auxiliary)element); + } + else if (element instanceof org.simantics.sysdyn.representation.Valve) { + variable = getFlow((org.simantics.sysdyn.representation.Valve)element); + } + else if (element instanceof org.simantics.sysdyn.representation.Stock) { + variable = getStock((org.simantics.sysdyn.representation.Stock)element); + } + else { + // skip other element types + continue; + } + + variables.getStockOrFlowOrAuxiliary().add(variable); + } + + return variables; + } + + private Views getViews(ReadGraph graph, Configuration configuration) + throws DatabaseException { + Views views = factory.createViews(); + + // since sysdyn does not really have separate views, just create one + // view for the whole diagram + View view = factory.createViewsView(); + views.getStyleOrView().add(view); + + // the object model is only interested in the variables so the diagram + // data must be read directly from the graph + for (IElement element : configuration.getElements()) { + Resource res = sourceModel.getMapping().inverseGet(element); + + Object obj; + + if (element instanceof org.simantics.sysdyn.representation.Auxiliary) { + obj = getViewAuxiliary(graph, res); + } + else if (element instanceof org.simantics.sysdyn.representation.Valve) { + obj = getViewFlow(graph, res); + } + else if (element instanceof org.simantics.sysdyn.representation.Stock) { + obj = getViewStock(graph, res); + } + else if (element instanceof org.simantics.sysdyn.representation.Dependency) { + obj = getViewConnector(graph, res); + } + else { + continue; + } + + view.getStyleOrStockOrFlow().add(obj); + } + + return views; + } + + private Auxiliary getAuxiliary(org.simantics.sysdyn.representation.Auxiliary auxVar) + throws DatabaseException { + Auxiliary aux = factory.createAuxiliary(); + + aux.setName(auxVar.getName()); + + String desc = auxVar.getDescription(); + if (desc != null && !desc.isEmpty()) { + aux.getEqnOrMathmlOrUnits().add( + factory.createAuxiliaryDoc(desc)); + } + + if (!auxVar.getArrayIndexes().isEmpty()) { + Dimensions dims = factory.createDimensions(); + + for (Enumeration enumeration : auxVar.getArrayIndexes()) { + Dim dim = factory.createDimensionsDim(); + dim.setName(enumeration.getName()); + dims.getDim().add(dim); + } + + aux.getEqnOrMathmlOrUnits().add(dims); + } + + // if there is only one expression, create an apply-to-all equation + if (auxVar.getExpressions().size() == 1) { + aux.getEqnOrMathmlOrUnits().addAll( + parseExpression(Auxiliary.class, auxVar.getExpressions().get(0))); + } + // otherwise, create a suitable set of elements and an equation for each of them + else { + for (IExpression expression : auxVar.getExpressions()) { + Auxiliary.Element element = factory.createAuxiliaryElement(); + + StringBuilder subscript = new StringBuilder(); + for (String index : expression.getArrayIndices()) { + if (subscript.length() > 0) + subscript.append(','); + subscript.append(index); + } + element.setSubscript(subscript.toString()); + + element.getEqnOrMathmlOrGf().addAll( + parseExpression(Auxiliary.Element.class, expression)); + + aux.getEqnOrMathmlOrUnits().add(factory.createAuxiliaryElement(element)); + } + } + + return aux; + } + + private Flow getFlow(org.simantics.sysdyn.representation.Valve valveVar) + throws DatabaseException { + Flow flow = factory.createFlow(); + + flow.setName(valveVar.getName()); + + String desc = valveVar.getDescription(); + if (desc != null && !desc.isEmpty()) { + flow.getEqnOrMathmlOrUnits().add( + factory.createAuxiliaryDoc(desc)); + } + + IExpression expression = valveVar.getExpressions().get(0); + + flow.getEqnOrMathmlOrUnits().addAll(parseExpression(Flow.class, expression)); + + return flow; + } + + private Stock getStock(org.simantics.sysdyn.representation.Stock stockVar) + throws DatabaseException { + Stock stock = factory.createStock(); + + stock.setName(stockVar.getName()); + + String desc = stockVar.getDescription(); + if (desc != null && !desc.isEmpty()) { + stock.getEqnOrMathmlOrUnits().add( + factory.createAuxiliaryDoc(desc)); + } + + IExpression expression = stockVar.getExpressions().get(0); + + // initial equation + stock.getEqnOrMathmlOrUnits().addAll(parseExpression(Stock.class, expression)); + + // inputs and outputs + for (org.simantics.sysdyn.representation.Valve valve : stockVar.getIncomingValves()) { + Object inflow = factory.createStockElementInflow(valve.getName()); + stock.getEqnOrMathmlOrUnits().add(inflow); + } + for (org.simantics.sysdyn.representation.Valve valve : stockVar.getOutgoingValves()) { + Object outflow = factory.createStockElementOutflow(valve.getName()); + stock.getEqnOrMathmlOrUnits().add(outflow); + } + + return stock; + } + + private ViewContentType.Aux getViewAuxiliary(ReadGraph graph, Resource auxRes) + throws DatabaseException { + ViewContentType.Aux aux = factory.createViewContentTypeAux(); + + String name = graph.getRelatedValue(auxRes, l0.HasName, Bindings.STRING); + aux.setName(name); + + aux.setX(getComponentX(graph, auxRes)); + aux.setY(getComponentY(graph, auxRes)); + + return aux; + } + + private ViewContentType.Flow getViewFlow(ReadGraph graph, Resource valveRes) + throws DatabaseException { + ViewContentType.Flow flow = factory.createViewContentTypeFlow(); + + String name = graph.getRelatedValue(valveRes, l0.HasName, Bindings.STRING); + flow.setName(name); + + ViewContentType.Flow.Pts points = factory.createViewContentTypeFlowPts(); + + // construct the list of points for the flow from the inbound and + // outbound flows of the valve with the valve in the middle + + for (Resource res : graph.getObjects(valveRes, sr.Variable_isHeadOf)) { + if (graph.isInstanceOf(res, sr.Flow)) { + Resource tail = graph.getSingleObject(res, sr.Variable_HasTail); + + ViewContentType.Flow.Pts.Pt start = factory.createViewContentTypeFlowPtsPt(); + start.setX(getComponentX(graph, tail)); + start.setY(getComponentY(graph, tail)); + + points.getPt().add(start); + break; // just in case not sure what to do if there are multiple flows + } + } + + for (Resource res : graph.getObjects(valveRes, sr.Variable_isTailOf)) { + if (graph.isInstanceOf(res, sr.Flow)) { + Resource head = graph.getSingleObject(res, sr.Variable_HasHead); + + ViewContentType.Flow.Pts.Pt end = factory.createViewContentTypeFlowPtsPt(); + end.setX(getComponentX(graph, head)); + end.setY(getComponentY(graph, head)); + + points.getPt().add(end); + break; // just in case not sure what to do if there are multiple flows + } + } + + flow.setPts(points); + + flow.setX(getComponentX(graph, valveRes)); + flow.setY(getComponentY(graph, valveRes)); + + return flow; + } + + private ViewContentType.Stock getViewStock(ReadGraph graph, Resource stockRes) + throws DatabaseException { + ViewContentType.Stock stock = factory.createViewContentTypeStock(); + + String name = graph.getRelatedValue(stockRes, l0.HasName, Bindings.STRING); + stock.setName(name); + + stock.setX(getComponentX(graph, stockRes)); + stock.setY(getComponentY(graph, stockRes)); + + return stock; + } + + private ViewContentType.Connector getViewConnector(ReadGraph graph, Resource depRes) + throws DatabaseException { + ViewContentType.Connector connector = factory.createViewContentTypeConnector(); + + connector.setUid(connectorId++); + + // TODO: figure these out + connector.setX(1.0); + connector.setY(1.0); + + Resource head = graph.getSingleObject(depRes, sr.Variable_HasHead); + Resource tail = graph.getSingleObject(depRes, sr.Variable_HasTail); + + String headName = graph.getRelatedValue(head, l0.HasName, Bindings.STRING); + String tailName = graph.getRelatedValue(tail, l0.HasName, Bindings.STRING); + + // from and to are not symmetric, no idea why but it is the specification + From from = factory.createViewContentTypeConnectorFrom(); + from.getContent().add(tailName); + connector.setFrom(from); + connector.setTo(headName); + + return connector; + } + + private double getComponentX(ReadGraph graph, Resource comp) + throws DatabaseException { + Resource symbol = graph.getSingleObject(comp, mr.ComponentToElement); + double[] transform = graph.getRelatedValue(symbol, dr.HasTransform, Bindings.DOUBLE_ARRAY); + return transform[4]; + } + + private double getComponentY(ReadGraph graph, Resource comp) + throws DatabaseException { + Resource symbol = graph.getSingleObject(comp, mr.ComponentToElement); + double[] transform = graph.getRelatedValue(symbol, dr.HasTransform, Bindings.DOUBLE_ARRAY); + return transform[5]; + } + + private List parseExpression(Class varType, IExpression expression) + throws DatabaseException { + List exprObjs = new ArrayList(); + + String exprStr; + if (expression instanceof NormalExpression) { + NormalExpression expr = (NormalExpression)expression; + exprStr = expr.getExpression(); + } + else if (expression instanceof ParameterExpression) { + ParameterExpression expr = (ParameterExpression)expression; + exprStr = expr.getValue().toString(); + } + else if (expression instanceof WithLookupExpression) { + WithLookupExpression expr = (WithLookupExpression)expression; + + Gf gf = factory.createGf(); + + double[] points = expr.getPoints(); + StringBuilder xPts = new StringBuilder(); + StringBuilder yPts = new StringBuilder(); + for (int i = 0; i < points.length / 2; i++) { + if (i > 0) { + xPts.append(','); + yPts.append(','); + } + xPts.append(points[2*i]); + yPts.append(points[2*i + 1]); + } + + PointsType xPtsType = factory.createPointsType(); + PointsType yPtsType = factory.createPointsType(); + + xPtsType.setValue(xPts.toString()); + yPtsType.setValue(yPts.toString()); + + gf.setXpts(xPtsType); + gf.setYpts(yPtsType); + + exprObjs.add(gf); + + exprStr = expr.getLookupEquation(); + } + else if (expression instanceof StockExpression) { + StockExpression expr = (StockExpression)expression; + + // xmile does not support custom stock expressions so if the + // expression is anything else than a sum of inputs and outputs + // then something special should be done here. for the moment + // though it should be sufficient to just handle the initial + // equation here and add the inputs and outputs in getStock() + + exprStr = expr.getExpression(); + } + else { + throw new DatabaseException("unrecognized expression type"); + } + + Object eqn; + try { + eqn = getEqn(varType, XmileUtil.modelicaExprToXmile(exprStr)); + } + catch (Exception e) { + throw new DatabaseException(e); + } + + exprObjs.add(eqn); + + return exprObjs; + } + + private Object getEqn(Class varType, String equation) { + if (varType.equals(Auxiliary.class)) { + return factory.createAuxiliaryEqn(equation); + } + else if (varType.equals(Auxiliary.Element.class)) { + return factory.createAuxiliaryElementEqn(equation); + } + else if (varType.equals(Flow.class)) { + return factory.createFlowEqn(equation); + } + else if (varType.equals(Flow.Element.class)) { + return factory.createFlowElementEqn(equation); + } + else if (varType.equals(Stock.class)) { + return factory.createStockEqn(equation); + } + else if (varType.equals(Stock.Element.class)) { + return factory.createStockElementEqn(equation); + } + else { + return null; + } + } +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileParser.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileParser.java new file mode 100644 index 00000000..9444ed48 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileParser.java @@ -0,0 +1,759 @@ +package org.simantics.sysdyn.xmile; + +import java.io.File; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Iterator; +import java.util.List; +import java.util.Map; + +import javax.xml.bind.JAXBContext; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.Unmarshaller; + +import org.simantics.sysdyn.modelImport.IModelParser; +import org.simantics.sysdyn.modelImport.model.Auxiliary; +import org.simantics.sysdyn.modelImport.model.Cloud; +import org.simantics.sysdyn.modelImport.model.Dependency; +import org.simantics.sysdyn.modelImport.model.Flow; +import org.simantics.sysdyn.modelImport.model.Model; +import org.simantics.sysdyn.modelImport.model.Stock; +import org.simantics.sysdyn.modelImport.model.Valve; +import org.simantics.sysdyn.modelImport.model.Variable; +import org.simantics.sysdyn.modelImport.model.expression.EnumerationExpression; +import org.simantics.sysdyn.modelImport.model.expression.Expression; +import org.simantics.sysdyn.modelImport.model.expression.IntegralExpression; +import org.simantics.sysdyn.modelImport.model.expression.LookupExpression; +import org.simantics.sysdyn.modelImport.model.expression.NormalExpression; +import org.simantics.sysdyn.modelImport.model.support.Enumeration; +import org.simantics.sysdyn.xmile.expressionParser.XmileExpressionParser; +import org.simantics.sysdyn.xmile.schema.Dimensions; +import org.simantics.sysdyn.xmile.schema.Gf; +import org.simantics.sysdyn.xmile.schema.MinMaxType; +import org.simantics.sysdyn.xmile.schema.PointsType; +import org.simantics.sysdyn.xmile.schema.Xmile; +import org.simantics.sysdyn.xmile.schema.Dimensions.Dim; +import org.simantics.sysdyn.xmile.schema.Includes.Include; +import org.simantics.sysdyn.xmile.schema.ModelUnits.Unit; +import org.simantics.sysdyn.xmile.schema.ViewContentType.Flow.Pts.Pt; +import org.simantics.sysdyn.xmile.unitParser.XmileUnitParser; + +public class XmileParser implements IModelParser { + + /* + * TODO list: + * - submodels + * - figure out any possible problems with models without views + * - subscript indices should be expanded in array equations (not + * implemented yet in expression parser) + * - included files + * - macros + * - function implementations + */ + + private static final String EQUATION = "eqn"; + private static final String INFLOW = "inflow"; + private static final String OUTFLOW = "outflow"; + private static final String UNITS = "units"; + private static final String ELEMENT = "element"; + private static final String DOC = "doc"; + + private static final double DEFAULT_X = 1.0; + private static final double DEFAULT_Y = 1.0; + private static final double DEFAULT_ANGLE = 1.0; + + private Model model; + + private Map unitMap = new HashMap(); + + // TODO: list all options + private boolean arrays = true; + + @Override + public Model parse(File file) throws Exception { + // read the xml file + JAXBContext context = JAXBContext.newInstance("org.simantics.sysdyn.xmile.schema"); + Unmarshaller unmarshaller = context.createUnmarshaller(); + Xmile xmile = (Xmile)unmarshaller.unmarshal(file); + + // initialize the model representation (the name of the model is the + // name of the file unless a name has been specified in the header) + String name = XmileUtil.normalize(file.getName().replaceAll("\\.\\w+$", "")); + model = new Model(name); + + // parse the xmile document to populate the model representation with + // appropriate elements + parseDocument(xmile); + + // return the model representation + return model; + } + + private Model parseDocument(Xmile xmile) + throws Exception { + // note that this is very inefficient since the list is traversed + // several times but this should not matter as the list is not very + // long (and this solutions is much more readable than the alternative) + + List objs = xmile.getSimSpecsOrModelUnitsOrBehavior(); + + // the specification requires that the document must contain a header + // and at least one model. model units and dimensions should be parsed + // before the model(s). + + parseHeader(xmile.getHeader()); + + org.simantics.sysdyn.xmile.schema.SimSpecs specsObj = + getPossibleElement(org.simantics.sysdyn.xmile.schema.SimSpecs.class, objs); + if (specsObj != null) + parseSimSpecs(specsObj); + + org.simantics.sysdyn.xmile.schema.ModelUnits unitsObj = + getPossibleElement(org.simantics.sysdyn.xmile.schema.ModelUnits.class, objs); + if (unitsObj != null) + parseModelUnits(unitsObj); + + org.simantics.sysdyn.xmile.schema.Xmile.Dimensions dimensionsObj = + getPossibleElement(org.simantics.sysdyn.xmile.schema.Xmile.Dimensions.class, objs); + if (dimensionsObj != null) + parseDimensions(dimensionsObj); + + List modelObjs = + getElements(org.simantics.sysdyn.xmile.schema.Model.class, objs); + for (org.simantics.sysdyn.xmile.schema.Model modelObj : modelObjs) { + // TODO: skip submodels for now + if (modelObj.getName() == null) + parseModel(modelObj); + } + + // TODO: behaviour, style, data, macro + + return model; + } + + private void parseHeader(org.simantics.sysdyn.xmile.schema.Header header) + throws Exception { + String name = header.getName(); + if (name != null) { + // remove a possible file suffix from the model name + model.setName(XmileUtil.normalize(name.replaceAll("\\.\\w+$", ""))); + } + // handle includes + if (header.getIncludes() != null) { + for (Include include : header.getIncludes().getInclude()) { + parseInclude(include); + } + } + } + + private void parseInclude(Include include) { + System.err.println("INCLUDE"); + } + + private void parseSimSpecs(org.simantics.sysdyn.xmile.schema.SimSpecs specsObj) + throws Exception { + model.setStartTime(specsObj.getStart()); + model.setStopTime(specsObj.getStop()); + // the default value for time step is 1 + double step = 1; + if (specsObj.getDt() != null) + step = specsObj.getDt().getValue(); + model.setTimeStep(step); + // the default value for method is euler (and since it is the only + // thing we support there is no need to do anything here currently) + String method = specsObj.getMethod(); + String unit = specsObj.getTimeUnits(); + if (unit != null) + model.setTimeUnit(unit); + // according to the specification, pause interval can be currently + // ignored and since we only support simulation of the complete model + // the run attribute does not do anything + } + + private void parseModelUnits(org.simantics.sysdyn.xmile.schema.ModelUnits unitsObj) + throws Exception { + // first collect all "primary" units that do not have equations + // associated with them + for (Unit unit : unitsObj.getUnit()) { + if (unit.getEqn() != null) + continue; + String name = unit.getName(); + unitMap.put(name.toUpperCase(), name); + for (String alias : unit.getAlias()) + for (String a : alias.split(",")) + unitMap.put(a.toUpperCase(), name); + } + // then process all non-primary units so that the equations are + // normalized to only contain primary units + for (Unit unit : unitsObj.getUnit()) { + if (unit.getEqn() == null) + continue; + String name = unit.getName(); + String equation = XmileUnitParser.parse(unit.getEqn(), unitMap); + unitMap.put(name.toUpperCase(), equation); + for (String alias : unit.getAlias()) + for (String a : alias.split(",")) + unitMap.put(a.toUpperCase(), equation); + } + } + + private void parseDimensions(org.simantics.sysdyn.xmile.schema.Xmile.Dimensions dimensionsObj) + throws Exception { + for (org.simantics.sysdyn.xmile.schema.Xmile.Dimensions.Dim dim : dimensionsObj.getDim()) { + // each subscript has a name, and either a list of dimension names + // or a size attribute which defines the size of the subscript but + // not both. since SYSDYN only supports named array indices, we + // must create names for unnamed dimensions here. + String name = dim.getName(); + ArrayList values = new ArrayList(); + if (dim.getSize() != null) { + for (int i = 0; i < dim.getSize(); i++) { + values.add("index"+i); + } + } + else { + for (org.simantics.sysdyn.xmile.schema.Xmile.Dimensions.Dim.Elem elem : dim.getElem()) { + values.add(elem.getName()); + } + } + model.addEnumeration(new Enumeration(name, values)); + } + } + + private void parseModel(org.simantics.sysdyn.xmile.schema.Model modelObj) + throws Exception { + // TODO: isee models do not follow the specification and + // list variables directly under the model without a separate + // variables tag. find out why and how to fix this + List vars = modelObj.getVariables().getStockOrFlowOrAuxiliary(); + + // auxiliaries and flows should be handled before stocks + + for (org.simantics.sysdyn.xmile.schema.Auxiliary auxObj : + getElements(org.simantics.sysdyn.xmile.schema.Auxiliary.class, vars)) { + model.addVariable(getAux(auxObj)); + } + + for (org.simantics.sysdyn.xmile.schema.Flow flowObj : + getElements(org.simantics.sysdyn.xmile.schema.Flow.class, vars)) { + model.addVariable(getFlow(flowObj)); + } + + for (org.simantics.sysdyn.xmile.schema.Stock stockObj : + getElements(org.simantics.sysdyn.xmile.schema.Stock.class, vars)) { + Stock stock = getStock(stockObj); + model.addVariable(stock); + + for (String in : getJAXBElements(String.class, INFLOW, stockObj.getEqnOrMathmlOrUnits())) { + Variable from = model.getVariable(XmileUtil.normalize(in)); + model.addConnection(new Flow(from, stock)); + } + for (String out : getJAXBElements(String.class, OUTFLOW, stockObj.getEqnOrMathmlOrUnits())) { + Variable to = model.getVariable(XmileUtil.normalize(out)); + model.addConnection(new Flow(stock, to)); + } + } + + // views are optional + if (modelObj.getViews() != null) { + for (org.simantics.sysdyn.xmile.schema.Views.View view : + getElements(org.simantics.sysdyn.xmile.schema.Views.View.class, modelObj.getViews().getStyleOrView())) { + // TODO: multiple views will probably break things + parseView(view); + } + } + + if (modelObj.getSimSpecs() != null) { + // these settings should override the global ones + } + } + + private enum VariableType { + STOCK, FLOW, AUX; + } + + private void parseView(org.simantics.sysdyn.xmile.schema.Views.View view) { + List objs = view.getStyleOrStockOrFlow(); + + for (org.simantics.sysdyn.xmile.schema.ViewContentType.Stock stockObj : + getElements(org.simantics.sysdyn.xmile.schema.ViewContentType.Stock.class, objs)) { + Stock stock = (Stock)model.getVariable(XmileUtil.normalize(stockObj.getName())); + + Double x = stockObj.getX(); + Double y = stockObj.getY(); + + stock.setX(x != null ? x : DEFAULT_X); + stock.setY(y != null ? y : DEFAULT_Y); + } + + for (org.simantics.sysdyn.xmile.schema.ViewContentType.Flow flowObj : + getElements(org.simantics.sysdyn.xmile.schema.ViewContentType.Flow.class, objs)) { + Valve valve = (Valve)model.getVariable(XmileUtil.normalize(flowObj.getName())); + + Double x = flowObj.getX(); + Double y = flowObj.getY(); + + valve.setX(x != null ? x : DEFAULT_X); + valve.setY(y != null ? y : DEFAULT_Y); + + List points = flowObj.getPts().getPt(); + + // xmile does not have clouds, so we need to add them here when necessary + if (model.getInFlows(valve).isEmpty()) { + Pt first = points.get(0); + Cloud cloud = new Cloud(new double[]{first.getX(), first.getY(), 0, 0}); + model.addSymbol(cloud); + model.addConnection(new Flow(cloud, valve)); + } + if (model.getOutFlows(valve).isEmpty()) { + Pt last = points.get(points.size()-1); + Cloud cloud = new Cloud(new double[]{last.getX(), last.getY(), 0, 0}); + model.addSymbol(cloud); + model.addConnection(new Flow(valve, cloud)); + } + } + + for (org.simantics.sysdyn.xmile.schema.ViewContentType.Aux auxObj : + getElements(org.simantics.sysdyn.xmile.schema.ViewContentType.Aux.class, objs)) { + Auxiliary aux = (Auxiliary)model.getVariable(XmileUtil.normalize(auxObj.getName())); + + Double x = auxObj.getX(); + Double y = auxObj.getY(); + + aux.setX(x != null ? x : DEFAULT_X); + aux.setY(y != null ? y : DEFAULT_Y); + } + + for (org.simantics.sysdyn.xmile.schema.ViewContentType.Connector connector : + getElements(org.simantics.sysdyn.xmile.schema.ViewContentType.Connector.class, objs)) { + + // why the 'from' variable is stored differently than the 'to' + // variable is not clear + String fromName = XmileUtil.normalize((String)connector.getFrom().getContent().get(0)); + String toName = XmileUtil.normalize(connector.getTo()); + + Variable from = model.getVariable(fromName); + Variable to = model.getVariable(toName); + + // angle is currently fixed + model.addConnection(new Dependency(from, to, true, false, DEFAULT_ANGLE)); + } + + // TODO: handle styles if necessary + } + + private Stock getStock(org.simantics.sysdyn.xmile.schema.Stock stockObj) + throws Exception { + List objs = stockObj.getEqnOrMathmlOrUnits(); + + Stock stock = new Stock(); + + stock.setName(XmileUtil.normalize(stockObj.getName())); + + String doc = getPossibleJAXBElement(String.class, DOC, objs); + if (doc != null) { + stock.setDescription(doc); + } + + // stock expression is constructed from in and out flows and initial + // value is obtained from the equation field + StringBuilder expression = new StringBuilder(); + for (String in : getJAXBElements(String.class, INFLOW, objs)) { + expression.append('+').append(XmileUtil.normalize(in)); + } + for (String out : getJAXBElements(String.class, OUTFLOW, objs)) { + expression.append('-').append(XmileUtil.normalize(out)); + } + + Expression expr = parseExpression(objs, VariableType.STOCK, expression.toString()); + stock.setExpression(expr); + + String units = getPossibleJAXBElement(String.class, UNITS, objs); + if (units != null) { + stock.setUnit(XmileUnitParser.parse(units, unitMap)); + } + + stock.setX(DEFAULT_X); + stock.setY(DEFAULT_Y); + + return stock; + } + + private Valve getFlow(org.simantics.sysdyn.xmile.schema.Flow flowObj) + throws Exception { + List objs = flowObj.getEqnOrMathmlOrUnits(); + + Valve valve = new Valve(); + + valve.setName(XmileUtil.normalize(flowObj.getName())); + + String doc = getPossibleJAXBElement(String.class, DOC, objs); + if (doc != null) { + valve.setDescription(doc); + } + + Expression expr = parseExpression(objs, VariableType.FLOW, null); + valve.setExpression(expr); + + String units = getPossibleJAXBElement(String.class, UNITS, objs); + if (units != null) { + valve.setUnit(XmileUnitParser.parse(units, unitMap)); + } + + valve.setX(DEFAULT_X); + valve.setY(DEFAULT_Y); + + return valve; + } + + private Auxiliary getAux(org.simantics.sysdyn.xmile.schema.Auxiliary auxObj) + throws Exception { + List objs = auxObj.getEqnOrMathmlOrUnits(); + + Auxiliary aux = new Auxiliary(); + + aux.setName(XmileUtil.normalize(auxObj.getName())); + + String doc = getPossibleJAXBElement(String.class, DOC, objs); + if (doc != null) { + aux.setDescription(doc); + } + + Expression expr = parseExpression(objs, VariableType.AUX, null); + aux.setExpression(expr); + + String units = getPossibleJAXBElement(String.class, UNITS, objs); + if (units != null) { + aux.setUnit(XmileUnitParser.parse(units, unitMap)); + } + + aux.setX(DEFAULT_X); + aux.setY(DEFAULT_Y); + + return aux; + } + + private Expression parseExpression(List objs, VariableType type, String additional) + throws Exception { + // figure out the correct expression from the provided data + String equation = getPossibleJAXBElement(String.class, EQUATION, objs); + Gf gf = getPossibleElement(Gf.class, objs); + Dimensions dimensions = getPossibleElement(Dimensions.class, objs); + + if (dimensions != null) { + // an array equation + List enums = new ArrayList(); + for (Dim dim : dimensions.getDim()) { + enums.add(model.getEnumeration(dim.getName())); + } + + EnumerationExpression expr = new EnumerationExpression(enums); + + // array equations are either apply-to-all with one global equation, + // or non-apply-to-all with individual equations for each element. + // graphical functions are somewhat of an exception since they can + // define different graphical functions for each element even if + // they all use the same global equation. + + // the element type is different for each variable type for some + // inexplicable reason so this is pretty ugly + Class elementType; + switch (type) { + case STOCK: + elementType = org.simantics.sysdyn.xmile.schema.Stock.Element.class; + break; + case FLOW: + elementType = org.simantics.sysdyn.xmile.schema.Flow.Element.class; + break; + case AUX: + elementType = org.simantics.sysdyn.xmile.schema.Auxiliary.Element.class; + break; + default: + // should not happen + throw new Exception("unrecognized variable type "+type); + } + + List elements = getJAXBElements(elementType, ELEMENT, objs); + if (!elements.isEmpty()) { + // non-apply-to-all + for (Object element : elements) { + List elementObjs; + String subscript; + switch (type) { + case STOCK: + org.simantics.sysdyn.xmile.schema.Stock.Element stockElement = + (org.simantics.sysdyn.xmile.schema.Stock.Element)element; + elementObjs = stockElement.getEqnOrMathmlOrGf(); + subscript = stockElement.getSubscript(); + break; + case FLOW: + org.simantics.sysdyn.xmile.schema.Flow.Element flowElement = + (org.simantics.sysdyn.xmile.schema.Flow.Element)element; + elementObjs = flowElement.getEqnOrMathmlOrGf(); + subscript = flowElement.getSubscript(); + break; + case AUX: + org.simantics.sysdyn.xmile.schema.Auxiliary.Element auxElement = + (org.simantics.sysdyn.xmile.schema.Auxiliary.Element)element; + elementObjs = auxElement.getEqnOrMathmlOrGf(); + subscript = auxElement.getSubscript(); + break; + default: + // should not happen + throw new Exception("unrecognized variable type "+type); + } + + String elementEquation = getPossibleJAXBElement(String.class, EQUATION, elementObjs); + Gf elementGf = getPossibleElement(Gf.class, elementObjs); + String[] elementIndices = subscript.split(","); + + // replace integer indices with appropriate names + for (int i = 0; i < elementIndices.length; i++) { + try { + int index = Integer.parseInt(elementIndices[i]); + elementIndices[i] = enums.get(i).getValues().get(index-1); + } + catch (NumberFormatException e) { + // nothing to do here + } + } + + // handle non-apply-to-all graphical functions with common equation + if (elementEquation == null) { + if (elementGf != null) { + elementEquation = equation; + } + else { + throw new Exception("non-graphical non-apply-to-all array element equation not found"); + } + } + + // TODO: should replace subscript indices in the equation here + elementEquation = XmileExpressionParser.parse(elementEquation, null); + + // it is assumed that stock expressions have a common integral + // even if they are defined in terms of array equations. the + // specification is not explicitly clear on whether this is the + // case, but it would make sense. + + expr.addExpression( + getExpression(elementEquation, elementGf, type, additional), + elementIndices); + } + } + else { + // apply-to-all + EnumIterator iter = new EnumIterator(enums); + while (iter.hasNext()) { + String[] elementIndices = iter.next(); + // TODO: should replace subscript indices in the equation here + String elementEquation = XmileExpressionParser.parse(equation, null); + expr.addExpression( + getExpression(elementEquation, gf, type, additional), + elementIndices); + } + } + + return expr; + } + else { + // a normal equation + equation = XmileExpressionParser.parse(equation, null); + return getExpression(equation, gf, type, additional); + } + } + + private Expression getExpression(String equation, Gf gf, VariableType type, String additional) + throws Exception { + // TODO: should also handle delay expressions somehow + if (equation == null) throw new Exception("no equation for "+type+" variable"); + switch (type) { + case STOCK: + // can stocks even have graphical functions? + if (additional == null) throw new Exception("no integral for stock"); + return new IntegralExpression(additional, equation); + case FLOW: + case AUX: + if (gf != null) { + return getLookupExpression(equation, gf); + } + else { + return new NormalExpression(equation); + } + default: + // should not happen + throw new Exception("unrecognized variable type "+type); + } + } + + private LookupExpression getLookupExpression(String equation, Gf gf) { + // graphical functions are defined either with an x-axis scale and + // a set of y-axis values, or as a set of x and y pairs. as sysdyn + // only recognizes x and y pairs, the scale must be expanded into + // points manually in the case the points are not provided. + + PointsType xPts = gf.getXpts(); + PointsType yPts = gf.getYpts(); + MinMaxType xScale = gf.getXscale(); + MinMaxType yScale = gf.getYscale(); + + double[] y = getPointsArray(yPts); + double[] x = xPts != null ? + getPointsArray(xPts) : getPointsArray(xScale, y.length); + + double[] points = new double[y.length * 2]; + for (int i = 0; i < y.length; i++) { + points[2*i] = x[i]; + points[2*i+1] = y[i]; + } + + double xMin = xScale != null ? xScale.getMin() : getMinValue(x); + double yMin = yScale != null ? yScale.getMin() : getMinValue(y); + double xMax = xScale != null ? xScale.getMax() : getMaxValue(x); + double yMax = yScale != null ? yScale.getMax() : getMaxValue(y); + + return new LookupExpression(equation, xMin, yMin, xMax, yMax, points); + } + + private double[] getPointsArray(PointsType points) { + String[] tmp = points.getValue().split(points.getSep()); + double[] res = new double[tmp.length]; + for (int i = 0; i < tmp.length; i++) { + res[i] = Double.parseDouble(tmp[i]); + } + return res; + } + + private double[] getPointsArray(MinMaxType scale, int size) { + double[] res = new double[size]; + double min = scale.getMin(); + double max = scale.getMax(); + double interval = (max - min) / (size - 1); + for (int i = 0; i < size; i++) { + res[i] = min + i*interval; + } + return res; + } + + private double getMaxValue(double[] values) { + double max = values[0]; + for (double value : values) { + if (value > max) { + max = value; + } + } + return max; + } + + private double getMinValue(double[] values) { + double min = values[0]; + for (double value : values) { + if (value < min) { + min = value; + } + } + return min; + } + + /** + * Return the first element of the given type from the given list of + * objects. + * + * @param type + * @param objects + * @return the element or null if none could be found + */ + private T getPossibleElement(Class type, List objects) { + for (Object obj : objects) { + if (obj.getClass().equals(type)) { + return (T)obj; + } + } + return null; + } + + /** + * Return all the elements of the given type from the given list of + * objects. + * + * @param type + * @param objects + * @return a list of elements (empty if none could be found) + */ + private List getElements(Class type, List objects) { + List elements = new ArrayList(); + for (Object obj : objects) { + if (obj.getClass().equals(type)) { + elements.add((T)obj); + } + } + return elements; + } + + private T getPossibleJAXBElement(Class type, String name, List objects) { + for (JAXBElement je : getElements(JAXBElement.class, objects)) { + if (je.getName().getLocalPart().equals(name) && je.getDeclaredType().equals(type)) { + return (T)je.getValue(); + } + } + return null; + } + + private List getJAXBElements(Class type, String name, List objects) { + List elements = new ArrayList(); + for (JAXBElement je : getElements(JAXBElement.class, objects)) { + if (je.getName().getLocalPart().equals(name) && je.getDeclaredType().equals(type)) { + elements.add((T)je.getValue()); + } + } + return elements; + } + + private class EnumIterator implements Iterator { + + private List enums; + private int[] indices; + private boolean done; + + public EnumIterator(List enums) { + this.enums = enums; + this.indices = new int[enums.size()]; + this.done = false; + for (Enumeration e : enums) { + if (e.getValues().size() == 0) { + // can not iterate if some of the enums are empty + this.done = true; + } + } + } + @Override + public boolean hasNext() { + return !done; + } + @Override + public String[] next() { + // return the list of indices for the current element + String[] result = new String[indices.length]; + for (int i = 0; i < indices.length; i++) { + result[i] = enums.get(i).getValues().get(indices[i]); + } + // update the indices for the next element + boolean next = false; + for (int i = indices.length - 1; i >= 0; i--) { + indices[i] = (indices[i] + 1) % enums.get(i).getValues().size(); + if (indices[i] > 0) { + next = true; + break; + } + } + // set the done flag if the indices run out + done = !next; + return result; + } + @Override + public void remove() { + + } + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileUtil.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileUtil.java new file mode 100644 index 00000000..c1a52bd6 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/XmileUtil.java @@ -0,0 +1,192 @@ +package org.simantics.sysdyn.xmile; + +import java.io.StringReader; +import java.util.ArrayList; +import java.util.Collections; +import java.util.Comparator; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import org.simantics.sysdyn.expressionParser.ExpressionParser; +import org.simantics.sysdyn.expressionParser.ParseException; +import org.simantics.sysdyn.expressionParser.Token; +import org.simantics.utils.datastructures.Pair; + +public class XmileUtil { + + public static final String FUNCTION_PREFIX = "XMILE."; + + public static final String TIME_PARAM = ",time"; + public static final String TIME_STEP_PARAM = ",timeStep"; + + private static final Map keywords; + private static final List time_functions; + private static final List time_step_functions; + + public static final double SCALE_X_TO_S = 1.0; + public static final double SCALE_S_TO_X = 1.0 / SCALE_X_TO_S; + + static { + keywords = new HashMap(); + keywords.put("TIME", "time"); + keywords.put("DT", "timeStep"); + keywords.put("STARTTIME", "startTime"); + keywords.put("STOPTIME", "stopTime"); + + // the following lists are used to add extra parameters to Xmile + // functions that need them because functions stored in a separate + // library cannot refer to model parameters directly (these can be + // removed if this behavior is ever changed) + + time_functions = new ArrayList(); + time_functions.add("PULSE"); + time_functions.add("RAMP"); + time_functions.add("STEP"); + + time_step_functions = new ArrayList(); + time_step_functions.add("PULSE"); + } + + /** + * Normalize a variable name + * + * XMILE variable names are case-insensitive, can contain numbers and + * are whitespace-insensitive in terms of whitespace characters ' ', + * '_' and '\n'. Sysdyn variable names can not contain (lone) numbers or + * underscores, and are recommended to begin with a capital letter + * to avoid conflicts with reserved keywords. This method translates + * the given variable name into a format that is compatible with both + * XMILE and Sysdyn. + * + * @param variable + * @return + */ + public static String normalize(String variable) { + if (keywords.get(variable) != null) { + return keywords.get(variable); + } + + StringBuilder result = new StringBuilder(); + + String[] parts = variable.split("( |_|\\\\n)+"); + + for (String part : parts) { + if (result.length() > 0) { + // replace any whitespace with a single space + result.append(' '); + } + // preface numbers with 'n' + if (part.matches("\\d.*")) { + part = "n" + part; + } + // capitalize each part + result.append(part.substring(0, 1).toUpperCase()).append(part.substring(1)); + } + + return result.toString(); + } + + public static String modelicaVarToXmile(String variable) { + // very ugly, use another map + if (keywords.values().contains(variable)) { + for (String key : keywords.keySet()) { + if (keywords.get(key).equals(variable)) { + return key; + } + } + } + + // xmile is not happy with spaces in variable names so handle it here + return variable.replace(' ', '_'); + } + + public static String modelicaExprToXmile(String expression) throws Exception { + ExpressionParser parser = new ExpressionParser(new StringReader(expression)); + + try { + parser.expr(); + } + catch (ParseException e) { + throw new Exception("could not parse expression "+expression, e); + } + + // rename variable references and remove prefixes from functions + + // in order to rewrite the equation accurately (without modifications + // to the parser which would be easier) a list of tokens and the + // respective replacements must first be collected so the tokens can + // be replaced in the correct order. a simple string replace is not + // sufficient here as the tokens can have common substrings. + + List> tokens = new ArrayList>(); + + HashMap> variables = parser.getReferences(); + + for (String variable : variables.keySet()) { + for (Token occurrence : variables.get(variable)) { + // xmile is not happy with spaces in variable names so handle + // it here + tokens.add(Pair.make(occurrence, modelicaVarToXmile(variable))); + } + } + + Collections.sort(tokens, new Comparator>() { + @Override + public int compare(Pair o1, Pair o2) { + // assume that the tokens do not overlap + if (o1.first.endColumn < o2.first.beginColumn) + return -1; + else + return 1; + } + }); + + StringBuilder expr = new StringBuilder(); + + int last = 0; + for (Pair token : tokens) { + expr.append(expression.substring(last, token.first.beginColumn-1)); + expr.append(token.second); + last = token.first.endColumn; + } + expr.append(expression.substring(last)); + + // TODO: note that this is extremely ugly, there must be a better + // way to handle xmile functions + String result = expr.toString(); + for (String function : parser.getFunctionCallReferences().keySet()) { + if (!function.startsWith(FUNCTION_PREFIX)) { + // non-xmile functions are not handled currently + throw new Exception("non-xmile function "+function+" encountered"); + } + else { + String replacement = function.substring(FUNCTION_PREFIX.length()); + result = result.replaceAll(function, replacement); + if (needsTime(replacement)) { + result = result.replaceAll(TIME_PARAM, ""); + } + if (needsTimeStep(replacement)) { + result = result.replaceAll(TIME_STEP_PARAM, ""); + } + } + } + + return result; + } + + public static String getSysdynFunction(String name) { + return name; + } + + public static boolean needsTime(String function) { + return time_functions.contains(function); + } + + public static boolean needsTimeStep(String function) { + return time_step_functions.contains(function); + } + + + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/ParseException.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/ParseException.java new file mode 100644 index 00000000..1ac469c1 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/ParseException.java @@ -0,0 +1,187 @@ +/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 6.0 */ +/* JavaCCOptions:KEEP_LINE_COL=null */ +package org.simantics.sysdyn.xmile.expressionParser; + +/** + * This exception is thrown when parse errors are encountered. + * You can explicitly create objects of this exception type by + * calling the method generateParseException in the generated + * parser. + * + * You can modify this class to customize your error reporting + * mechanisms so long as you retain the public fields. + */ +public class ParseException extends Exception { + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /** + * This constructor is used by the method "generateParseException" + * in the generated parser. Calling this constructor generates + * a new object of this type with the fields "currentToken", + * "expectedTokenSequences", and "tokenImage" set. + */ + public ParseException(Token currentTokenVal, + int[][] expectedTokenSequencesVal, + String[] tokenImageVal + ) + { + super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); + currentToken = currentTokenVal; + expectedTokenSequences = expectedTokenSequencesVal; + tokenImage = tokenImageVal; + } + + /** + * The following constructors are for use by you for whatever + * purpose you can think of. Constructing the exception in this + * manner makes the exception behave in the normal way - i.e., as + * documented in the class "Throwable". The fields "errorToken", + * "expectedTokenSequences", and "tokenImage" do not contain + * relevant information. The JavaCC generated code does not use + * these constructors. + */ + + public ParseException() { + super(); + } + + /** Constructor with message. */ + public ParseException(String message) { + super(message); + } + + + /** + * This is the last token that has been consumed successfully. If + * this object has been created due to a parse error, the token + * followng this token will (therefore) be the first error token. + */ + public Token currentToken; + + /** + * Each entry in this array is an array of integers. Each array + * of integers represents a sequence of tokens (by their ordinal + * values) that is expected at this point of the parse. + */ + public int[][] expectedTokenSequences; + + /** + * This is a reference to the "tokenImage" array of the generated + * parser within which the parse error occurred. This array is + * defined in the generated ...Constants interface. + */ + public String[] tokenImage; + + /** + * It uses "currentToken" and "expectedTokenSequences" to generate a parse + * error message and returns it. If this object has been created + * due to a parse error, and you do not catch it (it gets thrown + * from the parser) the correct error message + * gets displayed. + */ + private static String initialise(Token currentToken, + int[][] expectedTokenSequences, + String[] tokenImage) { + String eol = System.getProperty("line.separator", "\n"); + StringBuffer expected = new StringBuffer(); + int maxSize = 0; + for (int i = 0; i < expectedTokenSequences.length; i++) { + if (maxSize < expectedTokenSequences[i].length) { + maxSize = expectedTokenSequences[i].length; + } + for (int j = 0; j < expectedTokenSequences[i].length; j++) { + expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' '); + } + if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { + expected.append("..."); + } + expected.append(eol).append(" "); + } + String retval = "Encountered \""; + Token tok = currentToken.next; + for (int i = 0; i < maxSize; i++) { + if (i != 0) retval += " "; + if (tok.kind == 0) { + retval += tokenImage[0]; + break; + } + retval += " " + tokenImage[tok.kind]; + retval += " \""; + retval += add_escapes(tok.image); + retval += " \""; + tok = tok.next; + } + retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn; + retval += "." + eol; + if (expectedTokenSequences.length == 1) { + retval += "Was expecting:" + eol + " "; + } else { + retval += "Was expecting one of:" + eol + " "; + } + retval += expected.toString(); + return retval; + } + + /** + * The end of line string for this machine. + */ + protected String eol = System.getProperty("line.separator", "\n"); + + /** + * Used to convert raw characters to their escaped version + * when these raw version cannot be used as part of an ASCII + * string literal. + */ + static String add_escapes(String str) { + StringBuffer retval = new StringBuffer(); + char ch; + for (int i = 0; i < str.length(); i++) { + switch (str.charAt(i)) + { + case 0 : + continue; + case '\b': + retval.append("\\b"); + continue; + case '\t': + retval.append("\\t"); + continue; + case '\n': + retval.append("\\n"); + continue; + case '\f': + retval.append("\\f"); + continue; + case '\r': + retval.append("\\r"); + continue; + case '\"': + retval.append("\\\""); + continue; + case '\'': + retval.append("\\\'"); + continue; + case '\\': + retval.append("\\\\"); + continue; + default: + if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { + String s = "0000" + Integer.toString(ch, 16); + retval.append("\\u" + s.substring(s.length() - 4, s.length())); + } else { + retval.append(ch); + } + continue; + } + } + return retval.toString(); + } + +} +/* JavaCC - OriginalChecksum=c302e557875f7c68c2a1e8870feafb03 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/SimpleCharStream.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/SimpleCharStream.java new file mode 100644 index 00000000..841ccf52 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/SimpleCharStream.java @@ -0,0 +1,474 @@ +/* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 6.0 */ +/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ +package org.simantics.sysdyn.xmile.expressionParser; + +/** + * An implementation of interface CharStream, where the stream is assumed to + * contain only ASCII characters (without unicode processing). + */ + +public class SimpleCharStream +{ +/** Whether parser is static. */ + public static final boolean staticFlag = false; + int bufsize; + int available; + int tokenBegin; +/** Position in buffer. */ + public int bufpos = -1; + protected int bufline[]; + protected int bufcolumn[]; + + protected int column = 0; + protected int line = 1; + + protected boolean prevCharIsCR = false; + protected boolean prevCharIsLF = false; + + protected java.io.Reader inputStream; + + protected char[] buffer; + protected int maxNextCharInd = 0; + protected int inBuf = 0; + protected int tabSize = 8; + protected boolean trackLineColumn = true; + + public void setTabSize(int i) { tabSize = i; } + public int getTabSize() { return tabSize; } + + + protected void ExpandBuff(boolean wrapAround) + { + char[] newbuffer = new char[bufsize + 2048]; + int newbufline[] = new int[bufsize + 2048]; + int newbufcolumn[] = new int[bufsize + 2048]; + + try + { + if (wrapAround) + { + System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); + System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); + buffer = newbuffer; + + System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); + System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); + bufline = newbufline; + + System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); + System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); + bufcolumn = newbufcolumn; + + maxNextCharInd = (bufpos += (bufsize - tokenBegin)); + } + else + { + System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); + buffer = newbuffer; + + System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); + bufline = newbufline; + + System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); + bufcolumn = newbufcolumn; + + maxNextCharInd = (bufpos -= tokenBegin); + } + } + catch (Throwable t) + { + throw new Error(t.getMessage()); + } + + + bufsize += 2048; + available = bufsize; + tokenBegin = 0; + } + + protected void FillBuff() throws java.io.IOException + { + if (maxNextCharInd == available) + { + if (available == bufsize) + { + if (tokenBegin > 2048) + { + bufpos = maxNextCharInd = 0; + available = tokenBegin; + } + else if (tokenBegin < 0) + bufpos = maxNextCharInd = 0; + else + ExpandBuff(false); + } + else if (available > tokenBegin) + available = bufsize; + else if ((tokenBegin - available) < 2048) + ExpandBuff(true); + else + available = tokenBegin; + } + + int i; + try { + if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) + { + inputStream.close(); + throw new java.io.IOException(); + } + else + maxNextCharInd += i; + return; + } + catch(java.io.IOException e) { + --bufpos; + backup(0); + if (tokenBegin == -1) + tokenBegin = bufpos; + throw e; + } + } + +/** Start. */ + public char BeginToken() throws java.io.IOException + { + tokenBegin = -1; + char c = readChar(); + tokenBegin = bufpos; + + return c; + } + + protected void UpdateLineColumn(char c) + { + column++; + + if (prevCharIsLF) + { + prevCharIsLF = false; + line += (column = 1); + } + else if (prevCharIsCR) + { + prevCharIsCR = false; + if (c == '\n') + { + prevCharIsLF = true; + } + else + line += (column = 1); + } + + switch (c) + { + case '\r' : + prevCharIsCR = true; + break; + case '\n' : + prevCharIsLF = true; + break; + case '\t' : + column--; + column += (tabSize - (column % tabSize)); + break; + default : + break; + } + + bufline[bufpos] = line; + bufcolumn[bufpos] = column; + } + +/** Read a character. */ + public char readChar() throws java.io.IOException + { + if (inBuf > 0) + { + --inBuf; + + if (++bufpos == bufsize) + bufpos = 0; + + return buffer[bufpos]; + } + + if (++bufpos >= maxNextCharInd) + FillBuff(); + + char c = buffer[bufpos]; + + UpdateLineColumn(c); + return c; + } + + @Deprecated + /** + * @deprecated + * @see #getEndColumn + */ + + public int getColumn() { + return bufcolumn[bufpos]; + } + + @Deprecated + /** + * @deprecated + * @see #getEndLine + */ + + public int getLine() { + return bufline[bufpos]; + } + + /** Get token end column number. */ + public int getEndColumn() { + return bufcolumn[bufpos]; + } + + /** Get token end line number. */ + public int getEndLine() { + return bufline[bufpos]; + } + + /** Get token beginning column number. */ + public int getBeginColumn() { + return bufcolumn[tokenBegin]; + } + + /** Get token beginning line number. */ + public int getBeginLine() { + return bufline[tokenBegin]; + } + +/** Backup a number of characters. */ + public void backup(int amount) { + + inBuf += amount; + if ((bufpos -= amount) < 0) + bufpos += bufsize; + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream, int startline, + int startcolumn, int buffersize) + { + inputStream = dstream; + line = startline; + column = startcolumn - 1; + + available = bufsize = buffersize; + buffer = new char[buffersize]; + bufline = new int[buffersize]; + bufcolumn = new int[buffersize]; + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream, int startline, + int startcolumn) + { + this(dstream, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream) + { + this(dstream, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream, int startline, + int startcolumn, int buffersize) + { + inputStream = dstream; + line = startline; + column = startcolumn - 1; + + if (buffer == null || buffersize != buffer.length) + { + available = bufsize = buffersize; + buffer = new char[buffersize]; + bufline = new int[buffersize]; + bufcolumn = new int[buffersize]; + } + prevCharIsLF = prevCharIsCR = false; + tokenBegin = inBuf = maxNextCharInd = 0; + bufpos = -1; + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream, int startline, + int startcolumn) + { + ReInit(dstream, startline, startcolumn, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream) + { + ReInit(dstream, 1, 1, 4096); + } + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, + int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException + { + this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, int startline, + int startcolumn, int buffersize) + { + this(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, + int startcolumn) throws java.io.UnsupportedEncodingException + { + this(dstream, encoding, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, int startline, + int startcolumn) + { + this(dstream, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException + { + this(dstream, encoding, 1, 1, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream) + { + this(dstream, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding, int startline, + int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException + { + ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, int startline, + int startcolumn, int buffersize) + { + ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException + { + ReInit(dstream, encoding, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream) + { + ReInit(dstream, 1, 1, 4096); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding, int startline, + int startcolumn) throws java.io.UnsupportedEncodingException + { + ReInit(dstream, encoding, startline, startcolumn, 4096); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, int startline, + int startcolumn) + { + ReInit(dstream, startline, startcolumn, 4096); + } + /** Get token literal value. */ + public String GetImage() + { + if (bufpos >= tokenBegin) + return new String(buffer, tokenBegin, bufpos - tokenBegin + 1); + else + return new String(buffer, tokenBegin, bufsize - tokenBegin) + + new String(buffer, 0, bufpos + 1); + } + + /** Get the suffix. */ + public char[] GetSuffix(int len) + { + char[] ret = new char[len]; + + if ((bufpos + 1) >= len) + System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); + else + { + System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, + len - bufpos - 1); + System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); + } + + return ret; + } + + /** Reset buffer when finished. */ + public void Done() + { + buffer = null; + bufline = null; + bufcolumn = null; + } + + /** + * Method to adjust line and column numbers for the start of a token. + */ + public void adjustBeginLineColumn(int newLine, int newCol) + { + int start = tokenBegin; + int len; + + if (bufpos >= tokenBegin) + { + len = bufpos - tokenBegin + inBuf + 1; + } + else + { + len = bufsize - tokenBegin + bufpos + 1 + inBuf; + } + + int i = 0, j = 0, k = 0; + int nextColDiff = 0, columnDiff = 0; + + while (i < len && bufline[j = start % bufsize] == bufline[k = ++start % bufsize]) + { + bufline[j] = newLine; + nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j]; + bufcolumn[j] = newCol + columnDiff; + columnDiff = nextColDiff; + i++; + } + + if (i < len) + { + bufline[j] = newLine++; + bufcolumn[j] = newCol + columnDiff; + + while (i++ < len) + { + if (bufline[j = start % bufsize] != bufline[++start % bufsize]) + bufline[j] = newLine++; + else + bufline[j] = newLine; + } + } + + line = bufline[j]; + column = bufcolumn[j]; + } + + boolean getTrackLineColumn() { return trackLineColumn; } + void setTrackLineColumn(boolean tlc) { trackLineColumn = tlc; } +} +/* JavaCC - OriginalChecksum=1814a4e5744c140567d0a9c996674b08 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/Token.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/Token.java new file mode 100644 index 00000000..1b2b2a38 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/Token.java @@ -0,0 +1,131 @@ +/* Generated By:JavaCC: Do not edit this line. Token.java Version 6.0 */ +/* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ +package org.simantics.sysdyn.xmile.expressionParser; + +/** + * Describes the input token stream. + */ + +public class Token implements java.io.Serializable { + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /** + * An integer that describes the kind of this token. This numbering + * system is determined by JavaCCParser, and a table of these numbers is + * stored in the file ...Constants.java. + */ + public int kind; + + /** The line number of the first character of this Token. */ + public int beginLine; + /** The column number of the first character of this Token. */ + public int beginColumn; + /** The line number of the last character of this Token. */ + public int endLine; + /** The column number of the last character of this Token. */ + public int endColumn; + + /** + * The string image of the token. + */ + public String image; + + /** + * A reference to the next regular (non-special) token from the input + * stream. If this is the last token from the input stream, or if the + * token manager has not read tokens beyond this one, this field is + * set to null. This is true only if this token is also a regular + * token. Otherwise, see below for a description of the contents of + * this field. + */ + public Token next; + + /** + * This field is used to access special tokens that occur prior to this + * token, but after the immediately preceding regular (non-special) token. + * If there are no such special tokens, this field is set to null. + * When there are more than one such special token, this field refers + * to the last of these special tokens, which in turn refers to the next + * previous special token through its specialToken field, and so on + * until the first special token (whose specialToken field is null). + * The next fields of special tokens refer to other special tokens that + * immediately follow it (without an intervening regular token). If there + * is no such token, this field is null. + */ + public Token specialToken; + + /** + * An optional attribute value of the Token. + * Tokens which are not used as syntactic sugar will often contain + * meaningful values that will be used later on by the compiler or + * interpreter. This attribute value is often different from the image. + * Any subclass of Token that actually wants to return a non-null value can + * override this method as appropriate. + */ + public Object getValue() { + return null; + } + + /** + * No-argument constructor + */ + public Token() {} + + /** + * Constructs a new token for the specified Image. + */ + public Token(int kind) + { + this(kind, null); + } + + /** + * Constructs a new token for the specified Image and Kind. + */ + public Token(int kind, String image) + { + this.kind = kind; + this.image = image; + } + + /** + * Returns the image. + */ + public String toString() + { + return image; + } + + /** + * Returns a new Token object, by default. However, if you want, you + * can create and return subclass objects based on the value of ofKind. + * Simply add the cases to the switch for all those special cases. + * For example, if you have a subclass of Token called IDToken that + * you want to create if ofKind is ID, simply add something like : + * + * case MyParserConstants.ID : return new IDToken(ofKind, image); + * + * to the following switch statement. Then you can cast matchedToken + * variable to the appropriate type and use sit in your lexical actions. + */ + public static Token newToken(int ofKind, String image) + { + switch(ofKind) + { + default : return new Token(ofKind, image); + } + } + + public static Token newToken(int ofKind) + { + return newToken(ofKind, null); + } + +} +/* JavaCC - OriginalChecksum=7f962e2ea7cda01cd7fb9ab66c242719 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/TokenMgrError.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/TokenMgrError.java new file mode 100644 index 00000000..c3395e18 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/TokenMgrError.java @@ -0,0 +1,147 @@ +/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 6.0 */ +/* JavaCCOptions: */ +package org.simantics.sysdyn.xmile.expressionParser; + +/** Token Manager Error. */ +public class TokenMgrError extends Error +{ + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /* + * Ordinals for various reasons why an Error of this type can be thrown. + */ + + /** + * Lexical error occurred. + */ + static final int LEXICAL_ERROR = 0; + + /** + * An attempt was made to create a second instance of a static token manager. + */ + static final int STATIC_LEXER_ERROR = 1; + + /** + * Tried to change to an invalid lexical state. + */ + static final int INVALID_LEXICAL_STATE = 2; + + /** + * Detected (and bailed out of) an infinite loop in the token manager. + */ + static final int LOOP_DETECTED = 3; + + /** + * Indicates the reason why the exception is thrown. It will have + * one of the above 4 values. + */ + int errorCode; + + /** + * Replaces unprintable characters by their escaped (or unicode escaped) + * equivalents in the given string + */ + protected static final String addEscapes(String str) { + StringBuffer retval = new StringBuffer(); + char ch; + for (int i = 0; i < str.length(); i++) { + switch (str.charAt(i)) + { + case 0 : + continue; + case '\b': + retval.append("\\b"); + continue; + case '\t': + retval.append("\\t"); + continue; + case '\n': + retval.append("\\n"); + continue; + case '\f': + retval.append("\\f"); + continue; + case '\r': + retval.append("\\r"); + continue; + case '\"': + retval.append("\\\""); + continue; + case '\'': + retval.append("\\\'"); + continue; + case '\\': + retval.append("\\\\"); + continue; + default: + if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { + String s = "0000" + Integer.toString(ch, 16); + retval.append("\\u" + s.substring(s.length() - 4, s.length())); + } else { + retval.append(ch); + } + continue; + } + } + return retval.toString(); + } + + /** + * Returns a detailed message for the Error when it is thrown by the + * token manager to indicate a lexical error. + * Parameters : + * EOFSeen : indicates if EOF caused the lexical error + * curLexState : lexical state in which this error occurred + * errorLine : line number when the error occurred + * errorColumn : column number when the error occurred + * errorAfter : prefix that was seen before this error occurred + * curchar : the offending character + * Note: You can customize the lexical error message by modifying this method. + */ + protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { + return("Lexical error at line " + + errorLine + ", column " + + errorColumn + ". Encountered: " + + (EOFSeen ? " " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") + + "after : \"" + addEscapes(errorAfter) + "\""); + } + + /** + * You can also modify the body of this method to customize your error messages. + * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not + * of end-users concern, so you can return something like : + * + * "Internal Error : Please file a bug report .... " + * + * from this method for such cases in the release version of your parser. + */ + public String getMessage() { + return super.getMessage(); + } + + /* + * Constructors of various flavors follow. + */ + + /** No arg constructor. */ + public TokenMgrError() { + } + + /** Constructor with message and reason. */ + public TokenMgrError(String message, int reason) { + super(message); + errorCode = reason; + } + + /** Full Constructor. */ + public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) { + this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason); + } +} +/* JavaCC - OriginalChecksum=e375e7d573840d72f04069f13ef966e3 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.java new file mode 100644 index 00000000..f10c8248 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.java @@ -0,0 +1,590 @@ +/* XmileExpressionParser.java */ +/* Generated By:JavaCC: Do not edit this line. XmileExpressionParser.java */ +package org.simantics.sysdyn.xmile.expressionParser; + +import java.io.StringReader; +import java.lang.StringBuilder; +import java.util.ArrayList; +import java.util.Map; + +import org.simantics.sysdyn.xmile.XmileUtil; + +public class XmileExpressionParser implements XmileExpressionParserConstants { + private static final boolean DEBUG = true; + + public static String parse(String expression, Map subscripts) { + XmileExpressionParser parser = new XmileExpressionParser(new StringReader(expression)); + + try { + return parser.Expression(subscripts); + } + catch (ParseException e) { + e.printStackTrace(); + return null; + } + } + + final public String Expression(Map subscripts) throws ParseException {String e; + e = BinExpr(subscripts); + jj_consume_token(0); +{if ("" != null) return e;} + throw new Error("Missing return statement in function"); + } + + final public String BinOp() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case LOR:{ + jj_consume_token(LOR); +{if ("" != null) return "OR";} + break; + } + case LAND:{ + jj_consume_token(LAND); +{if ("" != null) return "AND";} + break; + } + case EQ:{ + jj_consume_token(EQ); +{if ("" != null) return "=";} + break; + } + case LT:{ + jj_consume_token(LT); +{if ("" != null) return "<";} + break; + } + case LEQ:{ + jj_consume_token(LEQ); +{if ("" != null) return "<=";} + break; + } + case GT:{ + jj_consume_token(GT); +{if ("" != null) return ">";} + break; + } + case GEQ:{ + jj_consume_token(GEQ); +{if ("" != null) return ">=";} + break; + } + case PLUS:{ + jj_consume_token(PLUS); +{if ("" != null) return "+";} + break; + } + case MINUS:{ + jj_consume_token(MINUS); +{if ("" != null) return "-";} + break; + } + case MULT:{ + jj_consume_token(MULT); +{if ("" != null) return "*";} + break; + } + case DIV:{ + jj_consume_token(DIV); +{if ("" != null) return "/";} + break; + } + case MOD:{ + jj_consume_token(MOD); +{if ("" != null) return "%";} + break; + } + default: + jj_la1[0] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } + + final public String BinExpr(Map subscripts) throws ParseException {String l = null; + String o = null; + String r = null; + l = UnExpr(subscripts); + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case LOR: + case LAND: + case EQ: + case LT: + case LEQ: + case GT: + case GEQ: + case PLUS: + case MINUS: + case MULT: + case DIV: + case MOD:{ + o = BinOp(); + r = BinExpr(subscripts); + break; + } + default: + jj_la1[1] = jj_gen; + ; + } +{if ("" != null) return o != null ? l + o + r : l;} + throw new Error("Missing return statement in function"); + } + + final public String UnOp() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case LNOT:{ + jj_consume_token(LNOT); +{if ("" != null) return "NOT";} + break; + } + case PLUS:{ + jj_consume_token(PLUS); +{if ("" != null) return "+";} + break; + } + case MINUS:{ + jj_consume_token(MINUS); +{if ("" != null) return "-";} + break; + } + default: + jj_la1[2] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } + + final public String UnExpr(Map subscripts) throws ParseException {String o = null; + String e = null; + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case LNOT: + case PLUS: + case MINUS:{ + o = UnOp(); + break; + } + default: + jj_la1[3] = jj_gen; + ; + } + e = Atom(subscripts); +{if ("" != null) return o != null ? o + e : e;} + throw new Error("Missing return statement in function"); + } + + final public String Atom(Map subscripts) throws ParseException {Token t = null; + String s = null; + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case NUMBER:{ + t = jj_consume_token(NUMBER); +{if ("" != null) return t.image;} + break; + } + default: + jj_la1[4] = jj_gen; + if (jj_2_1(2)) { + s = Function(subscripts); +{if ("" != null) return s;} + } else { + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case IDENT: + case QIDENT:{ + s = Variable(subscripts); +{if ("" != null) return s;} + break; + } + case LPAREN:{ + jj_consume_token(LPAREN); + s = BinExpr(subscripts); + jj_consume_token(RPAREN); +{if ("" != null) return "(" + s + ")";} + break; + } + default: + jj_la1[5] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + } + } + throw new Error("Missing return statement in function"); + } + + final public String Function(Map subscripts) throws ParseException {Token t = null; + String p = null; + ArrayList params = new ArrayList(); + t = jj_consume_token(IDENT); + jj_consume_token(LPAREN); + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case LNOT: + case PLUS: + case MINUS: + case LPAREN: + case NUMBER: + case IDENT: + case QIDENT:{ + p = BinExpr(subscripts); +params.add(p); + label_1: + while (true) { + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case COMMA:{ + ; + break; + } + default: + jj_la1[6] = jj_gen; + break label_1; + } + jj_consume_token(COMMA); + p = BinExpr(subscripts); +params.add(p); + } + break; + } + default: + jj_la1[7] = jj_gen; + ; + } + jj_consume_token(RPAREN); +String name = XmileUtil.getSysdynFunction(t.image); + StringBuilder f = new StringBuilder(); + f.append(XmileUtil.FUNCTION_PREFIX); + f.append(name); + f.append('('); + for (int i = 0; i < params.size(); i++) { + if (i > 0) f.append(','); + f.append(params.get(i)); + } + if (XmileUtil.needsTime(name)) { + f.append(XmileUtil.TIME_PARAM); + } + if (XmileUtil.needsTimeStep(name)) { + f.append(XmileUtil.TIME_STEP_PARAM); + } + f.append(')'); + {if ("" != null) return f.toString();} + throw new Error("Missing return statement in function"); + } + + final public String Variable(Map subscripts) throws ParseException {Token t = null; + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case IDENT:{ + t = jj_consume_token(IDENT); +{if ("" != null) return XmileUtil.normalize(t.image);} + break; + } + case QIDENT:{ + t = jj_consume_token(QIDENT); +{if ("" != null) return t.image;} + break; + } + default: + jj_la1[8] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } + + private boolean jj_2_1(int xla) + { + jj_la = xla; jj_lastpos = jj_scanpos = token; + try { return !jj_3_1(); } + catch(LookaheadSuccess ls) { return true; } + finally { jj_save(0, xla); } + } + + private boolean jj_3R_2() + { + if (jj_scan_token(IDENT)) return true; + if (jj_scan_token(LPAREN)) return true; + return false; + } + + private boolean jj_3_1() + { + if (jj_3R_2()) return true; + return false; + } + + /** Generated Token Manager. */ + public XmileExpressionParserTokenManager token_source; + SimpleCharStream jj_input_stream; + /** Current token. */ + public Token token; + /** Next token. */ + public Token jj_nt; + private int jj_ntk; + private Token jj_scanpos, jj_lastpos; + private int jj_la; + private int jj_gen; + final private int[] jj_la1 = new int[9]; + static private int[] jj_la1_0; + static { + jj_la1_init_0(); + } + private static void jj_la1_init_0() { + jj_la1_0 = new int[] {0x7fec,0x7fec,0xc10,0xc10,0x80000,0x310000,0x40000,0x390c10,0x300000,}; + } + final private JJCalls[] jj_2_rtns = new JJCalls[1]; + private boolean jj_rescan = false; + private int jj_gc = 0; + + /** Constructor with InputStream. */ + public XmileExpressionParser(java.io.InputStream stream) { + this(stream, null); + } + /** Constructor with InputStream and supplied encoding */ + public XmileExpressionParser(java.io.InputStream stream, String encoding) { + try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); } + token_source = new XmileExpressionParserTokenManager(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream stream) { + ReInit(stream, null); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream stream, String encoding) { + try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); } + token_source.ReInit(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Constructor. */ + public XmileExpressionParser(java.io.Reader stream) { + jj_input_stream = new SimpleCharStream(stream, 1, 1); + token_source = new XmileExpressionParserTokenManager(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader stream) { + jj_input_stream.ReInit(stream, 1, 1); + token_source.ReInit(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Constructor with generated Token Manager. */ + public XmileExpressionParser(XmileExpressionParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + /** Reinitialise. */ + public void ReInit(XmileExpressionParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 9; i++) jj_la1[i] = -1; + for (int i = 0; i < jj_2_rtns.length; i++) jj_2_rtns[i] = new JJCalls(); + } + + private Token jj_consume_token(int kind) throws ParseException { + Token oldToken; + if ((oldToken = token).next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + if (token.kind == kind) { + jj_gen++; + if (++jj_gc > 100) { + jj_gc = 0; + for (int i = 0; i < jj_2_rtns.length; i++) { + JJCalls c = jj_2_rtns[i]; + while (c != null) { + if (c.gen < jj_gen) c.first = null; + c = c.next; + } + } + } + return token; + } + token = oldToken; + jj_kind = kind; + throw generateParseException(); + } + + @SuppressWarnings("serial") + static private final class LookaheadSuccess extends java.lang.Error { } + final private LookaheadSuccess jj_ls = new LookaheadSuccess(); + private boolean jj_scan_token(int kind) { + if (jj_scanpos == jj_lastpos) { + jj_la--; + if (jj_scanpos.next == null) { + jj_lastpos = jj_scanpos = jj_scanpos.next = token_source.getNextToken(); + } else { + jj_lastpos = jj_scanpos = jj_scanpos.next; + } + } else { + jj_scanpos = jj_scanpos.next; + } + if (jj_rescan) { + int i = 0; Token tok = token; + while (tok != null && tok != jj_scanpos) { i++; tok = tok.next; } + if (tok != null) jj_add_error_token(kind, i); + } + if (jj_scanpos.kind != kind) return true; + if (jj_la == 0 && jj_scanpos == jj_lastpos) throw jj_ls; + return false; + } + + +/** Get the next Token. */ + final public Token getNextToken() { + if (token.next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + jj_gen++; + return token; + } + +/** Get the specific Token. */ + final public Token getToken(int index) { + Token t = token; + for (int i = 0; i < index; i++) { + if (t.next != null) t = t.next; + else t = t.next = token_source.getNextToken(); + } + return t; + } + + private int jj_ntk_f() { + if ((jj_nt=token.next) == null) + return (jj_ntk = (token.next=token_source.getNextToken()).kind); + else + return (jj_ntk = jj_nt.kind); + } + + private java.util.List jj_expentries = new java.util.ArrayList(); + private int[] jj_expentry; + private int jj_kind = -1; + private int[] jj_lasttokens = new int[100]; + private int jj_endpos; + + private void jj_add_error_token(int kind, int pos) { + if (pos >= 100) return; + if (pos == jj_endpos + 1) { + jj_lasttokens[jj_endpos++] = kind; + } else if (jj_endpos != 0) { + jj_expentry = new int[jj_endpos]; + for (int i = 0; i < jj_endpos; i++) { + jj_expentry[i] = jj_lasttokens[i]; + } + jj_entries_loop: for (java.util.Iterator it = jj_expentries.iterator(); it.hasNext();) { + int[] oldentry = (int[])(it.next()); + if (oldentry.length == jj_expentry.length) { + for (int i = 0; i < jj_expentry.length; i++) { + if (oldentry[i] != jj_expentry[i]) { + continue jj_entries_loop; + } + } + jj_expentries.add(jj_expentry); + break jj_entries_loop; + } + } + if (pos != 0) jj_lasttokens[(jj_endpos = pos) - 1] = kind; + } + } + + /** Generate ParseException. */ + public ParseException generateParseException() { + jj_expentries.clear(); + boolean[] la1tokens = new boolean[22]; + if (jj_kind >= 0) { + la1tokens[jj_kind] = true; + jj_kind = -1; + } + for (int i = 0; i < 9; i++) { + if (jj_la1[i] == jj_gen) { + for (int j = 0; j < 32; j++) { + if ((jj_la1_0[i] & (1< jj_gen) { + jj_la = p.arg; jj_lastpos = jj_scanpos = p.first; + switch (i) { + case 0: jj_3_1(); break; + } + } + p = p.next; + } while (p != null); + } catch(LookaheadSuccess ls) { } + } + jj_rescan = false; + } + + private void jj_save(int index, int xla) { + JJCalls p = jj_2_rtns[index]; + while (p.gen > jj_gen) { + if (p.next == null) { p = p.next = new JJCalls(); break; } + p = p.next; + } + p.gen = jj_gen + xla - jj_la; p.first = token; p.arg = xla; + } + + static final class JJCalls { + int gen; + Token first; + int arg; + JJCalls next; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.jj b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.jj new file mode 100644 index 00000000..d4fffe82 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParser.jj @@ -0,0 +1,165 @@ +options { + STATIC = false; +} + +PARSER_BEGIN(XmileExpressionParser) +package org.simantics.sysdyn.xmile.expressionParser; + +import java.io.StringReader; +import java.lang.StringBuilder; +import java.util.ArrayList; +import java.util.Map; + +import org.simantics.sysdyn.xmile.XmileUtil; + +public class XmileExpressionParser { + private static final boolean DEBUG = true; + + public static String parse(String expression, Map subscripts) { + XmileExpressionParser parser = new XmileExpressionParser(new StringReader(expression)); + + try { + return parser.Expression(subscripts); + } + catch (ParseException e) { + e.printStackTrace(); + return null; + } + } +} +PARSER_END(XmileExpressionParser) + +SKIP : { " " } + +TOKEN : +{ + +| +| +| "> +| +| "> +| ="> +| +| +| +|
+| +| +| +| +| +} + +TOKEN : +{ + +| +| +} + +String Expression(Map subscripts) : +{ + String e; +} +{ + e=BinExpr(subscripts) { return e; } +} + +String BinOp() : +{} +{ + { return "OR"; } +| { return "AND"; } +| { return "="; } +| { return "<"; } +| { return "<="; } +| { return ">"; } +| { return ">="; } +| { return "+"; } +| { return "-"; } +| { return "*"; } +|
{ return "/"; } +| { return "%"; } +} + +String BinExpr(Map subscripts) : +{ + String l = null; + String o = null; + String r = null; +} +{ + l=UnExpr(subscripts) [ o=BinOp() r=BinExpr(subscripts) ] { return o != null ? l + o + r : l; } +} + +String UnOp() : +{} +{ + { return "NOT"; } +| { return "+"; } +| { return "-"; } +} + +String UnExpr(Map subscripts) : +{ + String o = null; + String e = null; +} +{ + [ o=UnOp() ] e=Atom(subscripts) { return o != null ? o + e : e; } +} + +String Atom(Map subscripts) : +{ + Token t = null; + String s = null; +} +{ + t= { return t.image; } +| LOOKAHEAD(2) s=Function(subscripts) { return s; } +| s=Variable(subscripts) { return s; } +| s=BinExpr(subscripts) { return "(" + s + ")"; } +} + +String Function(Map subscripts) : +{ + Token t = null; + String p = null; + ArrayList params = new ArrayList(); +} +{ + t= + [ p=BinExpr(subscripts) { params.add(p); } + ( p=BinExpr(subscripts) { params.add(p); } )* ] + + { + String name = XmileUtil.getSysdynFunction(t.image); + StringBuilder f = new StringBuilder(); + f.append(XmileUtil.FUNCTION_PREFIX); + f.append(name); + f.append('('); + for (int i = 0; i < params.size(); i++) { + if (i > 0) f.append(','); + f.append(params.get(i)); + } + if (XmileUtil.needsTime(name)) { + f.append(XmileUtil.TIME_PARAM); + } + if (XmileUtil.needsTimeStep(name)) { + f.append(XmileUtil.TIME_STEP_PARAM); + } + f.append(')'); + return f.toString(); + } +} + +String Variable(Map subscripts) : +{ + Token t = null; +} +{ + t= { return XmileUtil.normalize(t.image); } +| t= { return t.image; } +} \ No newline at end of file diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserConstants.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserConstants.java new file mode 100644 index 00000000..30c26e33 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserConstants.java @@ -0,0 +1,83 @@ +/* Generated By:JavaCC: Do not edit this line. XmileExpressionParserConstants.java */ +package org.simantics.sysdyn.xmile.expressionParser; + + +/** + * Token literal values and constants. + * Generated by org.javacc.parser.OtherFilesGen#start() + */ +public interface XmileExpressionParserConstants { + + /** End of File. */ + int EOF = 0; + /** RegularExpression Id. */ + int LOR = 2; + /** RegularExpression Id. */ + int LAND = 3; + /** RegularExpression Id. */ + int LNOT = 4; + /** RegularExpression Id. */ + int EQ = 5; + /** RegularExpression Id. */ + int LT = 6; + /** RegularExpression Id. */ + int LEQ = 7; + /** RegularExpression Id. */ + int GT = 8; + /** RegularExpression Id. */ + int GEQ = 9; + /** RegularExpression Id. */ + int PLUS = 10; + /** RegularExpression Id. */ + int MINUS = 11; + /** RegularExpression Id. */ + int MULT = 12; + /** RegularExpression Id. */ + int DIV = 13; + /** RegularExpression Id. */ + int MOD = 14; + /** RegularExpression Id. */ + int EXP = 15; + /** RegularExpression Id. */ + int LPAREN = 16; + /** RegularExpression Id. */ + int RPAREN = 17; + /** RegularExpression Id. */ + int COMMA = 18; + /** RegularExpression Id. */ + int NUMBER = 19; + /** RegularExpression Id. */ + int IDENT = 20; + /** RegularExpression Id. */ + int QIDENT = 21; + + /** Lexical state. */ + int DEFAULT = 0; + + /** Literal token values. */ + String[] tokenImage = { + "", + "\" \"", + "\"OR\"", + "\"AND\"", + "\"NOT\"", + "", + "\"<\"", + "\"<=\"", + "\">\"", + "\">=\"", + "\"+\"", + "\"-\"", + "\"*\"", + "\"/\"", + "\"MOD\"", + "\"^\"", + "\"(\"", + "\")\"", + "\",\"", + "", + "", + "", + }; + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserTokenManager.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserTokenManager.java new file mode 100644 index 00000000..35ef8a2f --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/expressionParser/XmileExpressionParserTokenManager.java @@ -0,0 +1,556 @@ +/* XmileExpressionParserTokenManager.java */ +/* Generated By:JavaCC: Do not edit this line. XmileExpressionParserTokenManager.java */ +package org.simantics.sysdyn.xmile.expressionParser; +import java.io.StringReader; +import java.lang.StringBuilder; +import java.util.ArrayList; +import java.util.Map; +import org.simantics.sysdyn.xmile.XmileUtil; + +/** Token Manager. */ +@SuppressWarnings("unused")public class XmileExpressionParserTokenManager implements XmileExpressionParserConstants { + + /** Debug output. */ + public java.io.PrintStream debugStream = System.out; + /** Set debug output. */ + public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } +private final int jjStopStringLiteralDfa_0(int pos, long active0){ + switch (pos) + { + case 0: + if ((active0 & 0xc0L) != 0L) + return 1; + if ((active0 & 0x401cL) != 0L) + { + jjmatchedKind = 20; + return 9; + } + return -1; + case 1: + if ((active0 & 0x4018L) != 0L) + { + jjmatchedKind = 20; + jjmatchedPos = 1; + return 9; + } + if ((active0 & 0x4L) != 0L) + return 9; + return -1; + default : + return -1; + } +} +private final int jjStartNfa_0(int pos, long active0){ + return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); +} +private int jjStopAtPos(int pos, int kind) +{ + jjmatchedKind = kind; + jjmatchedPos = pos; + return pos + 1; +} +private int jjMoveStringLiteralDfa0_0(){ + switch(curChar) + { + case 40: + return jjStopAtPos(0, 16); + case 41: + return jjStopAtPos(0, 17); + case 42: + return jjStopAtPos(0, 12); + case 43: + return jjStopAtPos(0, 10); + case 44: + return jjStopAtPos(0, 18); + case 45: + return jjStopAtPos(0, 11); + case 47: + return jjStopAtPos(0, 13); + case 60: + jjmatchedKind = 6; + return jjMoveStringLiteralDfa1_0(0x80L); + case 62: + jjmatchedKind = 8; + return jjMoveStringLiteralDfa1_0(0x200L); + case 65: + return jjMoveStringLiteralDfa1_0(0x8L); + case 77: + return jjMoveStringLiteralDfa1_0(0x4000L); + case 78: + return jjMoveStringLiteralDfa1_0(0x10L); + case 79: + return jjMoveStringLiteralDfa1_0(0x4L); + case 94: + return jjStopAtPos(0, 15); + default : + return jjMoveNfa_0(0, 0); + } +} +private int jjMoveStringLiteralDfa1_0(long active0){ + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(0, active0); + return 1; + } + switch(curChar) + { + case 61: + if ((active0 & 0x80L) != 0L) + return jjStopAtPos(1, 7); + else if ((active0 & 0x200L) != 0L) + return jjStopAtPos(1, 9); + break; + case 78: + return jjMoveStringLiteralDfa2_0(active0, 0x8L); + case 79: + return jjMoveStringLiteralDfa2_0(active0, 0x4010L); + case 82: + if ((active0 & 0x4L) != 0L) + return jjStartNfaWithStates_0(1, 2, 9); + break; + default : + break; + } + return jjStartNfa_0(0, active0); +} +private int jjMoveStringLiteralDfa2_0(long old0, long active0){ + if (((active0 &= old0)) == 0L) + return jjStartNfa_0(0, old0); + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { + jjStopStringLiteralDfa_0(1, active0); + return 2; + } + switch(curChar) + { + case 68: + if ((active0 & 0x8L) != 0L) + return jjStartNfaWithStates_0(2, 3, 9); + else if ((active0 & 0x4000L) != 0L) + return jjStartNfaWithStates_0(2, 14, 9); + break; + case 84: + if ((active0 & 0x10L) != 0L) + return jjStartNfaWithStates_0(2, 4, 9); + break; + default : + break; + } + return jjStartNfa_0(1, active0); +} +private int jjStartNfaWithStates_0(int pos, int kind, int state) +{ + jjmatchedKind = kind; + jjmatchedPos = pos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return pos + 1; } + return jjMoveNfa_0(state, pos + 1); +} +static final long[] jjbitVec0 = { + 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL +}; +private int jjMoveNfa_0(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 21; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x3ff000000000000L & l) != 0L) + { + if (kind > 19) + kind = 19; + { jjCheckNAddStates(0, 4); } + } + else if (curChar == 34) + { jjCheckNAdd(11); } + else if (curChar == 46) + { jjCheckNAdd(4); } + else if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 1; + else if (curChar == 61) + { + if (kind > 5) + kind = 5; + } + break; + case 1: + if (curChar == 62 && kind > 5) + kind = 5; + break; + case 2: + if (curChar == 60) + jjstateSet[jjnewStateCnt++] = 1; + break; + case 3: + if (curChar == 46) + { jjCheckNAdd(4); } + break; + case 4: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 19) + kind = 19; + { jjCheckNAddTwoStates(4, 5); } + break; + case 6: + if ((0x280000000000L & l) != 0L) + { jjCheckNAdd(7); } + break; + case 7: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 19) + kind = 19; + { jjCheckNAdd(7); } + break; + case 9: + if ((0x3ff001000000000L & l) == 0L) + break; + if (kind > 20) + kind = 20; + jjstateSet[jjnewStateCnt++] = 9; + break; + case 10: + if (curChar == 34) + { jjCheckNAdd(11); } + break; + case 11: + { jjCheckNAddStates(5, 7); } + break; + case 13: + if (curChar == 34) + { jjCheckNAdd(14); } + break; + case 14: + { jjCheckNAddStates(8, 10); } + break; + case 15: + if (curChar == 34 && kind > 21) + kind = 21; + break; + case 16: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 19) + kind = 19; + { jjCheckNAddStates(0, 4); } + break; + case 17: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 19) + kind = 19; + { jjCheckNAddStates(11, 13); } + break; + case 18: + if (curChar != 46) + break; + if (kind > 19) + kind = 19; + { jjCheckNAddTwoStates(19, 5); } + break; + case 19: + if ((0x3ff000000000000L & l) == 0L) + break; + if (kind > 19) + kind = 19; + { jjCheckNAddTwoStates(19, 5); } + break; + case 20: + if ((0x3ff000000000000L & l) != 0L) + { jjCheckNAddTwoStates(20, 3); } + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 20) + kind = 20; + { jjCheckNAdd(9); } + break; + case 5: + if ((0x2000000020L & l) != 0L) + { jjAddStates(14, 15); } + break; + case 9: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 20) + kind = 20; + { jjCheckNAdd(9); } + break; + case 11: + if ((0xffffffffefffffffL & l) != 0L) + { jjCheckNAddStates(5, 7); } + break; + case 12: + if (curChar == 92) + jjstateSet[jjnewStateCnt++] = 13; + break; + case 13: + if ((0x400010000000L & l) != 0L) + { jjCheckNAdd(14); } + break; + case 14: + if ((0xffffffffefffffffL & l) != 0L) + { jjCheckNAddStates(8, 10); } + break; + default : break; + } + } while(i != startsAt); + } + else + { + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 11: + if ((jjbitVec0[i2] & l2) != 0L) + { jjCheckNAddStates(5, 7); } + break; + case 14: + if ((jjbitVec0[i2] & l2) != 0L) + { jjCheckNAddStates(8, 10); } + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 21 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +static final int[] jjnextStates = { + 17, 18, 20, 3, 5, 11, 12, 15, 12, 14, 15, 17, 18, 5, 6, 7, +}; + +/** Token literal values. */ +public static final String[] jjstrLiteralImages = { +"", null, "\117\122", "\101\116\104", "\116\117\124", null, "\74", "\74\75", +"\76", "\76\75", "\53", "\55", "\52", "\57", "\115\117\104", "\136", "\50", "\51", +"\54", null, null, null, }; +protected Token jjFillToken() +{ + final Token t; + final String curTokenImage; + final int beginLine; + final int endLine; + final int beginColumn; + final int endColumn; + String im = jjstrLiteralImages[jjmatchedKind]; + curTokenImage = (im == null) ? input_stream.GetImage() : im; + beginLine = input_stream.getBeginLine(); + beginColumn = input_stream.getBeginColumn(); + endLine = input_stream.getEndLine(); + endColumn = input_stream.getEndColumn(); + t = Token.newToken(jjmatchedKind, curTokenImage); + + t.beginLine = beginLine; + t.endLine = endLine; + t.beginColumn = beginColumn; + t.endColumn = endColumn; + + return t; +} + +int curLexState = 0; +int defaultLexState = 0; +int jjnewStateCnt; +int jjround; +int jjmatchedPos; +int jjmatchedKind; + +/** Get the next Token. */ +public Token getNextToken() +{ + Token matchedToken; + int curPos = 0; + + EOFLoop : + for (;;) + { + try + { + curChar = input_stream.BeginToken(); + } + catch(java.io.IOException e) + { + jjmatchedKind = 0; + jjmatchedPos = -1; + matchedToken = jjFillToken(); + return matchedToken; + } + + try { input_stream.backup(0); + while (curChar <= 32 && (0x100000000L & (1L << curChar)) != 0L) + curChar = input_stream.BeginToken(); + } + catch (java.io.IOException e1) { continue EOFLoop; } + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_0(); + if (jjmatchedKind != 0x7fffffff) + { + if (jjmatchedPos + 1 < curPos) + input_stream.backup(curPos - jjmatchedPos - 1); + if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) + { + matchedToken = jjFillToken(); + return matchedToken; + } + else + { + continue EOFLoop; + } + } + int error_line = input_stream.getEndLine(); + int error_column = input_stream.getEndColumn(); + String error_after = null; + boolean EOFSeen = false; + try { input_stream.readChar(); input_stream.backup(1); } + catch (java.io.IOException e1) { + EOFSeen = true; + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + if (curChar == '\n' || curChar == '\r') { + error_line++; + error_column = 0; + } + else + error_column++; + } + if (!EOFSeen) { + input_stream.backup(1); + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + } + throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); + } +} + +private void jjCheckNAdd(int state) +{ + if (jjrounds[state] != jjround) + { + jjstateSet[jjnewStateCnt++] = state; + jjrounds[state] = jjround; + } +} +private void jjAddStates(int start, int end) +{ + do { + jjstateSet[jjnewStateCnt++] = jjnextStates[start]; + } while (start++ != end); +} +private void jjCheckNAddTwoStates(int state1, int state2) +{ + jjCheckNAdd(state1); + jjCheckNAdd(state2); +} + +private void jjCheckNAddStates(int start, int end) +{ + do { + jjCheckNAdd(jjnextStates[start]); + } while (start++ != end); +} + + /** Constructor. */ + public XmileExpressionParserTokenManager(SimpleCharStream stream){ + + if (SimpleCharStream.staticFlag) + throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); + + input_stream = stream; + } + + /** Constructor. */ + public XmileExpressionParserTokenManager (SimpleCharStream stream, int lexState){ + ReInit(stream); + SwitchTo(lexState); + } + + /** Reinitialise parser. */ + public void ReInit(SimpleCharStream stream) + { + jjmatchedPos = jjnewStateCnt = 0; + curLexState = defaultLexState; + input_stream = stream; + ReInitRounds(); + } + + private void ReInitRounds() + { + int i; + jjround = 0x80000001; + for (i = 21; i-- > 0;) + jjrounds[i] = 0x80000000; + } + + /** Reinitialise parser. */ + public void ReInit(SimpleCharStream stream, int lexState) + { + ReInit(stream); + SwitchTo(lexState); + } + + /** Switch to specified lex state. */ + public void SwitchTo(int lexState) + { + if (lexState >= 1 || lexState < 0) + throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); + else + curLexState = lexState; + } + +/** Lexer state names. */ +public static final String[] lexStateNames = { + "DEFAULT", +}; +static final long[] jjtoToken = { + 0x3ffffdL, +}; +static final long[] jjtoSkip = { + 0x2L, +}; + protected SimpleCharStream input_stream; + + private final int[] jjrounds = new int[21]; + private final int[] jjstateSet = new int[2 * 21]; + + + protected char curChar; +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AccessType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AccessType.java new file mode 100644 index 00000000..7834044e --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AccessType.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for access_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="access_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="input"/>
+ *     <enumeration value="output"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "access_type") +@XmlEnum +public enum AccessType { + + @XmlEnumValue("input") + INPUT("input"), + @XmlEnumValue("output") + OUTPUT("output"); + private final String value; + + AccessType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AccessType fromValue(String v) { + for (AccessType c: AccessType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AfterChoices.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AfterChoices.java new file mode 100644 index 00000000..eef8b0b4 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/AfterChoices.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for after_choices. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="after_choices">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="one_time"/>
+ *     <enumeration value="one_dt"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "after_choices") +@XmlEnum +public enum AfterChoices { + + @XmlEnumValue("one_time") + ONE_TIME("one_time"), + @XmlEnumValue("one_dt") + ONE_DT("one_dt"); + private final String value; + + AfterChoices(String v) { + value = v; + } + + public String value() { + return value; + } + + public static AfterChoices fromValue(String v) { + for (AfterChoices c: AfterChoices.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Auxiliary.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Auxiliary.java new file mode 100644 index 00000000..a25db503 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Auxiliary.java @@ -0,0 +1,368 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="units" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="doc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}dimensions" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}scale" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}range" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format" minOccurs="0"/>
+ *         <element name="element" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice maxOccurs="unbounded">
+ *                   <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *                 </choice>
+ *                 <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="access" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}access_type" />
+ *       <attribute name="autoexport" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subscript" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="flow_concept" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eqnOrMathmlOrUnits" +}) +@XmlRootElement(name = "aux") +public class Auxiliary { + + @XmlElementRefs({ + @XmlElementRef(name = "doc", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "format", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Format.class, required = false), + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "scale", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Scale.class, required = false), + @XmlElementRef(name = "range", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Range.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "units", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "element", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false), + @XmlElementRef(name = "dimensions", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Dimensions.class, required = false) + }) + protected List eqnOrMathmlOrUnits; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "access") + protected AccessType access; + @XmlAttribute(name = "autoexport") + protected Boolean autoexport; + @XmlAttribute(name = "subscript") + protected String subscript; + @XmlAttribute(name = "flow_concept") + protected Boolean flowConcept; + + /** + * Gets the value of the eqnOrMathmlOrUnits property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrUnits property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEqnOrMathmlOrUnits().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Format } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Scale } + * {@link Range } + * {@link EventPoster } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link Auxiliary.Element }{@code >} + * {@link Gf } + * {@link Dimensions } + * + * + */ + public List getEqnOrMathmlOrUnits() { + if (eqnOrMathmlOrUnits == null) { + eqnOrMathmlOrUnits = new ArrayList(); + } + return this.eqnOrMathmlOrUnits; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the access property. + * + * @return + * possible object is + * {@link AccessType } + * + */ + public AccessType getAccess() { + return access; + } + + /** + * Sets the value of the access property. + * + * @param value + * allowed object is + * {@link AccessType } + * + */ + public void setAccess(AccessType value) { + this.access = value; + } + + /** + * Gets the value of the autoexport property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoexport() { + if (autoexport == null) { + return false; + } else { + return autoexport; + } + } + + /** + * Sets the value of the autoexport property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoexport(Boolean value) { + this.autoexport = value; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + /** + * Gets the value of the flowConcept property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isFlowConcept() { + if (flowConcept == null) { + return false; + } else { + return flowConcept; + } + } + + /** + * Sets the value of the flowConcept property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setFlowConcept(Boolean value) { + this.flowConcept = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice maxOccurs="unbounded">
+     *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+     *       </choice>
+     *       <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "eqnOrMathmlOrGf" + }) + public static class Element { + + @XmlElementRefs({ + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false) + }) + protected List eqnOrMathmlOrGf; + @XmlAttribute(name = "subscript", required = true) + protected String subscript; + + /** + * Gets the value of the eqnOrMathmlOrGf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrGf property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getEqnOrMathmlOrGf().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link EventPoster } + * {@link Gf } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + * + */ + public List getEqnOrMathmlOrGf() { + if (eqnOrMathmlOrGf == null) { + eqnOrMathmlOrGf = new ArrayList(); + } + return this.eqnOrMathmlOrGf; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Behavior.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Behavior.java new file mode 100644 index 00000000..4c6a8478 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Behavior.java @@ -0,0 +1,254 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *         <element name="stock" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *                 </all>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="flow">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *                 </all>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "behavior") +public class Behavior { + + @XmlElement(name = "non_negative") + protected BooleanOrEmptyType nonNegative; + protected Behavior.Stock stock; + @XmlElement(required = true) + protected Behavior.Flow flow; + + /** + * Gets the value of the nonNegative property. + * + * @return + * possible object is + * {@link BooleanOrEmptyType } + * + */ + public BooleanOrEmptyType getNonNegative() { + return nonNegative; + } + + /** + * Sets the value of the nonNegative property. + * + * @param value + * allowed object is + * {@link BooleanOrEmptyType } + * + */ + public void setNonNegative(BooleanOrEmptyType value) { + this.nonNegative = value; + } + + /** + * Gets the value of the stock property. + * + * @return + * possible object is + * {@link Behavior.Stock } + * + */ + public Behavior.Stock getStock() { + return stock; + } + + /** + * Sets the value of the stock property. + * + * @param value + * allowed object is + * {@link Behavior.Stock } + * + */ + public void setStock(Behavior.Stock value) { + this.stock = value; + } + + /** + * Gets the value of the flow property. + * + * @return + * possible object is + * {@link Behavior.Flow } + * + */ + public Behavior.Flow getFlow() { + return flow; + } + + /** + * Sets the value of the flow property. + * + * @param value + * allowed object is + * {@link Behavior.Flow } + * + */ + public void setFlow(Behavior.Flow value) { + this.flow = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+     *       </all>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Flow { + + @XmlElement(name = "non_negative") + protected BooleanOrEmptyType nonNegative; + + /** + * Gets the value of the nonNegative property. + * + * @return + * possible object is + * {@link BooleanOrEmptyType } + * + */ + public BooleanOrEmptyType getNonNegative() { + return nonNegative; + } + + /** + * Sets the value of the nonNegative property. + * + * @param value + * allowed object is + * {@link BooleanOrEmptyType } + * + */ + public void setNonNegative(BooleanOrEmptyType value) { + this.nonNegative = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+     *       </all>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Stock { + + @XmlElement(name = "non_negative") + protected BooleanOrEmptyType nonNegative; + + /** + * Gets the value of the nonNegative property. + * + * @return + * possible object is + * {@link BooleanOrEmptyType } + * + */ + public BooleanOrEmptyType getNonNegative() { + return nonNegative; + } + + /** + * Sets the value of the nonNegative property. + * + * @param value + * allowed object is + * {@link BooleanOrEmptyType } + * + */ + public void setNonNegative(BooleanOrEmptyType value) { + this.nonNegative = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/BooleanOrEmptyType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/BooleanOrEmptyType.java new file mode 100644 index 00000000..e20e024a --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/BooleanOrEmptyType.java @@ -0,0 +1,37 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for boolean_or_empty_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="boolean_or_empty_type">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "boolean_or_empty_type") +public class BooleanOrEmptyType { + + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Contact.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Contact.java new file mode 100644 index 00000000..f3eb3151 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Contact.java @@ -0,0 +1,94 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="address" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="phone" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="fax" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="email" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="website" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "addressOrPhoneOrFax" +}) +@XmlRootElement(name = "contact") +public class Contact { + + @XmlElementRefs({ + @XmlElementRef(name = "phone", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "fax", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "address", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "email", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "website", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false) + }) + protected List> addressOrPhoneOrFax; + + /** + * Gets the value of the addressOrPhoneOrFax property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the addressOrPhoneOrFax property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getAddressOrPhoneOrFax().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + * + */ + public List> getAddressOrPhoneOrFax() { + if (addressOrPhoneOrFax == null) { + addressOrPhoneOrFax = new ArrayList>(); + } + return this.addressOrPhoneOrFax; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Conveyor.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Conveyor.java new file mode 100644 index 00000000..5cd429f8 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Conveyor.java @@ -0,0 +1,300 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="len" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="capacity" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="in_limit" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="sample" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="arrest" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="discrete" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="batch_integrity" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="one_at_a_time" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="exponential_leak" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "conveyor") +public class Conveyor { + + protected String len; + protected String capacity; + @XmlElement(name = "in_limit") + protected String inLimit; + protected String sample; + protected String arrest; + @XmlAttribute(name = "discrete") + protected Boolean discrete; + @XmlAttribute(name = "batch_integrity") + protected Boolean batchIntegrity; + @XmlAttribute(name = "one_at_a_time") + protected Boolean oneAtATime; + @XmlAttribute(name = "exponential_leak") + protected Boolean exponentialLeak; + + /** + * Gets the value of the len property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLen() { + return len; + } + + /** + * Sets the value of the len property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLen(String value) { + this.len = value; + } + + /** + * Gets the value of the capacity property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCapacity() { + return capacity; + } + + /** + * Sets the value of the capacity property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCapacity(String value) { + this.capacity = value; + } + + /** + * Gets the value of the inLimit property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInLimit() { + return inLimit; + } + + /** + * Sets the value of the inLimit property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInLimit(String value) { + this.inLimit = value; + } + + /** + * Gets the value of the sample property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSample() { + return sample; + } + + /** + * Sets the value of the sample property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSample(String value) { + this.sample = value; + } + + /** + * Gets the value of the arrest property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getArrest() { + return arrest; + } + + /** + * Sets the value of the arrest property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setArrest(String value) { + this.arrest = value; + } + + /** + * Gets the value of the discrete property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDiscrete() { + if (discrete == null) { + return false; + } else { + return discrete; + } + } + + /** + * Sets the value of the discrete property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDiscrete(Boolean value) { + this.discrete = value; + } + + /** + * Gets the value of the batchIntegrity property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isBatchIntegrity() { + if (batchIntegrity == null) { + return false; + } else { + return batchIntegrity; + } + } + + /** + * Sets the value of the batchIntegrity property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setBatchIntegrity(Boolean value) { + this.batchIntegrity = value; + } + + /** + * Gets the value of the oneAtATime property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isOneAtATime() { + if (oneAtATime == null) { + return true; + } else { + return oneAtATime; + } + } + + /** + * Sets the value of the oneAtATime property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOneAtATime(Boolean value) { + this.oneAtATime = value; + } + + /** + * Gets the value of the exponentialLeak property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isExponentialLeak() { + if (exponentialLeak == null) { + return false; + } else { + return exponentialLeak; + } + } + + /** + * Sets the value of the exponentialLeak property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setExponentialLeak(Boolean value) { + this.exponentialLeak = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Data.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Data.java new file mode 100644 index 00000000..623397d2 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Data.java @@ -0,0 +1,746 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="export" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="all" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+ *                   <element name="table" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="use_settings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </choice>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}data_attributes"/>
+ *                 <attribute name="interval" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" default="0" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="import" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}data_attributes"/>
+ *                 <attribute name="interval" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" default="0" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "export", + "_import" +}) +@XmlRootElement(name = "data") +public class Data { + + protected List export; + @XmlElement(name = "import") + protected List _import; + + /** + * Gets the value of the export property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the export property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getExport().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Data.Export } + * + * + */ + public List getExport() { + if (export == null) { + export = new ArrayList(); + } + return this.export; + } + + /** + * Gets the value of the import property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the import property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getImport().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Data.Import } + * + * + */ + public List getImport() { + if (_import == null) { + _import = new ArrayList(); + } + return this._import; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="all" type="{http://www.w3.org/2001/XMLSchema}anyType" minOccurs="0"/>
+     *         <element name="table" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="use_settings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </choice>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}data_attributes"/>
+     *       <attribute name="interval" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" default="0" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "all", + "table" + }) + public static class Export { + + protected Object all; + protected Data.Export.Table table; + @XmlAttribute(name = "interval") + protected String interval; + @XmlAttribute(name = "type") + protected DataType type; + @XmlAttribute(name = "enable") + protected Boolean enable; + @XmlAttribute(name = "frequency") + protected FrequencyType frequency; + @XmlAttribute(name = "orientation") + protected OrientationType orientation; + @XmlAttribute(name = "resource", required = true) + protected String resource; + @XmlAttribute(name = "worksheet") + protected String worksheet; + + /** + * Gets the value of the all property. + * + * @return + * possible object is + * {@link Object } + * + */ + public Object getAll() { + return all; + } + + /** + * Sets the value of the all property. + * + * @param value + * allowed object is + * {@link Object } + * + */ + public void setAll(Object value) { + this.all = value; + } + + /** + * Gets the value of the table property. + * + * @return + * possible object is + * {@link Data.Export.Table } + * + */ + public Data.Export.Table getTable() { + return table; + } + + /** + * Sets the value of the table property. + * + * @param value + * allowed object is + * {@link Data.Export.Table } + * + */ + public void setTable(Data.Export.Table value) { + this.table = value; + } + + /** + * Gets the value of the interval property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInterval() { + if (interval == null) { + return "0"; + } else { + return interval; + } + } + + /** + * Sets the value of the interval property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInterval(String value) { + this.interval = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link DataType } + * + */ + public DataType getType() { + if (type == null) { + return DataType.CSV; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link DataType } + * + */ + public void setType(DataType value) { + this.type = value; + } + + /** + * Gets the value of the enable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnable() { + if (enable == null) { + return true; + } else { + return enable; + } + } + + /** + * Sets the value of the enable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnable(Boolean value) { + this.enable = value; + } + + /** + * Gets the value of the frequency property. + * + * @return + * possible object is + * {@link FrequencyType } + * + */ + public FrequencyType getFrequency() { + if (frequency == null) { + return FrequencyType.AUTOMATIC; + } else { + return frequency; + } + } + + /** + * Sets the value of the frequency property. + * + * @param value + * allowed object is + * {@link FrequencyType } + * + */ + public void setFrequency(FrequencyType value) { + this.frequency = value; + } + + /** + * Gets the value of the orientation property. + * + * @return + * possible object is + * {@link OrientationType } + * + */ + public OrientationType getOrientation() { + if (orientation == null) { + return OrientationType.VERTICAL; + } else { + return orientation; + } + } + + /** + * Sets the value of the orientation property. + * + * @param value + * allowed object is + * {@link OrientationType } + * + */ + public void setOrientation(OrientationType value) { + this.orientation = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the worksheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWorksheet() { + return worksheet; + } + + /** + * Sets the value of the worksheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorksheet(String value) { + this.worksheet = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="use_settings" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Table { + + @XmlAttribute(name = "uid", required = true) + protected String uid; + @XmlAttribute(name = "use_settings") + protected Boolean useSettings; + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUid(String value) { + this.uid = value; + } + + /** + * Gets the value of the useSettings property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isUseSettings() { + if (useSettings == null) { + return false; + } else { + return useSettings; + } + } + + /** + * Sets the value of the useSettings property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setUseSettings(Boolean value) { + this.useSettings = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}data_attributes"/>
+     *       <attribute name="interval" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" default="0" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Import { + + @XmlAttribute(name = "interval") + protected String interval; + @XmlAttribute(name = "type") + protected DataType type; + @XmlAttribute(name = "enable") + protected Boolean enable; + @XmlAttribute(name = "frequency") + protected FrequencyType frequency; + @XmlAttribute(name = "orientation") + protected OrientationType orientation; + @XmlAttribute(name = "resource", required = true) + protected String resource; + @XmlAttribute(name = "worksheet") + protected String worksheet; + + /** + * Gets the value of the interval property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getInterval() { + if (interval == null) { + return "0"; + } else { + return interval; + } + } + + /** + * Sets the value of the interval property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setInterval(String value) { + this.interval = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link DataType } + * + */ + public DataType getType() { + if (type == null) { + return DataType.CSV; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link DataType } + * + */ + public void setType(DataType value) { + this.type = value; + } + + /** + * Gets the value of the enable property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isEnable() { + if (enable == null) { + return true; + } else { + return enable; + } + } + + /** + * Sets the value of the enable property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setEnable(Boolean value) { + this.enable = value; + } + + /** + * Gets the value of the frequency property. + * + * @return + * possible object is + * {@link FrequencyType } + * + */ + public FrequencyType getFrequency() { + if (frequency == null) { + return FrequencyType.AUTOMATIC; + } else { + return frequency; + } + } + + /** + * Sets the value of the frequency property. + * + * @param value + * allowed object is + * {@link FrequencyType } + * + */ + public void setFrequency(FrequencyType value) { + this.frequency = value; + } + + /** + * Gets the value of the orientation property. + * + * @return + * possible object is + * {@link OrientationType } + * + */ + public OrientationType getOrientation() { + if (orientation == null) { + return OrientationType.VERTICAL; + } else { + return orientation; + } + } + + /** + * Sets the value of the orientation property. + * + * @param value + * allowed object is + * {@link OrientationType } + * + */ + public void setOrientation(OrientationType value) { + this.orientation = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the worksheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWorksheet() { + return worksheet; + } + + /** + * Sets the value of the worksheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorksheet(String value) { + this.worksheet = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/DataType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/DataType.java new file mode 100644 index 00000000..9b5f43fe --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/DataType.java @@ -0,0 +1,47 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for data_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="data_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="CSV"/>
+ *     <enumeration value="XLS"/>
+ *     <enumeration value="XML"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "data_type") +@XmlEnum +public enum DataType { + + CSV, + XLS, + XML; + + public String value() { + return name(); + } + + public static DataType fromValue(String v) { + return valueOf(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Dimensions.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Dimensions.java new file mode 100644 index 00000000..81a82f4d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Dimensions.java @@ -0,0 +1,136 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="dim" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "dim" +}) +@XmlRootElement(name = "dimensions") +public class Dimensions { + + protected List dim; + + /** + * Gets the value of the dim property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dim property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDim().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Dimensions.Dim } + * + * + */ + public List getDim() { + if (dim == null) { + dim = new ArrayList(); + } + return this.dim; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Dim { + + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EmptyType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EmptyType.java new file mode 100644 index 00000000..904ad610 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EmptyType.java @@ -0,0 +1,37 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for empty_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="empty_type">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "empty_type") +public class EmptyType { + + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Entity.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Entity.java new file mode 100644 index 00000000..45d357b8 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Entity.java @@ -0,0 +1,116 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *       </all>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "entity") +public class Entity { + + protected double value; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the value property. + * + */ + public double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(double value) { + this.value = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EventPoster.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EventPoster.java new file mode 100644 index 00000000..b4174a36 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/EventPoster.java @@ -0,0 +1,489 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence maxOccurs="unbounded">
+ *         <element name="threshold">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence>
+ *                   <element name="event" maxOccurs="unbounded" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <choice maxOccurs="unbounded">
+ *                             <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}text_box"/>
+ *                             <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image"/>
+ *                             <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video"/>
+ *                             <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound"/>
+ *                             <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link"/>
+ *                           </choice>
+ *                           <attribute name="sim_action" default="pause">
+ *                             <simpleType>
+ *                               <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                                 <enumeration value="pause"/>
+ *                                 <enumeration value="stop"/>
+ *                                 <enumeration value="message"/>
+ *                               </restriction>
+ *                             </simpleType>
+ *                           </attribute>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="direction" default="increasing">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="increasing"/>
+ *                       <enumeration value="decreasing"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="repeat" default="each">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="each"/>
+ *                       <enumeration value="once"/>
+ *                       <enumeration value="once_ever"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *       <attribute name="min" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "threshold" +}) +@XmlRootElement(name = "event_poster") +public class EventPoster { + + @XmlElement(required = true) + protected List threshold; + @XmlAttribute(name = "min", required = true) + protected double min; + @XmlAttribute(name = "max", required = true) + protected double max; + + /** + * Gets the value of the threshold property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the threshold property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getThreshold().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link EventPoster.Threshold } + * + * + */ + public List getThreshold() { + if (threshold == null) { + threshold = new ArrayList(); + } + return this.threshold; + } + + /** + * Gets the value of the min property. + * + */ + public double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + */ + public void setMin(double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + */ + public double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + */ + public void setMax(double value) { + this.max = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="event" maxOccurs="unbounded" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <choice maxOccurs="unbounded">
+     *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}text_box"/>
+     *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image"/>
+     *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video"/>
+     *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound"/>
+     *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link"/>
+     *                 </choice>
+     *                 <attribute name="sim_action" default="pause">
+     *                   <simpleType>
+     *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *                       <enumeration value="pause"/>
+     *                       <enumeration value="stop"/>
+     *                       <enumeration value="message"/>
+     *                     </restriction>
+     *                   </simpleType>
+     *                 </attribute>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attribute name="value" use="required" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="direction" default="increasing">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="increasing"/>
+     *             <enumeration value="decreasing"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="repeat" default="each">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="each"/>
+     *             <enumeration value="once"/>
+     *             <enumeration value="once_ever"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="interval" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "event" + }) + public static class Threshold { + + protected List event; + @XmlAttribute(name = "value", required = true) + protected double value; + @XmlAttribute(name = "direction") + protected String direction; + @XmlAttribute(name = "repeat") + protected String repeat; + @XmlAttribute(name = "interval") + protected BigInteger interval; + + /** + * Gets the value of the event property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the event property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getEvent().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link EventPoster.Threshold.Event } + * + * + */ + public List getEvent() { + if (event == null) { + event = new ArrayList(); + } + return this.event; + } + + /** + * Gets the value of the value property. + * + */ + public double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(double value) { + this.value = value; + } + + /** + * Gets the value of the direction property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDirection() { + if (direction == null) { + return "increasing"; + } else { + return direction; + } + } + + /** + * Sets the value of the direction property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDirection(String value) { + this.direction = value; + } + + /** + * Gets the value of the repeat property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRepeat() { + if (repeat == null) { + return "each"; + } else { + return repeat; + } + } + + /** + * Sets the value of the repeat property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRepeat(String value) { + this.repeat = value; + } + + /** + * Gets the value of the interval property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getInterval() { + return interval; + } + + /** + * Sets the value of the interval property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setInterval(BigInteger value) { + this.interval = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <choice maxOccurs="unbounded">
+         *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}text_box"/>
+         *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image"/>
+         *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video"/>
+         *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound"/>
+         *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link"/>
+         *       </choice>
+         *       <attribute name="sim_action" default="pause">
+         *         <simpleType>
+         *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+         *             <enumeration value="pause"/>
+         *             <enumeration value="stop"/>
+         *             <enumeration value="message"/>
+         *           </restriction>
+         *         </simpleType>
+         *       </attribute>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "textBoxOrImageOrVideo" + }) + public static class Event { + + @XmlElements({ + @XmlElement(name = "text_box", type = TextBox.class), + @XmlElement(name = "image", type = Image.class), + @XmlElement(name = "video", type = Video.class), + @XmlElement(name = "sound", type = Sound.class), + @XmlElement(name = "link", type = Link.class) + }) + protected List textBoxOrImageOrVideo; + @XmlAttribute(name = "sim_action") + protected String simAction; + + /** + * Gets the value of the textBoxOrImageOrVideo property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the textBoxOrImageOrVideo property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getTextBoxOrImageOrVideo().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link TextBox } + * {@link Image } + * {@link Video } + * {@link Sound } + * {@link Link } + * + * + */ + public List getTextBoxOrImageOrVideo() { + if (textBoxOrImageOrVideo == null) { + textBoxOrImageOrVideo = new ArrayList(); + } + return this.textBoxOrImageOrVideo; + } + + /** + * Gets the value of the simAction property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSimAction() { + if (simAction == null) { + return "pause"; + } else { + return simAction; + } + } + + /** + * Sets the value of the simAction property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSimAction(String value) { + this.simAction = value; + } + + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Flow.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Flow.java new file mode 100644 index 00000000..462f3b0c --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Flow.java @@ -0,0 +1,434 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="units" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="doc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}dimensions" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}scale" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}range" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format" minOccurs="0"/>
+ *         <element name="multiplier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *         <element name="overflow" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *         <element name="leak" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *         <element name="leak_integers" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *         <element name="element" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice maxOccurs="unbounded">
+ *                   <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *                   <element name="multiplier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *                   <element name="overflow" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *                   <element name="leak" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *                   <element name="leak_integers" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+ *                 </choice>
+ *                 <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="access" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}access_type" />
+ *       <attribute name="autoexport" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subscript" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="leak_start" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="leak_end" type="{http://www.w3.org/2001/XMLSchema}double" default="1" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eqnOrMathmlOrUnits" +}) +@XmlRootElement(name = "flow") +public class Flow { + + @XmlElementRefs({ + @XmlElementRef(name = "non_negative", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "multiplier", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "element", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "leak_integers", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false), + @XmlElementRef(name = "units", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "doc", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "overflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "format", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Format.class, required = false), + @XmlElementRef(name = "scale", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Scale.class, required = false), + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "range", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Range.class, required = false), + @XmlElementRef(name = "leak", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dimensions", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Dimensions.class, required = false) + }) + protected List eqnOrMathmlOrUnits; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "access") + protected AccessType access; + @XmlAttribute(name = "autoexport") + protected Boolean autoexport; + @XmlAttribute(name = "subscript") + protected String subscript; + @XmlAttribute(name = "leak_start") + protected Double leakStart; + @XmlAttribute(name = "leak_end") + protected Double leakEnd; + + /** + * Gets the value of the eqnOrMathmlOrUnits property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrUnits property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEqnOrMathmlOrUnits().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link Flow.Element }{@code >} + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link Gf } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link Format } + * {@link Scale } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Range } + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link EventPoster } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Dimensions } + * + * + */ + public List getEqnOrMathmlOrUnits() { + if (eqnOrMathmlOrUnits == null) { + eqnOrMathmlOrUnits = new ArrayList(); + } + return this.eqnOrMathmlOrUnits; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the access property. + * + * @return + * possible object is + * {@link AccessType } + * + */ + public AccessType getAccess() { + return access; + } + + /** + * Sets the value of the access property. + * + * @param value + * allowed object is + * {@link AccessType } + * + */ + public void setAccess(AccessType value) { + this.access = value; + } + + /** + * Gets the value of the autoexport property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoexport() { + if (autoexport == null) { + return false; + } else { + return autoexport; + } + } + + /** + * Sets the value of the autoexport property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoexport(Boolean value) { + this.autoexport = value; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + /** + * Gets the value of the leakStart property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getLeakStart() { + if (leakStart == null) { + return 0.0D; + } else { + return leakStart; + } + } + + /** + * Sets the value of the leakStart property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLeakStart(Double value) { + this.leakStart = value; + } + + /** + * Gets the value of the leakEnd property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getLeakEnd() { + if (leakEnd == null) { + return 1.0D; + } else { + return leakEnd; + } + } + + /** + * Sets the value of the leakEnd property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLeakEnd(Double value) { + this.leakEnd = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice maxOccurs="unbounded">
+     *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+     *         <element name="multiplier" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+     *         <element name="overflow" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+     *         <element name="leak" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+     *         <element name="leak_integers" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type"/>
+     *       </choice>
+     *       <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "eqnOrMathmlOrGf" + }) + public static class Element { + + @XmlElementRefs({ + @XmlElementRef(name = "leak", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "overflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "leak_integers", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "multiplier", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false), + @XmlElementRef(name = "non_negative", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false) + }) + protected List eqnOrMathmlOrGf; + @XmlAttribute(name = "subscript", required = true) + protected String subscript; + + /** + * Gets the value of the eqnOrMathmlOrGf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrGf property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getEqnOrMathmlOrGf().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link EventPoster } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Gf } + * {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >} + * + * + */ + public List getEqnOrMathmlOrGf() { + if (eqnOrMathmlOrGf == null) { + eqnOrMathmlOrGf = new ArrayList(); + } + return this.eqnOrMathmlOrGf; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Format.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Format.java new file mode 100644 index 00000000..e726859d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Format.java @@ -0,0 +1,158 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format_attributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "format") +public class Format { + + @XmlAttribute(name = "precision") + protected Double precision; + @XmlAttribute(name = "scale_by") + protected BigInteger scaleBy; + @XmlAttribute(name = "delimit_000s") + protected Boolean delimit000S; + @XmlAttribute(name = "display_as") + protected String displayAs; + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + /** + * Gets the value of the scaleBy property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getScaleBy() { + if (scaleBy == null) { + return new BigInteger("1"); + } else { + return scaleBy; + } + } + + /** + * Sets the value of the scaleBy property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setScaleBy(BigInteger value) { + this.scaleBy = value; + } + + /** + * Gets the value of the delimit000S property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelimit000S() { + if (delimit000S == null) { + return false; + } else { + return delimit000S; + } + } + + /** + * Sets the value of the delimit000S property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelimit000S(Boolean value) { + this.delimit000S = value; + } + + /** + * Gets the value of the displayAs property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayAs() { + if (displayAs == null) { + return "number"; + } else { + return displayAs; + } + } + + /** + * Sets the value of the displayAs property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayAs(String value) { + this.displayAs = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/FrequencyType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/FrequencyType.java new file mode 100644 index 00000000..d2578089 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/FrequencyType.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for frequency_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="frequency_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="automatic"/>
+ *     <enumeration value="on_demand"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "frequency_type") +@XmlEnum +public enum FrequencyType { + + @XmlEnumValue("automatic") + AUTOMATIC("automatic"), + @XmlEnumValue("on_demand") + ON_DEMAND("on_demand"); + private final String value; + + FrequencyType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static FrequencyType fromValue(String v) { + for (FrequencyType c: FrequencyType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Gf.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Gf.java new file mode 100644 index 00000000..0c556b9e --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Gf.java @@ -0,0 +1,216 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="xscale" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}min_max_type" minOccurs="0"/>
+ *         <element name="yscale" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}min_max_type" minOccurs="0"/>
+ *         <element name="xpts" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}points_type" minOccurs="0"/>
+ *         <element name="ypts" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}points_type"/>
+ *       </all>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="type" default="continuous">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="continuous"/>
+ *             <enumeration value="extrapolate"/>
+ *             <enumeration value="discrete"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "gf") +public class Gf { + + protected MinMaxType xscale; + protected MinMaxType yscale; + protected PointsType xpts; + @XmlElement(required = true) + protected PointsType ypts; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "type") + protected String type; + + /** + * Gets the value of the xscale property. + * + * @return + * possible object is + * {@link MinMaxType } + * + */ + public MinMaxType getXscale() { + return xscale; + } + + /** + * Sets the value of the xscale property. + * + * @param value + * allowed object is + * {@link MinMaxType } + * + */ + public void setXscale(MinMaxType value) { + this.xscale = value; + } + + /** + * Gets the value of the yscale property. + * + * @return + * possible object is + * {@link MinMaxType } + * + */ + public MinMaxType getYscale() { + return yscale; + } + + /** + * Sets the value of the yscale property. + * + * @param value + * allowed object is + * {@link MinMaxType } + * + */ + public void setYscale(MinMaxType value) { + this.yscale = value; + } + + /** + * Gets the value of the xpts property. + * + * @return + * possible object is + * {@link PointsType } + * + */ + public PointsType getXpts() { + return xpts; + } + + /** + * Sets the value of the xpts property. + * + * @param value + * allowed object is + * {@link PointsType } + * + */ + public void setXpts(PointsType value) { + this.xpts = value; + } + + /** + * Gets the value of the ypts property. + * + * @return + * possible object is + * {@link PointsType } + * + */ + public PointsType getYpts() { + return ypts; + } + + /** + * Sets the value of the ypts property. + * + * @param value + * allowed object is + * {@link PointsType } + * + */ + public void setYpts(PointsType value) { + this.ypts = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + if (type == null) { + return "continuous"; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphType.java new file mode 100644 index 00000000..8b8203f8 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphType.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for graph_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="graph_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="time_series"/>
+ *     <enumeration value="scatter"/>
+ *     <enumeration value="bar"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "graph_type") +@XmlEnum +public enum GraphType { + + @XmlEnumValue("time_series") + TIME_SERIES("time_series"), + @XmlEnumValue("scatter") + SCATTER("scatter"), + @XmlEnumValue("bar") + BAR("bar"); + private final String value; + + GraphType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static GraphType fromValue(String v) { + for (GraphType c: GraphType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicalInput.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicalInput.java new file mode 100644 index 00000000..ab984cfe --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicalInput.java @@ -0,0 +1,842 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "graphical_input") +public class GraphicalInput { + + @XmlElement(required = true) + protected GraphicalInput.Entity entity; + protected Gf gf; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link GraphicalInput.Entity } + * + */ + public GraphicalInput.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link GraphicalInput.Entity } + * + */ + public void setEntity(GraphicalInput.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the gf property. + * + * @return + * possible object is + * {@link Gf } + * + */ + public Gf getGf() { + return gf; + } + + /** + * Sets the value of the gf property. + * + * @param value + * allowed object is + * {@link Gf } + * + */ + public void setGf(Gf value) { + this.gf = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return false; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicsFrame.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicsFrame.java new file mode 100644 index 00000000..06a08bd2 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/GraphicsFrame.java @@ -0,0 +1,715 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image"/>
+ *       </choice>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "video", + "image" +}) +@XmlRootElement(name = "graphics_frame") +public class GraphicsFrame { + + protected Video video; + protected Image image; + @XmlAttribute(name = "uid", required = true) + protected int uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the video property. + * + * @return + * possible object is + * {@link Video } + * + */ + public Video getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value + * allowed object is + * {@link Video } + * + */ + public void setVideo(Video value) { + this.video = value; + } + + /** + * Gets the value of the image property. + * + * @return + * possible object is + * {@link Image } + * + */ + public Image getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value + * allowed object is + * {@link Image } + * + */ + public void setImage(Image value) { + this.image = value; + } + + /** + * Gets the value of the uid property. + * + */ + public int getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + */ + public void setUid(int value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Group.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Group.java new file mode 100644 index 00000000..3cd188de --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Group.java @@ -0,0 +1,171 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="doc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="entity" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "docOrEntity" +}) +@XmlRootElement(name = "group") +public class Group { + + @XmlElements({ + @XmlElement(name = "doc", type = String.class), + @XmlElement(name = "entity", type = Group.Entity.class) + }) + protected List docOrEntity; + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the docOrEntity property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the docOrEntity property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getDocOrEntity().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link Group.Entity } + * + * + */ + public List getDocOrEntity() { + if (docOrEntity == null) { + docOrEntity = new ArrayList(); + } + return this.docOrEntity; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Header.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Header.java new file mode 100644 index 00000000..6f88044d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Header.java @@ -0,0 +1,469 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; +import javax.xml.datatype.XMLGregorianCalendar; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="vendor" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="name" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="version" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="caption" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="author" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="affiliation" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="client" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="copyright" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="created" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
+ *         <element name="modified" type="{http://www.w3.org/2001/XMLSchema}date" minOccurs="0"/>
+ *         <element name="uuid" minOccurs="0">
+ *           <simpleType>
+ *             <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *               <pattern value="[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}"/>
+ *             </restriction>
+ *           </simpleType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}options" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}product" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}contact" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}includes" minOccurs="0"/>
+ *       </all>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "header") +public class Header { + + protected String vendor; + protected String name; + protected String version; + protected String caption; + protected String author; + protected String affiliation; + protected String client; + protected String copyright; + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar created; + @XmlSchemaType(name = "date") + protected XMLGregorianCalendar modified; + protected String uuid; + protected Image image; + protected Options options; + protected Product product; + protected Contact contact; + protected Includes includes; + + /** + * Gets the value of the vendor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVendor() { + return vendor; + } + + /** + * Sets the value of the vendor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVendor(String value) { + this.vendor = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + + /** + * Gets the value of the caption property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCaption() { + return caption; + } + + /** + * Sets the value of the caption property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCaption(String value) { + this.caption = value; + } + + /** + * Gets the value of the author property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAuthor() { + return author; + } + + /** + * Sets the value of the author property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAuthor(String value) { + this.author = value; + } + + /** + * Gets the value of the affiliation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getAffiliation() { + return affiliation; + } + + /** + * Sets the value of the affiliation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setAffiliation(String value) { + this.affiliation = value; + } + + /** + * Gets the value of the client property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getClient() { + return client; + } + + /** + * Sets the value of the client property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setClient(String value) { + this.client = value; + } + + /** + * Gets the value of the copyright property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getCopyright() { + return copyright; + } + + /** + * Sets the value of the copyright property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setCopyright(String value) { + this.copyright = value; + } + + /** + * Gets the value of the created property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getCreated() { + return created; + } + + /** + * Sets the value of the created property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setCreated(XMLGregorianCalendar value) { + this.created = value; + } + + /** + * Gets the value of the modified property. + * + * @return + * possible object is + * {@link XMLGregorianCalendar } + * + */ + public XMLGregorianCalendar getModified() { + return modified; + } + + /** + * Sets the value of the modified property. + * + * @param value + * allowed object is + * {@link XMLGregorianCalendar } + * + */ + public void setModified(XMLGregorianCalendar value) { + this.modified = value; + } + + /** + * Gets the value of the uuid property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getUuid() { + return uuid; + } + + /** + * Sets the value of the uuid property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setUuid(String value) { + this.uuid = value; + } + + /** + * Gets the value of the image property. + * + * @return + * possible object is + * {@link Image } + * + */ + public Image getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value + * allowed object is + * {@link Image } + * + */ + public void setImage(Image value) { + this.image = value; + } + + /** + * Gets the value of the options property. + * + * @return + * possible object is + * {@link Options } + * + */ + public Options getOptions() { + return options; + } + + /** + * Sets the value of the options property. + * + * @param value + * allowed object is + * {@link Options } + * + */ + public void setOptions(Options value) { + this.options = value; + } + + /** + * Gets the value of the product property. + * + * @return + * possible object is + * {@link Product } + * + */ + public Product getProduct() { + return product; + } + + /** + * Sets the value of the product property. + * + * @param value + * allowed object is + * {@link Product } + * + */ + public void setProduct(Product value) { + this.product = value; + } + + /** + * Gets the value of the contact property. + * + * @return + * possible object is + * {@link Contact } + * + */ + public Contact getContact() { + return contact; + } + + /** + * Sets the value of the contact property. + * + * @param value + * allowed object is + * {@link Contact } + * + */ + public void setContact(Contact value) { + this.contact = value; + } + + /** + * Gets the value of the includes property. + * + * @return + * possible object is + * {@link Includes } + * + */ + public Includes getIncludes() { + return includes; + } + + /** + * Sets the value of the includes property. + * + * @param value + * allowed object is + * {@link Includes } + * + */ + public void setIncludes(Includes value) { + this.includes = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Image.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Image.java new file mode 100644 index 00000000..e3a677c2 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Image.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="size_to_parent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="height" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "image") +public class Image { + + @XmlValue + protected String value; + @XmlAttribute(name = "resource") + protected String resource; + @XmlAttribute(name = "size_to_parent") + protected Boolean sizeToParent; + @XmlAttribute(name = "width") + protected Integer width; + @XmlAttribute(name = "height") + protected Integer height; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the sizeToParent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSizeToParent() { + if (sizeToParent == null) { + return false; + } else { + return sizeToParent; + } + } + + /** + * Sets the value of the sizeToParent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSizeToParent(Boolean value) { + this.sizeToParent = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setWidth(Integer value) { + this.width = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHeight(Integer value) { + this.height = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Includes.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Includes.java new file mode 100644 index 00000000..75cd8de4 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Includes.java @@ -0,0 +1,138 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="include" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="resource" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "include" +}) +@XmlRootElement(name = "includes") +public class Includes { + + @XmlElement(required = true) + protected List include; + + /** + * Gets the value of the include property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the include property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getInclude().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Includes.Include } + * + * + */ + public List getInclude() { + if (include == null) { + include = new ArrayList(); + } + return this.include; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="resource" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Include { + + @XmlAttribute(name = "resource", required = true) + protected String resource; + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Knob.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Knob.java new file mode 100644 index 00000000..30148940 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Knob.java @@ -0,0 +1,959 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="show_number" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="show_min_max" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "knob") +public class Knob { + + @XmlElement(required = true) + protected Knob.Entity entity; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "show_number") + protected Boolean showNumber; + @XmlAttribute(name = "show_min_max") + protected Boolean showMinMax; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + @XmlAttribute(name = "precision") + protected Double precision; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link Knob.Entity } + * + */ + public Knob.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link Knob.Entity } + * + */ + public void setEntity(Knob.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return true; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the showNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowNumber() { + if (showNumber == null) { + return true; + } else { + return showNumber; + } + } + + /** + * Sets the value of the showNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowNumber(Boolean value) { + this.showNumber = value; + } + + /** + * Gets the value of the showMinMax property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMinMax() { + if (showMinMax == null) { + return true; + } else { + return showMinMax; + } + } + + /** + * Sets the value of the showMinMax property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMinMax(Boolean value) { + this.showMinMax = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Link.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Link.java new file mode 100644 index 00000000..0ec84ac4 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Link.java @@ -0,0 +1,278 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" default="0" />
+ *       <attribute name="zoom" type="{http://www.w3.org/2001/XMLSchema}double" default="100" />
+ *       <attribute name="effect" default="none">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="none"/>
+ *             <enumeration value="dissolve"/>
+ *             <enumeration value="checkerboard"/>
+ *             <enumeration value="bars"/>
+ *             <enumeration value="wipe_left"/>
+ *             <enumeration value="wipe_right"/>
+ *             <enumeration value="wipe_top"/>
+ *             <enumeration value="wipe_bottom"/>
+ *             <enumeration value="wipe_clockwise"/>
+ *             <enumeration value="wipe_counterclockwise"/>
+ *             <enumeration value="iris_in"/>
+ *             <enumeration value="iris_out"/>
+ *             <enumeration value="doors_close"/>
+ *             <enumeration value="doors_open"/>
+ *             <enumeration value="venetian_left"/>
+ *             <enumeration value="venetian_right"/>
+ *             <enumeration value="venetian_top"/>
+ *             <enumeration value="venetian_bottom"/>
+ *             <enumeration value="push_bottom"/>
+ *             <enumeration value="push_top"/>
+ *             <enumeration value="push_left"/>
+ *             <enumeration value="push_right"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="to_black" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="target" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "link") +public class Link { + + @XmlValue + protected String value; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "zoom") + protected Double zoom; + @XmlAttribute(name = "effect") + protected String effect; + @XmlAttribute(name = "to_black") + protected Boolean toBlack; + @XmlAttribute(name = "target", required = true) + protected String target; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getX() { + if (x == null) { + return 0.0D; + } else { + return x; + } + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getY() { + if (y == null) { + return 0.0D; + } else { + return y; + } + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the zoom property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getZoom() { + if (zoom == null) { + return 100.0D; + } else { + return zoom; + } + } + + /** + * Sets the value of the zoom property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setZoom(Double value) { + this.zoom = value; + } + + /** + * Gets the value of the effect property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEffect() { + if (effect == null) { + return "none"; + } else { + return effect; + } + } + + /** + * Sets the value of the effect property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEffect(String value) { + this.effect = value; + } + + /** + * Gets the value of the toBlack property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isToBlack() { + if (toBlack == null) { + return false; + } else { + return toBlack; + } + } + + /** + * Sets the value of the toBlack property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setToBlack(Boolean value) { + this.toBlack = value; + } + + /** + * Gets the value of the target property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTarget() { + return target; + } + + /** + * Sets the value of the target property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTarget(String value) { + this.target = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ListInput.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ListInput.java new file mode 100644 index 00000000..aa9284b3 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ListInput.java @@ -0,0 +1,995 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element name="numeric_input" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="entity" minOccurs="0">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </all>
+ *                 <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="column_width" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "numericInput" +}) +@XmlRootElement(name = "list_input") +public class ListInput { + + @XmlElement(name = "numeric_input") + protected List numericInput; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "column_width", required = true) + protected int columnWidth; + @XmlAttribute(name = "index") + protected Integer index; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the numericInput property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the numericInput property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getNumericInput().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ListInput.NumericInput } + * + * + */ + public List getNumericInput() { + if (numericInput == null) { + numericInput = new ArrayList(); + } + return this.numericInput; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the columnWidth property. + * + */ + public int getColumnWidth() { + return columnWidth; + } + + /** + * Sets the value of the columnWidth property. + * + */ + public void setColumnWidth(int value) { + this.columnWidth = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="entity" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </all>
+     *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class NumericInput { + + protected ListInput.NumericInput.Entity entity; + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + @XmlAttribute(name = "precision") + protected Double precision; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link ListInput.NumericInput.Entity } + * + */ + public ListInput.NumericInput.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link ListInput.NumericInput.Entity } + * + */ + public void setEntity(ListInput.NumericInput.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Macro.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Macro.java new file mode 100644 index 00000000..a2e80cc6 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Macro.java @@ -0,0 +1,225 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="parm" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *         <element name="format" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="doc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sim_specs" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}variables" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}views" minOccurs="0"/>
+ *       </choice>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="namespace" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="filter">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="stock"/>
+ *             <enumeration value="flow"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="applyto">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="inflows"/>
+ *             <enumeration value="outflows"/>
+ *             <enumeration value="upstream"/>
+ *             <enumeration value="downstream"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "parmOrEqnOrFormat" +}) +@XmlRootElement(name = "macro") +public class Macro { + + @XmlElementRefs({ + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "doc", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "variables", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Variables.class, required = false), + @XmlElementRef(name = "format", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "sim_specs", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = SimSpecs.class, required = false), + @XmlElementRef(name = "parm", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "views", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Views.class, required = false) + }) + protected List parmOrEqnOrFormat; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "namespace") + protected String namespace; + @XmlAttribute(name = "filter") + protected String filter; + @XmlAttribute(name = "applyto") + protected String applyto; + + /** + * Gets the value of the parmOrEqnOrFormat property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the parmOrEqnOrFormat property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getParmOrEqnOrFormat().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Variables } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link SimSpecs } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Views } + * + * + */ + public List getParmOrEqnOrFormat() { + if (parmOrEqnOrFormat == null) { + parmOrEqnOrFormat = new ArrayList(); + } + return this.parmOrEqnOrFormat; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the namespace property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNamespace() { + return namespace; + } + + /** + * Sets the value of the namespace property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNamespace(String value) { + this.namespace = value; + } + + /** + * Gets the value of the filter property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFilter() { + return filter; + } + + /** + * Sets the value of the filter property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFilter(String value) { + this.filter = value; + } + + /** + * Gets the value of the applyto property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getApplyto() { + return applyto; + } + + /** + * Sets the value of the applyto property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setApplyto(String value) { + this.applyto = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MenuActionChoices.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MenuActionChoices.java new file mode 100644 index 00000000..cb58553a --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MenuActionChoices.java @@ -0,0 +1,142 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for menu_action_choices. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="menu_action_choices">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="open"/>
+ *     <enumeration value="close"/>
+ *     <enumeration value="save"/>
+ *     <enumeration value="save_as"/>
+ *     <enumeration value="save_as_image"/>
+ *     <enumeration value="revert"/>
+ *     <enumeration value="print_setup"/>
+ *     <enumeration value="print"/>
+ *     <enumeration value="print_screen"/>
+ *     <enumeration value="run"/>
+ *     <enumeration value="pause"/>
+ *     <enumeration value="resume"/>
+ *     <enumeration value="stop"/>
+ *     <enumeration value="run_restore"/>
+ *     <enumeration value="restore_all"/>
+ *     <enumeration value="restore_sliders"/>
+ *     <enumeration value="restore_knobs"/>
+ *     <enumeration value="restore_list_inputs"/>
+ *     <enumeration value="restore_graphical_inputs"/>
+ *     <enumeration value="restore_switches"/>
+ *     <enumeration value="restore_numeric_displays"/>
+ *     <enumeration value="restore_graphs_tables"/>
+ *     <enumeration value="restore_lamps_gauges"/>
+ *     <enumeration value="data_manager"/>
+ *     <enumeration value="save_data_now"/>
+ *     <enumeration value="import_now"/>
+ *     <enumeration value="export_now"/>
+ *     <enumeration value="exit"/>
+ *     <enumeration value="find"/>
+ *     <enumeration value="run_specs"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "menu_action_choices") +@XmlEnum +public enum MenuActionChoices { + + @XmlEnumValue("open") + OPEN("open"), + @XmlEnumValue("close") + CLOSE("close"), + @XmlEnumValue("save") + SAVE("save"), + @XmlEnumValue("save_as") + SAVE_AS("save_as"), + @XmlEnumValue("save_as_image") + SAVE_AS_IMAGE("save_as_image"), + @XmlEnumValue("revert") + REVERT("revert"), + @XmlEnumValue("print_setup") + PRINT_SETUP("print_setup"), + @XmlEnumValue("print") + PRINT("print"), + @XmlEnumValue("print_screen") + PRINT_SCREEN("print_screen"), + @XmlEnumValue("run") + RUN("run"), + @XmlEnumValue("pause") + PAUSE("pause"), + @XmlEnumValue("resume") + RESUME("resume"), + @XmlEnumValue("stop") + STOP("stop"), + @XmlEnumValue("run_restore") + RUN_RESTORE("run_restore"), + @XmlEnumValue("restore_all") + RESTORE_ALL("restore_all"), + @XmlEnumValue("restore_sliders") + RESTORE_SLIDERS("restore_sliders"), + @XmlEnumValue("restore_knobs") + RESTORE_KNOBS("restore_knobs"), + @XmlEnumValue("restore_list_inputs") + RESTORE_LIST_INPUTS("restore_list_inputs"), + @XmlEnumValue("restore_graphical_inputs") + RESTORE_GRAPHICAL_INPUTS("restore_graphical_inputs"), + @XmlEnumValue("restore_switches") + RESTORE_SWITCHES("restore_switches"), + @XmlEnumValue("restore_numeric_displays") + RESTORE_NUMERIC_DISPLAYS("restore_numeric_displays"), + @XmlEnumValue("restore_graphs_tables") + RESTORE_GRAPHS_TABLES("restore_graphs_tables"), + @XmlEnumValue("restore_lamps_gauges") + RESTORE_LAMPS_GAUGES("restore_lamps_gauges"), + @XmlEnumValue("data_manager") + DATA_MANAGER("data_manager"), + @XmlEnumValue("save_data_now") + SAVE_DATA_NOW("save_data_now"), + @XmlEnumValue("import_now") + IMPORT_NOW("import_now"), + @XmlEnumValue("export_now") + EXPORT_NOW("export_now"), + @XmlEnumValue("exit") + EXIT("exit"), + @XmlEnumValue("find") + FIND("find"), + @XmlEnumValue("run_specs") + RUN_SPECS("run_specs"); + private final String value; + + MenuActionChoices(String v) { + value = v; + } + + public String value() { + return value; + } + + public static MenuActionChoices fromValue(String v) { + for (MenuActionChoices c: MenuActionChoices.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MinMaxType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MinMaxType.java new file mode 100644 index 00000000..471afc5b --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/MinMaxType.java @@ -0,0 +1,92 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for min_max_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="min_max_type">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "min_max_type") +public class MinMaxType { + + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Model.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Model.java new file mode 100644 index 00000000..d5f7d0af --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Model.java @@ -0,0 +1,266 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sim_specs" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}behavior" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}variables"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}views" minOccurs="0"/>
+ *       </sequence>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="run" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="password" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "simSpecs", + "behavior", + "variables", + "views" +}) +@XmlRootElement(name = "model") +public class Model { + + @XmlElement(name = "sim_specs") + protected SimSpecs simSpecs; + protected Behavior behavior; + @XmlElement(required = true) + protected Variables variables; + protected Views views; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "resource") + protected String resource; + @XmlAttribute(name = "run") + protected Boolean run; + @XmlAttribute(name = "password") + protected String password; + + /** + * Gets the value of the simSpecs property. + * + * @return + * possible object is + * {@link SimSpecs } + * + */ + public SimSpecs getSimSpecs() { + return simSpecs; + } + + /** + * Sets the value of the simSpecs property. + * + * @param value + * allowed object is + * {@link SimSpecs } + * + */ + public void setSimSpecs(SimSpecs value) { + this.simSpecs = value; + } + + /** + * Gets the value of the behavior property. + * + * @return + * possible object is + * {@link Behavior } + * + */ + public Behavior getBehavior() { + return behavior; + } + + /** + * Sets the value of the behavior property. + * + * @param value + * allowed object is + * {@link Behavior } + * + */ + public void setBehavior(Behavior value) { + this.behavior = value; + } + + /** + * Gets the value of the variables property. + * + * @return + * possible object is + * {@link Variables } + * + */ + public Variables getVariables() { + return variables; + } + + /** + * Sets the value of the variables property. + * + * @param value + * allowed object is + * {@link Variables } + * + */ + public void setVariables(Variables value) { + this.variables = value; + } + + /** + * Gets the value of the views property. + * + * @return + * possible object is + * {@link Views } + * + */ + public Views getViews() { + return views; + } + + /** + * Sets the value of the views property. + * + * @param value + * allowed object is + * {@link Views } + * + */ + public void setViews(Views value) { + this.views = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the run property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRun() { + if (run == null) { + return false; + } else { + return run; + } + } + + /** + * Sets the value of the run property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRun(Boolean value) { + this.run = value; + } + + /** + * Gets the value of the password property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPassword() { + return password; + } + + /** + * Sets the value of the password property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPassword(String value) { + this.password = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ModelUnits.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ModelUnits.java new file mode 100644 index 00000000..f61c1ac9 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ModelUnits.java @@ -0,0 +1,202 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element name="unit" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element name="alias" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                 </choice>
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </sequence>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "unit" +}) +@XmlRootElement(name = "model_units") +public class ModelUnits { + + protected List unit; + + /** + * Gets the value of the unit property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the unit property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getUnit().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ModelUnits.Unit } + * + * + */ + public List getUnit() { + if (unit == null) { + unit = new ArrayList(); + } + return this.unit; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element name="alias" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+     *       </choice>
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "eqn", + "alias" + }) + public static class Unit { + + protected String eqn; + protected List alias; + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the eqn property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getEqn() { + return eqn; + } + + /** + * Sets the value of the eqn property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setEqn(String value) { + this.eqn = value; + } + + /** + * Gets the value of the alias property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the alias property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getAlias().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * + * + */ + public List getAlias() { + if (alias == null) { + alias = new ArrayList(); + } + return this.alias; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Module.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Module.java new file mode 100644 index 00000000..0e667540 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Module.java @@ -0,0 +1,218 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element name="connect" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "connect" +}) +@XmlRootElement(name = "module") +public class Module { + + protected List connect; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "resource") + protected String resource; + + /** + * Gets the value of the connect property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the connect property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getConnect().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Module.Connect } + * + * + */ + public List getConnect() { + if (connect == null) { + connect = new ArrayList(); + } + return this.connect; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="to" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="from" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Connect { + + @XmlAttribute(name = "to", required = true) + protected String to; + @XmlAttribute(name = "from", required = true) + protected String from; + + /** + * Gets the value of the to property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTo() { + return to; + } + + /** + * Sets the value of the to property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTo(String value) { + this.to = value; + } + + /** + * Gets the value of the from property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFrom() { + return from; + } + + /** + * Sets the value of the from property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFrom(String value) { + this.from = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/NumericDisplay.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/NumericDisplay.java new file mode 100644 index 00000000..9b9d37df --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/NumericDisplay.java @@ -0,0 +1,956 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="retain_ending_value" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "numeric_display") +public class NumericDisplay { + + @XmlElement(required = true) + protected NumericDisplay.Entity entity; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "retain_ending_value") + protected Boolean retainEndingValue; + @XmlAttribute(name = "uid", required = true) + protected int uid; + @XmlAttribute(name = "precision") + protected Double precision; + @XmlAttribute(name = "scale_by") + protected BigInteger scaleBy; + @XmlAttribute(name = "delimit_000s") + protected Boolean delimit000S; + @XmlAttribute(name = "display_as") + protected String displayAs; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link NumericDisplay.Entity } + * + */ + public NumericDisplay.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link NumericDisplay.Entity } + * + */ + public void setEntity(NumericDisplay.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return false; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the retainEndingValue property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRetainEndingValue() { + if (retainEndingValue == null) { + return false; + } else { + return retainEndingValue; + } + } + + /** + * Sets the value of the retainEndingValue property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRetainEndingValue(Boolean value) { + this.retainEndingValue = value; + } + + /** + * Gets the value of the uid property. + * + */ + public int getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + */ + public void setUid(int value) { + this.uid = value; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + /** + * Gets the value of the scaleBy property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getScaleBy() { + if (scaleBy == null) { + return new BigInteger("1"); + } else { + return scaleBy; + } + } + + /** + * Sets the value of the scaleBy property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setScaleBy(BigInteger value) { + this.scaleBy = value; + } + + /** + * Gets the value of the delimit000S property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelimit000S() { + if (delimit000S == null) { + return false; + } else { + return delimit000S; + } + } + + /** + * Sets the value of the delimit000S property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelimit000S(Boolean value) { + this.delimit000S = value; + } + + /** + * Gets the value of the displayAs property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayAs() { + if (displayAs == null) { + return "number"; + } else { + return displayAs; + } + } + + /** + * Sets the value of the displayAs property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayAs(String value) { + this.displayAs = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ObjectFactory.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ObjectFactory.java new file mode 100644 index 00000000..b17dece4 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ObjectFactory.java @@ -0,0 +1,1368 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlElementDecl; +import javax.xml.bind.annotation.XmlRegistry; +import javax.xml.namespace.QName; + + +/** + * This object contains factory methods for each + * Java content interface and Java element interface + * generated in the org.simantics.sysdyn.xmile.schema1 package. + *

An ObjectFactory allows you to programatically + * construct new instances of the Java representation + * for XML content. The Java representation of XML + * content can consist of schema derived interfaces + * and classes representing the binding of schema + * type definitions, element declarations and model + * groups. Factory methods for each of these are + * provided in this class. + * + */ +@XmlRegistry +public class ObjectFactory { + + private final static QName _ViewContentTypeConnectorFromAlias_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "alias"); + private final static QName _StockElementQueue_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "queue"); + private final static QName _StockElementNonNegative_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "non_negative"); + private final static QName _StockElementInflow_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "inflow"); + private final static QName _StockElementMathml_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "mathml"); + private final static QName _StockElementOutflow_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "outflow"); + private final static QName _StockElementEqn_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "eqn"); + private final static QName _FlowElement_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "element"); + private final static QName _FlowDoc_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "doc"); + private final static QName _FlowUnits_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "units"); + private final static QName _FlowMultiplier_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "multiplier"); + private final static QName _FlowLeakIntegers_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "leak_integers"); + private final static QName _FlowLeak_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "leak"); + private final static QName _FlowOverflow_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "overflow"); + private final static QName _ContactFax_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "fax"); + private final static QName _ContactEmail_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "email"); + private final static QName _ContactPhone_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "phone"); + private final static QName _ContactWebsite_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "website"); + private final static QName _ContactAddress_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "address"); + private final static QName _MacroParm_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "parm"); + private final static QName _MacroFormat_QNAME = new QName("http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", "format"); + + /** + * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.simantics.sysdyn.xmile.schema1 + * + */ + public ObjectFactory() { + } + + /** + * Create an instance of {@link Slider } + * + */ + public Slider createSlider() { + return new Slider(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options } + * + */ + public org.simantics.sysdyn.xmile.schema.Options createOptions() { + return new org.simantics.sysdyn.xmile.schema.Options(); + } + + /** + * Create an instance of {@link Includes } + * + */ + public Includes createIncludes() { + return new Includes(); + } + + /** + * Create an instance of {@link SimSpecs } + * + */ + public SimSpecs createSimSpecs() { + return new SimSpecs(); + } + + /** + * Create an instance of {@link ModelUnits } + * + */ + public ModelUnits createModelUnits() { + return new ModelUnits(); + } + + /** + * Create an instance of {@link Behavior } + * + */ + public Behavior createBehavior() { + return new Behavior(); + } + + /** + * Create an instance of {@link Data } + * + */ + public Data createData() { + return new Data(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Dimensions } + * + */ + public org.simantics.sysdyn.xmile.schema.Dimensions createDimensions() { + return new org.simantics.sysdyn.xmile.schema.Dimensions(); + } + + /** + * Create an instance of {@link EventPoster } + * + */ + public EventPoster createEventPoster() { + return new EventPoster(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Stock } + * + */ + public org.simantics.sysdyn.xmile.schema.Stock createStock() { + return new org.simantics.sysdyn.xmile.schema.Stock(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Flow } + * + */ + public org.simantics.sysdyn.xmile.schema.Flow createFlow() { + return new org.simantics.sysdyn.xmile.schema.Flow(); + } + + /** + * Create an instance of {@link Auxiliary } + * + */ + public Auxiliary createAuxiliary() { + return new Auxiliary(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Group } + * + */ + public org.simantics.sysdyn.xmile.schema.Group createGroup() { + return new org.simantics.sysdyn.xmile.schema.Group(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Module } + * + */ + public org.simantics.sysdyn.xmile.schema.Module createModule() { + return new org.simantics.sysdyn.xmile.schema.Module(); + } + + /** + * Create an instance of {@link Views } + * + */ + public Views createViews() { + return new Views(); + } + + /** + * Create an instance of {@link Xmile } + * + */ + public Xmile createXmile() { + return new Xmile(); + } + + /** + * Create an instance of {@link Knob } + * + */ + public Knob createKnob() { + return new Knob(); + } + + /** + * Create an instance of {@link Switch } + * + */ + public Switch createSwitch() { + return new Switch(); + } + + /** + * Create an instance of {@link Plot } + * + */ + public Plot createPlot() { + return new Plot(); + } + + /** + * Create an instance of {@link ViewContentType } + * + */ + public ViewContentType createViewContentType() { + return new ViewContentType(); + } + + /** + * Create an instance of {@link ListInput } + * + */ + public ListInput createListInput() { + return new ListInput(); + } + + /** + * Create an instance of {@link NumericDisplay } + * + */ + public NumericDisplay createNumericDisplay() { + return new NumericDisplay(); + } + + /** + * Create an instance of {@link GraphicalInput } + * + */ + public GraphicalInput createGraphicalInput() { + return new GraphicalInput(); + } + + /** + * Create an instance of {@link SwitchAction } + * + */ + public SwitchAction createSwitchAction() { + return new SwitchAction(); + } + + /** + * Create an instance of {@link ListInput.NumericInput } + * + */ + public ListInput.NumericInput createListInputNumericInput() { + return new ListInput.NumericInput(); + } + + /** + * Create an instance of {@link ViewContentType.Button } + * + */ + public ViewContentType.Button createViewContentTypeButton() { + return new ViewContentType.Button(); + } + + /** + * Create an instance of {@link ViewContentType.Table } + * + */ + public ViewContentType.Table createViewContentTypeTable() { + return new ViewContentType.Table(); + } + + /** + * Create an instance of {@link ViewContentType.Table.Item } + * + */ + public ViewContentType.Table.Item createViewContentTypeTableItem() { + return new ViewContentType.Table.Item(); + } + + /** + * Create an instance of {@link ViewContentType.Connector } + * + */ + public ViewContentType.Connector createViewContentTypeConnector() { + return new ViewContentType.Connector(); + } + + /** + * Create an instance of {@link ViewContentType.Connector.From } + * + */ + public ViewContentType.Connector.From createViewContentTypeConnectorFrom() { + return new ViewContentType.Connector.From(); + } + + /** + * Create an instance of {@link ViewContentType.Group } + * + */ + public ViewContentType.Group createViewContentTypeGroup() { + return new ViewContentType.Group(); + } + + /** + * Create an instance of {@link ViewContentType.Flow } + * + */ + public ViewContentType.Flow createViewContentTypeFlow() { + return new ViewContentType.Flow(); + } + + /** + * Create an instance of {@link ViewContentType.Flow.Pts } + * + */ + public ViewContentType.Flow.Pts createViewContentTypeFlowPts() { + return new ViewContentType.Flow.Pts(); + } + + /** + * Create an instance of {@link Xmile.Dimensions } + * + */ + public Xmile.Dimensions createXmileDimensions() { + return new Xmile.Dimensions(); + } + + /** + * Create an instance of {@link Xmile.Dimensions.Dim } + * + */ + public Xmile.Dimensions.Dim createXmileDimensionsDim() { + return new Xmile.Dimensions.Dim(); + } + + /** + * Create an instance of {@link EventPoster.Threshold } + * + */ + public EventPoster.Threshold createEventPosterThreshold() { + return new EventPoster.Threshold(); + } + + /** + * Create an instance of {@link Data.Export } + * + */ + public Data.Export createDataExport() { + return new Data.Export(); + } + + /** + * Create an instance of {@link Conveyor } + * + */ + public Conveyor createConveyor() { + return new Conveyor(); + } + + /** + * Create an instance of {@link Slider.Entity } + * + */ + public Slider.Entity createSliderEntity() { + return new Slider.Entity(); + } + + /** + * Create an instance of {@link ResetTo } + * + */ + public ResetTo createResetTo() { + return new ResetTo(); + } + + /** + * Create an instance of {@link Header } + * + */ + public Header createHeader() { + return new Header(); + } + + /** + * Create an instance of {@link Image } + * + */ + public Image createImage() { + return new Image(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesConveyor } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesConveyor createOptionsUsesConveyor() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesConveyor(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesQueue } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesQueue createOptionsUsesQueue() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesQueue(); + } + + /** + * Create an instance of {@link EmptyType } + * + */ + public EmptyType createEmptyType() { + return new EmptyType(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesMacros } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesMacros createOptionsUsesMacros() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesMacros(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesEventPosters } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesEventPosters createOptionsUsesEventPosters() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesEventPosters(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesOutputs } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesOutputs createOptionsUsesOutputs() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesOutputs(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesInputs } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesInputs createOptionsUsesInputs() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesInputs(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Options.UsesArrays } + * + */ + public org.simantics.sysdyn.xmile.schema.Options.UsesArrays createOptionsUsesArrays() { + return new org.simantics.sysdyn.xmile.schema.Options.UsesArrays(); + } + + /** + * Create an instance of {@link Product } + * + */ + public Product createProduct() { + return new Product(); + } + + /** + * Create an instance of {@link Contact } + * + */ + public Contact createContact() { + return new Contact(); + } + + /** + * Create an instance of {@link Includes.Include } + * + */ + public Includes.Include createIncludesInclude() { + return new Includes.Include(); + } + + /** + * Create an instance of {@link SimSpecs.Dt } + * + */ + public SimSpecs.Dt createSimSpecsDt() { + return new SimSpecs.Dt(); + } + + /** + * Create an instance of {@link SimSpecs.Run } + * + */ + public SimSpecs.Run createSimSpecsRun() { + return new SimSpecs.Run(); + } + + /** + * Create an instance of {@link ModelUnits.Unit } + * + */ + public ModelUnits.Unit createModelUnitsUnit() { + return new ModelUnits.Unit(); + } + + /** + * Create an instance of {@link BooleanOrEmptyType } + * + */ + public BooleanOrEmptyType createBooleanOrEmptyType() { + return new BooleanOrEmptyType(); + } + + /** + * Create an instance of {@link Behavior.Stock } + * + */ + public Behavior.Stock createBehaviorStock() { + return new Behavior.Stock(); + } + + /** + * Create an instance of {@link Behavior.Flow } + * + */ + public Behavior.Flow createBehaviorFlow() { + return new Behavior.Flow(); + } + + /** + * Create an instance of {@link Data.Import } + * + */ + public Data.Import createDataImport() { + return new Data.Import(); + } + + /** + * Create an instance of {@link Style } + * + */ + public Style createStyle() { + return new Style(); + } + + /** + * Create an instance of {@link StyleType } + * + */ + public StyleType createStyleType() { + return new StyleType(); + } + + /** + * Create an instance of {@link Macro } + * + */ + public Macro createMacro() { + return new Macro(); + } + + /** + * Create an instance of {@link Variables } + * + */ + public Variables createVariables() { + return new Variables(); + } + + /** + * Create an instance of {@link Gf } + * + */ + public Gf createGf() { + return new Gf(); + } + + /** + * Create an instance of {@link MinMaxType } + * + */ + public MinMaxType createMinMaxType() { + return new MinMaxType(); + } + + /** + * Create an instance of {@link PointsType } + * + */ + public PointsType createPointsType() { + return new PointsType(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Dimensions.Dim } + * + */ + public org.simantics.sysdyn.xmile.schema.Dimensions.Dim createDimensionsDim() { + return new org.simantics.sysdyn.xmile.schema.Dimensions.Dim(); + } + + /** + * Create an instance of {@link Scale } + * + */ + public Scale createScale() { + return new Scale(); + } + + /** + * Create an instance of {@link Range } + * + */ + public Range createRange() { + return new Range(); + } + + /** + * Create an instance of {@link Format } + * + */ + public Format createFormat() { + return new Format(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Stock.Element } + * + */ + public org.simantics.sysdyn.xmile.schema.Stock.Element createStockElement() { + return new org.simantics.sysdyn.xmile.schema.Stock.Element(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Flow.Element } + * + */ + public org.simantics.sysdyn.xmile.schema.Flow.Element createFlowElement() { + return new org.simantics.sysdyn.xmile.schema.Flow.Element(); + } + + /** + * Create an instance of {@link Auxiliary.Element } + * + */ + public Auxiliary.Element createAuxiliaryElement() { + return new Auxiliary.Element(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Group.Entity } + * + */ + public org.simantics.sysdyn.xmile.schema.Group.Entity createGroupEntity() { + return new org.simantics.sysdyn.xmile.schema.Group.Entity(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Module.Connect } + * + */ + public org.simantics.sysdyn.xmile.schema.Module.Connect createModuleConnect() { + return new org.simantics.sysdyn.xmile.schema.Module.Connect(); + } + + /** + * Create an instance of {@link Views.View } + * + */ + public Views.View createViewsView() { + return new Views.View(); + } + + /** + * Create an instance of {@link Model } + * + */ + public Model createModel() { + return new Model(); + } + + /** + * Create an instance of {@link Knob.Entity } + * + */ + public Knob.Entity createKnobEntity() { + return new Knob.Entity(); + } + + /** + * Create an instance of {@link Sound } + * + */ + public Sound createSound() { + return new Sound(); + } + + /** + * Create an instance of {@link Link } + * + */ + public Link createLink() { + return new Link(); + } + + /** + * Create an instance of {@link TextBox } + * + */ + public TextBox createTextBox() { + return new TextBox(); + } + + /** + * Create an instance of {@link Video } + * + */ + public Video createVideo() { + return new Video(); + } + + /** + * Create an instance of {@link Switch.Entity } + * + */ + public Switch.Entity createSwitchEntity() { + return new Switch.Entity(); + } + + /** + * Create an instance of {@link Plot.Entity } + * + */ + public Plot.Entity createPlotEntity() { + return new Plot.Entity(); + } + + /** + * Create an instance of {@link Shape } + * + */ + public Shape createShape() { + return new Shape(); + } + + /** + * Create an instance of {@link StackedContainer } + * + */ + public StackedContainer createStackedContainer() { + return new StackedContainer(); + } + + /** + * Create an instance of {@link ViewContentType.Stock } + * + */ + public ViewContentType.Stock createViewContentTypeStock() { + return new ViewContentType.Stock(); + } + + /** + * Create an instance of {@link ViewContentType.Aux } + * + */ + public ViewContentType.Aux createViewContentTypeAux() { + return new ViewContentType.Aux(); + } + + /** + * Create an instance of {@link ViewContentType.Module } + * + */ + public ViewContentType.Module createViewContentTypeModule() { + return new ViewContentType.Module(); + } + + /** + * Create an instance of {@link ViewContentType.Alias } + * + */ + public ViewContentType.Alias createViewContentTypeAlias() { + return new ViewContentType.Alias(); + } + + /** + * Create an instance of {@link GraphicsFrame } + * + */ + public GraphicsFrame createGraphicsFrame() { + return new GraphicsFrame(); + } + + /** + * Create an instance of {@link ViewContentType.Graph } + * + */ + public ViewContentType.Graph createViewContentTypeGraph() { + return new ViewContentType.Graph(); + } + + /** + * Create an instance of {@link NumericDisplay.Entity } + * + */ + public NumericDisplay.Entity createNumericDisplayEntity() { + return new NumericDisplay.Entity(); + } + + /** + * Create an instance of {@link GraphicalInput.Entity } + * + */ + public GraphicalInput.Entity createGraphicalInputEntity() { + return new GraphicalInput.Entity(); + } + + /** + * Create an instance of {@link ViewContentType.Options } + * + */ + public ViewContentType.Options createViewContentTypeOptions() { + return new ViewContentType.Options(); + } + + /** + * Create an instance of {@link Popup } + * + */ + public Popup createPopup() { + return new Popup(); + } + + /** + * Create an instance of {@link org.simantics.sysdyn.xmile.schema.Entity } + * + */ + public org.simantics.sysdyn.xmile.schema.Entity createEntity() { + return new org.simantics.sysdyn.xmile.schema.Entity(); + } + + /** + * Create an instance of {@link SwitchAction.Group } + * + */ + public SwitchAction.Group createSwitchActionGroup() { + return new SwitchAction.Group(); + } + + /** + * Create an instance of {@link ListInput.NumericInput.Entity } + * + */ + public ListInput.NumericInput.Entity createListInputNumericInputEntity() { + return new ListInput.NumericInput.Entity(); + } + + /** + * Create an instance of {@link ViewContentType.Button.MenuAction } + * + */ + public ViewContentType.Button.MenuAction createViewContentTypeButtonMenuAction() { + return new ViewContentType.Button.MenuAction(); + } + + /** + * Create an instance of {@link ViewContentType.Table.Item.Entity } + * + */ + public ViewContentType.Table.Item.Entity createViewContentTypeTableItemEntity() { + return new ViewContentType.Table.Item.Entity(); + } + + /** + * Create an instance of {@link ViewContentType.Connector.From.Alias } + * + */ + public ViewContentType.Connector.From.Alias createViewContentTypeConnectorFromAlias() { + return new ViewContentType.Connector.From.Alias(); + } + + /** + * Create an instance of {@link ViewContentType.Group.Item } + * + */ + public ViewContentType.Group.Item createViewContentTypeGroupItem() { + return new ViewContentType.Group.Item(); + } + + /** + * Create an instance of {@link ViewContentType.Flow.Pts.Pt } + * + */ + public ViewContentType.Flow.Pts.Pt createViewContentTypeFlowPtsPt() { + return new ViewContentType.Flow.Pts.Pt(); + } + + /** + * Create an instance of {@link Xmile.Dimensions.Dim.Elem } + * + */ + public Xmile.Dimensions.Dim.Elem createXmileDimensionsDimElem() { + return new Xmile.Dimensions.Dim.Elem(); + } + + /** + * Create an instance of {@link EventPoster.Threshold.Event } + * + */ + public EventPoster.Threshold.Event createEventPosterThresholdEvent() { + return new EventPoster.Threshold.Event(); + } + + /** + * Create an instance of {@link Data.Export.Table } + * + */ + public Data.Export.Table createDataExportTable() { + return new Data.Export.Table(); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link ViewContentType.Connector.From.Alias }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "alias", scope = ViewContentType.Connector.From.class) + public JAXBElement createViewContentTypeConnectorFromAlias(ViewContentType.Connector.From.Alias value) { + return new JAXBElement(_ViewContentTypeConnectorFromAlias_QNAME, ViewContentType.Connector.From.Alias.class, ViewContentType.Connector.From.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "queue", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementQueue(EmptyType value) { + return new JAXBElement(_StockElementQueue_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "non_negative", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementNonNegative(BooleanOrEmptyType value) { + return new JAXBElement(_StockElementNonNegative_QNAME, BooleanOrEmptyType.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "inflow", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementInflow(String value) { + return new JAXBElement(_StockElementInflow_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "outflow", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementOutflow(String value) { + return new JAXBElement(_StockElementOutflow_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = org.simantics.sysdyn.xmile.schema.Stock.Element.class) + public JAXBElement createStockElementEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "non_negative", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowNonNegative(BooleanOrEmptyType value) { + return new JAXBElement(_StockElementNonNegative_QNAME, BooleanOrEmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link org.simantics.sysdyn.xmile.schema.Flow.Element }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "element", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowElement(org.simantics.sysdyn.xmile.schema.Flow.Element value) { + return new JAXBElement(_FlowElement_QNAME, org.simantics.sysdyn.xmile.schema.Flow.Element.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "doc", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowDoc(String value) { + return new JAXBElement(_FlowDoc_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "units", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowUnits(String value) { + return new JAXBElement(_FlowUnits_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "multiplier", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowMultiplier(String value) { + return new JAXBElement(_FlowMultiplier_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "leak_integers", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowLeakIntegers(EmptyType value) { + return new JAXBElement(_FlowLeakIntegers_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "leak", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowLeak(EmptyType value) { + return new JAXBElement(_FlowLeak_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "overflow", scope = org.simantics.sysdyn.xmile.schema.Flow.class) + public JAXBElement createFlowOverflow(EmptyType value) { + return new JAXBElement(_FlowOverflow_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "queue", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockQueue(EmptyType value) { + return new JAXBElement(_StockElementQueue_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "non_negative", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockNonNegative(BooleanOrEmptyType value) { + return new JAXBElement(_StockElementNonNegative_QNAME, BooleanOrEmptyType.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link org.simantics.sysdyn.xmile.schema.Stock.Element }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "element", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockElement(org.simantics.sysdyn.xmile.schema.Stock.Element value) { + return new JAXBElement(_FlowElement_QNAME, org.simantics.sysdyn.xmile.schema.Stock.Element.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "doc", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockDoc(String value) { + return new JAXBElement(_FlowDoc_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "inflow", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockInflow(String value) { + return new JAXBElement(_StockElementInflow_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "units", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockUnits(String value) { + return new JAXBElement(_FlowUnits_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "outflow", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockOutflow(String value) { + return new JAXBElement(_StockElementOutflow_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = org.simantics.sysdyn.xmile.schema.Stock.class) + public JAXBElement createStockEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Stock.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "fax", scope = Contact.class) + public JAXBElement createContactFax(String value) { + return new JAXBElement(_ContactFax_QNAME, String.class, Contact.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "email", scope = Contact.class) + public JAXBElement createContactEmail(String value) { + return new JAXBElement(_ContactEmail_QNAME, String.class, Contact.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "phone", scope = Contact.class) + public JAXBElement createContactPhone(String value) { + return new JAXBElement(_ContactPhone_QNAME, String.class, Contact.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "website", scope = Contact.class) + public JAXBElement createContactWebsite(String value) { + return new JAXBElement(_ContactWebsite_QNAME, String.class, Contact.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "address", scope = Contact.class) + public JAXBElement createContactAddress(String value) { + return new JAXBElement(_ContactAddress_QNAME, String.class, Contact.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = Auxiliary.Element.class) + public JAXBElement createAuxiliaryElementMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, Auxiliary.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = Auxiliary.Element.class) + public JAXBElement createAuxiliaryElementEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, Auxiliary.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "parm", scope = Macro.class) + public JAXBElement createMacroParm(String value) { + return new JAXBElement(_MacroParm_QNAME, String.class, Macro.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "format", scope = Macro.class) + public JAXBElement createMacroFormat(String value) { + return new JAXBElement(_MacroFormat_QNAME, String.class, Macro.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "doc", scope = Macro.class) + public JAXBElement createMacroDoc(String value) { + return new JAXBElement(_FlowDoc_QNAME, String.class, Macro.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = Macro.class) + public JAXBElement createMacroEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, Macro.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "non_negative", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementNonNegative(BooleanOrEmptyType value) { + return new JAXBElement(_StockElementNonNegative_QNAME, BooleanOrEmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "multiplier", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementMultiplier(String value) { + return new JAXBElement(_FlowMultiplier_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "leak_integers", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementLeakIntegers(EmptyType value) { + return new JAXBElement(_FlowLeakIntegers_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "leak", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementLeak(EmptyType value) { + return new JAXBElement(_FlowLeak_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link EmptyType }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "overflow", scope = org.simantics.sysdyn.xmile.schema.Flow.Element.class) + public JAXBElement createFlowElementOverflow(EmptyType value) { + return new JAXBElement(_FlowOverflow_QNAME, EmptyType.class, org.simantics.sysdyn.xmile.schema.Flow.Element.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link Auxiliary.Element }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "element", scope = Auxiliary.class) + public JAXBElement createAuxiliaryElement(Auxiliary.Element value) { + return new JAXBElement(_FlowElement_QNAME, Auxiliary.Element.class, Auxiliary.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "doc", scope = Auxiliary.class) + public JAXBElement createAuxiliaryDoc(String value) { + return new JAXBElement(_FlowDoc_QNAME, String.class, Auxiliary.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "mathml", scope = Auxiliary.class) + public JAXBElement createAuxiliaryMathml(String value) { + return new JAXBElement(_StockElementMathml_QNAME, String.class, Auxiliary.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "units", scope = Auxiliary.class) + public JAXBElement createAuxiliaryUnits(String value) { + return new JAXBElement(_FlowUnits_QNAME, String.class, Auxiliary.class, value); + } + + /** + * Create an instance of {@link JAXBElement }{@code <}{@link String }{@code >}} + * + */ + @XmlElementDecl(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", name = "eqn", scope = Auxiliary.class) + public JAXBElement createAuxiliaryEqn(String value) { + return new JAXBElement(_StockElementEqn_QNAME, String.class, Auxiliary.class, value); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Options.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Options.java new file mode 100644 index 00000000..1b91008f --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Options.java @@ -0,0 +1,954 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="uses_conveyor" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="arrest" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="leak" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="uses_queue" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="overflow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="uses_submodels" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+ *         <element name="uses_macros" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="references_macros" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="option_filters" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="uses_event_posters" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="messages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="has_model_view" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+ *         <element name="uses_outputs" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="numeric_display" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="lamp" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="gauge" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="uses_inputs" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="numeric_input" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="graphical_input" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="uses_annotation" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+ *         <element name="uses_arrays" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="max_dimensions" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="invalid_index_value" default="0">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}double">
+ *                       <enumeration value="0"/>
+ *                       <enumeration value="NaN"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attribute name="namespace" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "options") +public class Options { + + @XmlElement(name = "uses_conveyor") + protected Options.UsesConveyor usesConveyor; + @XmlElement(name = "uses_queue") + protected Options.UsesQueue usesQueue; + @XmlElement(name = "uses_submodels") + protected EmptyType usesSubmodels; + @XmlElement(name = "uses_macros") + protected Options.UsesMacros usesMacros; + @XmlElement(name = "uses_event_posters") + protected Options.UsesEventPosters usesEventPosters; + @XmlElement(name = "has_model_view") + protected EmptyType hasModelView; + @XmlElement(name = "uses_outputs") + protected Options.UsesOutputs usesOutputs; + @XmlElement(name = "uses_inputs") + protected Options.UsesInputs usesInputs; + @XmlElement(name = "uses_annotation") + protected EmptyType usesAnnotation; + @XmlElement(name = "uses_arrays") + protected Options.UsesArrays usesArrays; + @XmlAttribute(name = "namespace") + protected String namespace; + + /** + * Gets the value of the usesConveyor property. + * + * @return + * possible object is + * {@link Options.UsesConveyor } + * + */ + public Options.UsesConveyor getUsesConveyor() { + return usesConveyor; + } + + /** + * Sets the value of the usesConveyor property. + * + * @param value + * allowed object is + * {@link Options.UsesConveyor } + * + */ + public void setUsesConveyor(Options.UsesConveyor value) { + this.usesConveyor = value; + } + + /** + * Gets the value of the usesQueue property. + * + * @return + * possible object is + * {@link Options.UsesQueue } + * + */ + public Options.UsesQueue getUsesQueue() { + return usesQueue; + } + + /** + * Sets the value of the usesQueue property. + * + * @param value + * allowed object is + * {@link Options.UsesQueue } + * + */ + public void setUsesQueue(Options.UsesQueue value) { + this.usesQueue = value; + } + + /** + * Gets the value of the usesSubmodels property. + * + * @return + * possible object is + * {@link EmptyType } + * + */ + public EmptyType getUsesSubmodels() { + return usesSubmodels; + } + + /** + * Sets the value of the usesSubmodels property. + * + * @param value + * allowed object is + * {@link EmptyType } + * + */ + public void setUsesSubmodels(EmptyType value) { + this.usesSubmodels = value; + } + + /** + * Gets the value of the usesMacros property. + * + * @return + * possible object is + * {@link Options.UsesMacros } + * + */ + public Options.UsesMacros getUsesMacros() { + return usesMacros; + } + + /** + * Sets the value of the usesMacros property. + * + * @param value + * allowed object is + * {@link Options.UsesMacros } + * + */ + public void setUsesMacros(Options.UsesMacros value) { + this.usesMacros = value; + } + + /** + * Gets the value of the usesEventPosters property. + * + * @return + * possible object is + * {@link Options.UsesEventPosters } + * + */ + public Options.UsesEventPosters getUsesEventPosters() { + return usesEventPosters; + } + + /** + * Sets the value of the usesEventPosters property. + * + * @param value + * allowed object is + * {@link Options.UsesEventPosters } + * + */ + public void setUsesEventPosters(Options.UsesEventPosters value) { + this.usesEventPosters = value; + } + + /** + * Gets the value of the hasModelView property. + * + * @return + * possible object is + * {@link EmptyType } + * + */ + public EmptyType getHasModelView() { + return hasModelView; + } + + /** + * Sets the value of the hasModelView property. + * + * @param value + * allowed object is + * {@link EmptyType } + * + */ + public void setHasModelView(EmptyType value) { + this.hasModelView = value; + } + + /** + * Gets the value of the usesOutputs property. + * + * @return + * possible object is + * {@link Options.UsesOutputs } + * + */ + public Options.UsesOutputs getUsesOutputs() { + return usesOutputs; + } + + /** + * Sets the value of the usesOutputs property. + * + * @param value + * allowed object is + * {@link Options.UsesOutputs } + * + */ + public void setUsesOutputs(Options.UsesOutputs value) { + this.usesOutputs = value; + } + + /** + * Gets the value of the usesInputs property. + * + * @return + * possible object is + * {@link Options.UsesInputs } + * + */ + public Options.UsesInputs getUsesInputs() { + return usesInputs; + } + + /** + * Sets the value of the usesInputs property. + * + * @param value + * allowed object is + * {@link Options.UsesInputs } + * + */ + public void setUsesInputs(Options.UsesInputs value) { + this.usesInputs = value; + } + + /** + * Gets the value of the usesAnnotation property. + * + * @return + * possible object is + * {@link EmptyType } + * + */ + public EmptyType getUsesAnnotation() { + return usesAnnotation; + } + + /** + * Sets the value of the usesAnnotation property. + * + * @param value + * allowed object is + * {@link EmptyType } + * + */ + public void setUsesAnnotation(EmptyType value) { + this.usesAnnotation = value; + } + + /** + * Gets the value of the usesArrays property. + * + * @return + * possible object is + * {@link Options.UsesArrays } + * + */ + public Options.UsesArrays getUsesArrays() { + return usesArrays; + } + + /** + * Sets the value of the usesArrays property. + * + * @param value + * allowed object is + * {@link Options.UsesArrays } + * + */ + public void setUsesArrays(Options.UsesArrays value) { + this.usesArrays = value; + } + + /** + * Gets the value of the namespace property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getNamespace() { + return namespace; + } + + /** + * Sets the value of the namespace property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setNamespace(String value) { + this.namespace = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="max_dimensions" use="required" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="invalid_index_value" default="0">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}double">
+     *             <enumeration value="0"/>
+     *             <enumeration value="NaN"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesArrays { + + @XmlAttribute(name = "max_dimensions", required = true) + protected BigInteger maxDimensions; + @XmlAttribute(name = "invalid_index_value") + protected Double invalidIndexValue; + + /** + * Gets the value of the maxDimensions property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getMaxDimensions() { + return maxDimensions; + } + + /** + * Sets the value of the maxDimensions property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setMaxDimensions(BigInteger value) { + this.maxDimensions = value; + } + + /** + * Gets the value of the invalidIndexValue property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getInvalidIndexValue() { + if (invalidIndexValue == null) { + return 0.0D; + } else { + return invalidIndexValue; + } + } + + /** + * Sets the value of the invalidIndexValue property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setInvalidIndexValue(Double value) { + this.invalidIndexValue = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="arrest" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="leak" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesConveyor { + + @XmlAttribute(name = "arrest") + protected Boolean arrest; + @XmlAttribute(name = "leak") + protected Boolean leak; + + /** + * Gets the value of the arrest property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isArrest() { + return arrest; + } + + /** + * Sets the value of the arrest property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setArrest(Boolean value) { + this.arrest = value; + } + + /** + * Gets the value of the leak property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isLeak() { + return leak; + } + + /** + * Sets the value of the leak property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLeak(Boolean value) { + this.leak = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="messages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesEventPosters { + + @XmlAttribute(name = "messages") + protected Boolean messages; + + /** + * Gets the value of the messages property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isMessages() { + return messages; + } + + /** + * Sets the value of the messages property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setMessages(Boolean value) { + this.messages = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="numeric_input" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="list" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="graphical_input" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesInputs { + + @XmlAttribute(name = "numeric_input") + protected Boolean numericInput; + @XmlAttribute(name = "list") + protected Boolean list; + @XmlAttribute(name = "graphical_input") + protected Boolean graphicalInput; + + /** + * Gets the value of the numericInput property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isNumericInput() { + return numericInput; + } + + /** + * Sets the value of the numericInput property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNumericInput(Boolean value) { + this.numericInput = value; + } + + /** + * Gets the value of the list property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isList() { + return list; + } + + /** + * Sets the value of the list property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setList(Boolean value) { + this.list = value; + } + + /** + * Gets the value of the graphicalInput property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isGraphicalInput() { + return graphicalInput; + } + + /** + * Sets the value of the graphicalInput property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGraphicalInput(Boolean value) { + this.graphicalInput = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="references_macros" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="option_filters" use="required" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesMacros { + + @XmlAttribute(name = "references_macros", required = true) + protected boolean referencesMacros; + @XmlAttribute(name = "option_filters", required = true) + protected boolean optionFilters; + + /** + * Gets the value of the referencesMacros property. + * + */ + public boolean isReferencesMacros() { + return referencesMacros; + } + + /** + * Sets the value of the referencesMacros property. + * + */ + public void setReferencesMacros(boolean value) { + this.referencesMacros = value; + } + + /** + * Gets the value of the optionFilters property. + * + */ + public boolean isOptionFilters() { + return optionFilters; + } + + /** + * Sets the value of the optionFilters property. + * + */ + public void setOptionFilters(boolean value) { + this.optionFilters = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="numeric_display" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="lamp" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="gauge" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesOutputs { + + @XmlAttribute(name = "numeric_display") + protected Boolean numericDisplay; + @XmlAttribute(name = "lamp") + protected Boolean lamp; + @XmlAttribute(name = "gauge") + protected Boolean gauge; + + /** + * Gets the value of the numericDisplay property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isNumericDisplay() { + return numericDisplay; + } + + /** + * Sets the value of the numericDisplay property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setNumericDisplay(Boolean value) { + this.numericDisplay = value; + } + + /** + * Gets the value of the lamp property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isLamp() { + return lamp; + } + + /** + * Sets the value of the lamp property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLamp(Boolean value) { + this.lamp = value; + } + + /** + * Gets the value of the gauge property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isGauge() { + return gauge; + } + + /** + * Sets the value of the gauge property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setGauge(Boolean value) { + this.gauge = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="overflow" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class UsesQueue { + + @XmlAttribute(name = "overflow") + protected Boolean overflow; + + /** + * Gets the value of the overflow property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isOverflow() { + return overflow; + } + + /** + * Sets the value of the overflow property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setOverflow(Boolean value) { + this.overflow = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Orientation.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Orientation.java new file mode 100644 index 00000000..8577b3cd --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Orientation.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for orientation. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="orientation">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="horizontal"/>
+ *     <enumeration value="vertical"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "orientation") +@XmlEnum +public enum Orientation { + + @XmlEnumValue("horizontal") + HORIZONTAL("horizontal"), + @XmlEnumValue("vertical") + VERTICAL("vertical"); + private final String value; + + Orientation(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Orientation fromValue(String v) { + for (Orientation c: Orientation.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/OrientationType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/OrientationType.java new file mode 100644 index 00000000..02982367 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/OrientationType.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for orientation_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="orientation_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="vertical"/>
+ *     <enumeration value="horizontal"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "orientation_type") +@XmlEnum +public enum OrientationType { + + @XmlEnumValue("vertical") + VERTICAL("vertical"), + @XmlEnumValue("horizontal") + HORIZONTAL("horizontal"); + private final String value; + + OrientationType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static OrientationType fromValue(String v) { + for (OrientationType c: OrientationType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Penstyle.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Penstyle.java new file mode 100644 index 00000000..34bbf551 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Penstyle.java @@ -0,0 +1,64 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for penstyle. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="penstyle">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="solid"/>
+ *     <enumeration value="dotted"/>
+ *     <enumeration value="dashed"/>
+ *     <enumeration value="dot_dashed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "penstyle") +@XmlEnum +public enum Penstyle { + + @XmlEnumValue("solid") + SOLID("solid"), + @XmlEnumValue("dotted") + DOTTED("dotted"), + @XmlEnumValue("dashed") + DASHED("dashed"), + @XmlEnumValue("dot_dashed") + DOT_DASHED("dot_dashed"); + private final String value; + + Penstyle(String v) { + value = v; + } + + public String value() { + return value; + } + + public static Penstyle fromValue(String v) { + for (Penstyle c: Penstyle.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Plot.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Plot.java new file mode 100644 index 00000000..b8636558 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Plot.java @@ -0,0 +1,363 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}scale" minOccurs="0"/>
+ *       </all>
+ *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="pen_width" type="{http://www.w3.org/2001/XMLSchema}int" default="1" />
+ *       <attribute name="pen_style" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}penstyle" default="solid" />
+ *       <attribute name="show_y_axis" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="title" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="right_axis" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "plot") +public class Plot { + + @XmlElement(required = true) + protected Plot.Entity entity; + protected Scale scale; + @XmlAttribute(name = "index") + protected Integer index; + @XmlAttribute(name = "pen_width") + protected Integer penWidth; + @XmlAttribute(name = "pen_style") + protected Penstyle penStyle; + @XmlAttribute(name = "show_y_axis") + protected Boolean showYAxis; + @XmlAttribute(name = "title", required = true) + protected String title; + @XmlAttribute(name = "right_axis") + protected Boolean rightAxis; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link Plot.Entity } + * + */ + public Plot.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link Plot.Entity } + * + */ + public void setEntity(Plot.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the scale property. + * + * @return + * possible object is + * {@link Scale } + * + */ + public Scale getScale() { + return scale; + } + + /** + * Sets the value of the scale property. + * + * @param value + * allowed object is + * {@link Scale } + * + */ + public void setScale(Scale value) { + this.scale = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the penWidth property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getPenWidth() { + if (penWidth == null) { + return 1; + } else { + return penWidth; + } + } + + /** + * Sets the value of the penWidth property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setPenWidth(Integer value) { + this.penWidth = value; + } + + /** + * Gets the value of the penStyle property. + * + * @return + * possible object is + * {@link Penstyle } + * + */ + public Penstyle getPenStyle() { + if (penStyle == null) { + return Penstyle.SOLID; + } else { + return penStyle; + } + } + + /** + * Sets the value of the penStyle property. + * + * @param value + * allowed object is + * {@link Penstyle } + * + */ + public void setPenStyle(Penstyle value) { + this.penStyle = value; + } + + /** + * Gets the value of the showYAxis property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowYAxis() { + if (showYAxis == null) { + return true; + } else { + return showYAxis; + } + } + + /** + * Sets the value of the showYAxis property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowYAxis(Boolean value) { + this.showYAxis = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the rightAxis property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRightAxis() { + if (rightAxis == null) { + return false; + } else { + return rightAxis; + } + } + + /** + * Sets the value of the rightAxis property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRightAxis(Boolean value) { + this.rightAxis = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/PointsType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/PointsType.java new file mode 100644 index 00000000..72f3b871 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/PointsType.java @@ -0,0 +1,98 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for points_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="points_type">
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="sep" type="{http://www.w3.org/2001/XMLSchema}string" default="," />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "points_type", propOrder = { + "value" +}) +public class PointsType { + + @XmlValue + protected String value; + @XmlAttribute(name = "sep") + protected String sep; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the sep property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSep() { + if (sep == null) { + return ","; + } else { + return sep; + } + } + + /** + * Sets the value of the sep property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSep(String value) { + this.sep = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Popup.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Popup.java new file mode 100644 index 00000000..7372307c --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Popup.java @@ -0,0 +1,779 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}text_box"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link"/>
+ *       </choice>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "textBox", + "image", + "video", + "sound", + "link" +}) +@XmlRootElement(name = "popup") +public class Popup { + + @XmlElement(name = "text_box") + protected TextBox textBox; + protected Image image; + protected Video video; + protected Sound sound; + protected Link link; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the textBox property. + * + * @return + * possible object is + * {@link TextBox } + * + */ + public TextBox getTextBox() { + return textBox; + } + + /** + * Sets the value of the textBox property. + * + * @param value + * allowed object is + * {@link TextBox } + * + */ + public void setTextBox(TextBox value) { + this.textBox = value; + } + + /** + * Gets the value of the image property. + * + * @return + * possible object is + * {@link Image } + * + */ + public Image getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value + * allowed object is + * {@link Image } + * + */ + public void setImage(Image value) { + this.image = value; + } + + /** + * Gets the value of the video property. + * + * @return + * possible object is + * {@link Video } + * + */ + public Video getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value + * allowed object is + * {@link Video } + * + */ + public void setVideo(Video value) { + this.video = value; + } + + /** + * Gets the value of the sound property. + * + * @return + * possible object is + * {@link Sound } + * + */ + public Sound getSound() { + return sound; + } + + /** + * Sets the value of the sound property. + * + * @param value + * allowed object is + * {@link Sound } + * + */ + public void setSound(Sound value) { + this.sound = value; + } + + /** + * Gets the value of the link property. + * + * @return + * possible object is + * {@link Link } + * + */ + public Link getLink() { + return link; + } + + /** + * Sets the value of the link property. + * + * @param value + * allowed object is + * {@link Link } + * + */ + public void setLink(Link value) { + this.link = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Product.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Product.java new file mode 100644 index 00000000..a988d618 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Product.java @@ -0,0 +1,123 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="version" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="lang" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "product") +public class Product { + + @XmlValue + protected String value; + @XmlAttribute(name = "version", required = true) + protected String version; + @XmlAttribute(name = "lang") + protected String lang; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setVersion(String value) { + this.version = value; + } + + /** + * Gets the value of the lang property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLang() { + return lang; + } + + /** + * Sets the value of the lang property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLang(String value) { + this.lang = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Range.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Range.java new file mode 100644 index 00000000..a837b82b --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Range.java @@ -0,0 +1,94 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "range") +public class Range { + + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportBalances.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportBalances.java new file mode 100644 index 00000000..8af9690e --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportBalances.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for report_balances. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="report_balances">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="beginning"/>
+ *     <enumeration value="ending"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "report_balances") +@XmlEnum +public enum ReportBalances { + + @XmlEnumValue("beginning") + BEGINNING("beginning"), + @XmlEnumValue("ending") + ENDING("ending"); + private final String value; + + ReportBalances(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ReportBalances fromValue(String v) { + for (ReportBalances c: ReportBalances.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportFlows.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportFlows.java new file mode 100644 index 00000000..ee6112e6 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ReportFlows.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for report_flows. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="report_flows">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="instantaneous"/>
+ *     <enumeration value="summed"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "report_flows") +@XmlEnum +public enum ReportFlows { + + @XmlEnumValue("instantaneous") + INSTANTANEOUS("instantaneous"), + @XmlEnumValue("summed") + SUMMED("summed"); + private final String value; + + ReportFlows(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ReportFlows fromValue(String v) { + for (ReportFlows c: ReportFlows.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ResetTo.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ResetTo.java new file mode 100644 index 00000000..6cfd3f94 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ResetTo.java @@ -0,0 +1,88 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>double">
+ *       <attribute name="after" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}after_choices" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "reset_to") +public class ResetTo { + + @XmlValue + protected double value; + @XmlAttribute(name = "after") + protected AfterChoices after; + + /** + * Gets the value of the value property. + * + */ + public double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(double value) { + this.value = value; + } + + /** + * Gets the value of the after property. + * + * @return + * possible object is + * {@link AfterChoices } + * + */ + public AfterChoices getAfter() { + return after; + } + + /** + * Sets the value of the after property. + * + * @param value + * allowed object is + * {@link AfterChoices } + * + */ + public void setAfter(AfterChoices value) { + this.after = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Scale.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Scale.java new file mode 100644 index 00000000..70635c34 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Scale.java @@ -0,0 +1,149 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="auto" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *       <attribute name="group" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "scale") +public class Scale { + + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + @XmlAttribute(name = "auto") + protected Boolean auto; + @XmlAttribute(name = "group") + protected BigInteger group; + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + + /** + * Gets the value of the auto property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isAuto() { + return auto; + } + + /** + * Sets the value of the auto property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAuto(Boolean value) { + this.auto = value; + } + + /** + * Gets the value of the group property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getGroup() { + return group; + } + + /** + * Sets the value of the group property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setGroup(BigInteger value) { + this.group = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Shape.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Shape.java new file mode 100644 index 00000000..424700bd --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Shape.java @@ -0,0 +1,160 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlSchemaType; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attribute name="type" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="rectangle"/>
+ *             <enumeration value="circle"/>
+ *             <enumeration value="name_only"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="height" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *       <attribute name="radius" type="{http://www.w3.org/2001/XMLSchema}anySimpleType" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "shape") +public class Shape { + + @XmlAttribute(name = "type", required = true) + protected String type; + @XmlAttribute(name = "width") + @XmlSchemaType(name = "anySimpleType") + protected String width; + @XmlAttribute(name = "height") + @XmlSchemaType(name = "anySimpleType") + protected String height; + @XmlAttribute(name = "radius") + @XmlSchemaType(name = "anySimpleType") + protected String radius; + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getType() { + return type; + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setType(String value) { + this.type = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWidth(String value) { + this.width = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeight(String value) { + this.height = value; + } + + /** + * Gets the value of the radius property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRadius() { + return radius; + } + + /** + * Sets the value of the radius property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRadius(String value) { + this.radius = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SimSpecs.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SimSpecs.java new file mode 100644 index 00000000..ffce4f36 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SimSpecs.java @@ -0,0 +1,386 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="stop" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *         <element name="start" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *         <element name="dt" minOccurs="0">
+ *           <complexType>
+ *             <simpleContent>
+ *               <extension base="<http://www.w3.org/2001/XMLSchema>double">
+ *                 <attribute name="reciprocal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *               </extension>
+ *             </simpleContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="run" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="by" use="required">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="all"/>
+ *                       <enumeration value="group"/>
+ *                       <enumeration value="module"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </all>
+ *       <attribute name="time_units" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}time_unit_type" default="" />
+ *       <attribute name="method" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}method_type" default="euler" />
+ *       <attribute name="pause" type="{http://www.w3.org/2001/XMLSchema}double" default="INF" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "sim_specs") +public class SimSpecs { + + protected double stop; + protected double start; + @XmlElement(defaultValue = "1") + protected SimSpecs.Dt dt; + protected SimSpecs.Run run; + @XmlAttribute(name = "time_units") + protected String timeUnits; + @XmlAttribute(name = "method") + protected String method; + @XmlAttribute(name = "pause") + protected Double pause; + + /** + * Gets the value of the stop property. + * + */ + public double getStop() { + return stop; + } + + /** + * Sets the value of the stop property. + * + */ + public void setStop(double value) { + this.stop = value; + } + + /** + * Gets the value of the start property. + * + */ + public double getStart() { + return start; + } + + /** + * Sets the value of the start property. + * + */ + public void setStart(double value) { + this.start = value; + } + + /** + * Gets the value of the dt property. + * + * @return + * possible object is + * {@link SimSpecs.Dt } + * + */ + public SimSpecs.Dt getDt() { + return dt; + } + + /** + * Sets the value of the dt property. + * + * @param value + * allowed object is + * {@link SimSpecs.Dt } + * + */ + public void setDt(SimSpecs.Dt value) { + this.dt = value; + } + + /** + * Gets the value of the run property. + * + * @return + * possible object is + * {@link SimSpecs.Run } + * + */ + public SimSpecs.Run getRun() { + return run; + } + + /** + * Sets the value of the run property. + * + * @param value + * allowed object is + * {@link SimSpecs.Run } + * + */ + public void setRun(SimSpecs.Run value) { + this.run = value; + } + + /** + * Gets the value of the timeUnits property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTimeUnits() { + if (timeUnits == null) { + return ""; + } else { + return timeUnits; + } + } + + /** + * Sets the value of the timeUnits property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTimeUnits(String value) { + this.timeUnits = value; + } + + /** + * Gets the value of the method property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getMethod() { + if (method == null) { + return "euler"; + } else { + return method; + } + } + + /** + * Sets the value of the method property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setMethod(String value) { + this.method = value; + } + + /** + * Gets the value of the pause property. + * + * @return + * possible object is + * {@link Double } + * + */ + public double getPause() { + if (pause == null) { + return java.lang.Double.POSITIVE_INFINITY; + } else { + return pause; + } + } + + /** + * Sets the value of the pause property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPause(Double value) { + this.pause = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <simpleContent>
+     *     <extension base="<http://www.w3.org/2001/XMLSchema>double">
+     *       <attribute name="reciprocal" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *     </extension>
+     *   </simpleContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "value" + }) + public static class Dt { + + @XmlValue + protected double value; + @XmlAttribute(name = "reciprocal") + protected Boolean reciprocal; + + /** + * Gets the value of the value property. + * + */ + public double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(double value) { + this.value = value; + } + + /** + * Gets the value of the reciprocal property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isReciprocal() { + if (reciprocal == null) { + return false; + } else { + return reciprocal; + } + } + + /** + * Sets the value of the reciprocal property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setReciprocal(Boolean value) { + this.reciprocal = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="by" use="required">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="all"/>
+     *             <enumeration value="group"/>
+     *             <enumeration value="module"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Run { + + @XmlAttribute(name = "by", required = true) + protected String by; + + /** + * Gets the value of the by property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBy() { + return by; + } + + /** + * Sets the value of the by property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBy(String value) { + this.by = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Slider.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Slider.java new file mode 100644 index 00000000..a5c2643f --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Slider.java @@ -0,0 +1,986 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}reset_to" minOccurs="0"/>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="show_number" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="show_min_max" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="min" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="max" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="precision" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "slider") +public class Slider { + + @XmlElement(required = true) + protected Slider.Entity entity; + @XmlElement(name = "reset_to") + protected ResetTo resetTo; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "show_number") + protected Boolean showNumber; + @XmlAttribute(name = "show_min_max") + protected Boolean showMinMax; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "min") + protected Double min; + @XmlAttribute(name = "max") + protected Double max; + @XmlAttribute(name = "precision") + protected Double precision; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link Slider.Entity } + * + */ + public Slider.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link Slider.Entity } + * + */ + public void setEntity(Slider.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the resetTo property. + * + * @return + * possible object is + * {@link ResetTo } + * + */ + public ResetTo getResetTo() { + return resetTo; + } + + /** + * Sets the value of the resetTo property. + * + * @param value + * allowed object is + * {@link ResetTo } + * + */ + public void setResetTo(ResetTo value) { + this.resetTo = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return true; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the showNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowNumber() { + if (showNumber == null) { + return true; + } else { + return showNumber; + } + } + + /** + * Sets the value of the showNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowNumber(Boolean value) { + this.showNumber = value; + } + + /** + * Gets the value of the showMinMax property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMinMax() { + if (showMinMax == null) { + return true; + } else { + return showMinMax; + } + } + + /** + * Sets the value of the showMinMax property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMinMax(Boolean value) { + this.showMinMax = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the min property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMin() { + return min; + } + + /** + * Sets the value of the min property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMin(Double value) { + this.min = value; + } + + /** + * Gets the value of the max property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getMax() { + return max; + } + + /** + * Sets the value of the max property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setMax(Double value) { + this.max = value; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Sound.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Sound.java new file mode 100644 index 00000000..ec3a5026 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Sound.java @@ -0,0 +1,96 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "sound") +public class Sound { + + @XmlValue + protected String value; + @XmlAttribute(name = "resource") + protected String resource; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StackedContainer.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StackedContainer.java new file mode 100644 index 00000000..29dc91aa --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StackedContainer.java @@ -0,0 +1,151 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <extension base="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}view_content_type">
+ *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="visible_index" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *     </extension>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "") +@XmlRootElement(name = "stacked_container") +public class StackedContainer + extends ViewContentType +{ + + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "visible_index") + protected BigInteger visibleIndex; + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the visibleIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getVisibleIndex() { + return visibleIndex; + } + + /** + * Sets the value of the visibleIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setVisibleIndex(BigInteger value) { + this.visibleIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardBorderWidthType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardBorderWidthType.java new file mode 100644 index 00000000..625b91f4 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardBorderWidthType.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for standard_border_width_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="standard_border_width_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="thin"/>
+ *     <enumeration value="thick"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "standard_border_width_type") +@XmlEnum +public enum StandardBorderWidthType { + + @XmlEnumValue("thin") + THIN("thin"), + @XmlEnumValue("thick") + THICK("thick"); + private final String value; + + StandardBorderWidthType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static StandardBorderWidthType fromValue(String v) { + for (StandardBorderWidthType c: StandardBorderWidthType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardColorType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardColorType.java new file mode 100644 index 00000000..de02795d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardColorType.java @@ -0,0 +1,100 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for standard_color_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="standard_color_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="aqua"/>
+ *     <enumeration value="black"/>
+ *     <enumeration value="blue"/>
+ *     <enumeration value="fuchsia"/>
+ *     <enumeration value="gray"/>
+ *     <enumeration value="green"/>
+ *     <enumeration value="lime"/>
+ *     <enumeration value="maroon"/>
+ *     <enumeration value="navy"/>
+ *     <enumeration value="olive"/>
+ *     <enumeration value="purple"/>
+ *     <enumeration value="red"/>
+ *     <enumeration value="silver"/>
+ *     <enumeration value="teal"/>
+ *     <enumeration value="white"/>
+ *     <enumeration value="yellow"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "standard_color_type") +@XmlEnum +public enum StandardColorType { + + @XmlEnumValue("aqua") + AQUA("aqua"), + @XmlEnumValue("black") + BLACK("black"), + @XmlEnumValue("blue") + BLUE("blue"), + @XmlEnumValue("fuchsia") + FUCHSIA("fuchsia"), + @XmlEnumValue("gray") + GRAY("gray"), + @XmlEnumValue("green") + GREEN("green"), + @XmlEnumValue("lime") + LIME("lime"), + @XmlEnumValue("maroon") + MAROON("maroon"), + @XmlEnumValue("navy") + NAVY("navy"), + @XmlEnumValue("olive") + OLIVE("olive"), + @XmlEnumValue("purple") + PURPLE("purple"), + @XmlEnumValue("red") + RED("red"), + @XmlEnumValue("silver") + SILVER("silver"), + @XmlEnumValue("teal") + TEAL("teal"), + @XmlEnumValue("white") + WHITE("white"), + @XmlEnumValue("yellow") + YELLOW("yellow"); + private final String value; + + StandardColorType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static StandardColorType fromValue(String v) { + for (StandardColorType c: StandardColorType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardMethodType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardMethodType.java new file mode 100644 index 00000000..77a140e3 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardMethodType.java @@ -0,0 +1,67 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for standard_method_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="standard_method_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="euler"/>
+ *     <enumeration value="rk2"/>
+ *     <enumeration value="rk2_auto"/>
+ *     <enumeration value="rk4"/>
+ *     <enumeration value="rk4_auto"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "standard_method_type") +@XmlEnum +public enum StandardMethodType { + + @XmlEnumValue("euler") + EULER("euler"), + @XmlEnumValue("rk2") + RK_2("rk2"), + @XmlEnumValue("rk2_auto") + RK_2_AUTO("rk2_auto"), + @XmlEnumValue("rk4") + RK_4("rk4"), + @XmlEnumValue("rk4_auto") + RK_4_AUTO("rk4_auto"); + private final String value; + + StandardMethodType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static StandardMethodType fromValue(String v) { + for (StandardMethodType c: StandardMethodType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardTimeUnitType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardTimeUnitType.java new file mode 100644 index 00000000..594a0a5d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StandardTimeUnitType.java @@ -0,0 +1,85 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for standard_time_unit_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="standard_time_unit_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="day"/>
+ *     <enumeration value="hour"/>
+ *     <enumeration value="microsecond"/>
+ *     <enumeration value="millisecond"/>
+ *     <enumeration value="minute"/>
+ *     <enumeration value="month"/>
+ *     <enumeration value="nanosecond"/>
+ *     <enumeration value="quarter"/>
+ *     <enumeration value="second"/>
+ *     <enumeration value="week"/>
+ *     <enumeration value="year"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "standard_time_unit_type") +@XmlEnum +public enum StandardTimeUnitType { + + @XmlEnumValue("day") + DAY("day"), + @XmlEnumValue("hour") + HOUR("hour"), + @XmlEnumValue("microsecond") + MICROSECOND("microsecond"), + @XmlEnumValue("millisecond") + MILLISECOND("millisecond"), + @XmlEnumValue("minute") + MINUTE("minute"), + @XmlEnumValue("month") + MONTH("month"), + @XmlEnumValue("nanosecond") + NANOSECOND("nanosecond"), + @XmlEnumValue("quarter") + QUARTER("quarter"), + @XmlEnumValue("second") + SECOND("second"), + @XmlEnumValue("week") + WEEK("week"), + @XmlEnumValue("year") + YEAR("year"); + private final String value; + + StandardTimeUnitType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static StandardTimeUnitType fromValue(String v) { + for (StandardTimeUnitType c: StandardTimeUnitType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Stock.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Stock.java new file mode 100644 index 00000000..e25216ba --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Stock.java @@ -0,0 +1,372 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElementRefs; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded">
+ *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="units" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element name="doc" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}dimensions" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}scale" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}range" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format" minOccurs="0"/>
+ *         <element name="inflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="outflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element name="queue" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+ *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}conveyor" minOccurs="0"/>
+ *         <element name="element" maxOccurs="unbounded">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice maxOccurs="unbounded">
+ *                   <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+ *                   <element name="inflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                   <element name="outflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+ *                   <element name="queue" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+ *                   <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}conveyor" minOccurs="0"/>
+ *                 </choice>
+ *                 <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="access" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}access_type" />
+ *       <attribute name="autoexport" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="subscript" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "eqnOrMathmlOrUnits" +}) +@XmlRootElement(name = "stock") +public class Stock { + + @XmlElementRefs({ + @XmlElementRef(name = "non_negative", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "queue", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "units", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false), + @XmlElementRef(name = "outflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "format", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Format.class, required = false), + @XmlElementRef(name = "scale", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Scale.class, required = false), + @XmlElementRef(name = "range", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Range.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "doc", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "inflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "conveyor", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Conveyor.class, required = false), + @XmlElementRef(name = "element", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "dimensions", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Dimensions.class, required = false) + }) + protected List eqnOrMathmlOrUnits; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "access") + protected AccessType access; + @XmlAttribute(name = "autoexport") + protected Boolean autoexport; + @XmlAttribute(name = "subscript") + protected String subscript; + + /** + * Gets the value of the eqnOrMathmlOrUnits property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrUnits property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getEqnOrMathmlOrUnits().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Gf } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Format } + * {@link Scale } + * {@link Range } + * {@link EventPoster } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Conveyor } + * {@link JAXBElement }{@code <}{@link Stock.Element }{@code >} + * {@link Dimensions } + * + * + */ + public List getEqnOrMathmlOrUnits() { + if (eqnOrMathmlOrUnits == null) { + eqnOrMathmlOrUnits = new ArrayList(); + } + return this.eqnOrMathmlOrUnits; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the access property. + * + * @return + * possible object is + * {@link AccessType } + * + */ + public AccessType getAccess() { + return access; + } + + /** + * Sets the value of the access property. + * + * @param value + * allowed object is + * {@link AccessType } + * + */ + public void setAccess(AccessType value) { + this.access = value; + } + + /** + * Gets the value of the autoexport property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAutoexport() { + if (autoexport == null) { + return false; + } else { + return autoexport; + } + } + + /** + * Sets the value of the autoexport property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAutoexport(Boolean value) { + this.autoexport = value; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice maxOccurs="unbounded">
+     *         <element name="eqn" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element name="mathml" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}event_poster" minOccurs="0"/>
+     *         <element name="inflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+     *         <element name="outflow" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded" minOccurs="0"/>
+     *         <element name="queue" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}empty_type" minOccurs="0"/>
+     *         <element name="non_negative" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}boolean_or_empty_type" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}conveyor" minOccurs="0"/>
+     *       </choice>
+     *       <attribute name="subscript" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "eqnOrMathmlOrGf" + }) + public static class Element { + + @XmlElementRefs({ + @XmlElementRef(name = "non_negative", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "mathml", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "event_poster", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = EventPoster.class, required = false), + @XmlElementRef(name = "queue", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "eqn", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "inflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false), + @XmlElementRef(name = "conveyor", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Conveyor.class, required = false), + @XmlElementRef(name = "gf", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = Gf.class, required = false), + @XmlElementRef(name = "outflow", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false) + }) + protected List eqnOrMathmlOrGf; + @XmlAttribute(name = "subscript", required = true) + protected String subscript; + + /** + * Gets the value of the eqnOrMathmlOrGf property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the eqnOrMathmlOrGf property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getEqnOrMathmlOrGf().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link JAXBElement }{@code <}{@link BooleanOrEmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link EventPoster } + * {@link JAXBElement }{@code <}{@link EmptyType }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link JAXBElement }{@code <}{@link String }{@code >} + * {@link Conveyor } + * {@link Gf } + * {@link JAXBElement }{@code <}{@link String }{@code >} + * + * + */ + public List getEqnOrMathmlOrGf() { + if (eqnOrMathmlOrGf == null) { + eqnOrMathmlOrGf = new ArrayList(); + } + return this.eqnOrMathmlOrGf; + } + + /** + * Gets the value of the subscript property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSubscript() { + return subscript; + } + + /** + * Sets the value of the subscript property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSubscript(String value) { + this.subscript = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Style.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Style.java new file mode 100644 index 00000000..3b875a0d --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Style.java @@ -0,0 +1,642 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="stock" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *         <element name="flow" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *         <element name="aux" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *         <element name="connector" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *         <element name="module" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *         <element name="group" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_type" minOccurs="0"/>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "style") +public class Style { + + protected StyleType stock; + protected StyleType flow; + protected StyleType aux; + protected StyleType connector; + protected StyleType module; + protected StyleType group; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the stock property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getStock() { + return stock; + } + + /** + * Sets the value of the stock property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setStock(StyleType value) { + this.stock = value; + } + + /** + * Gets the value of the flow property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getFlow() { + return flow; + } + + /** + * Sets the value of the flow property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setFlow(StyleType value) { + this.flow = value; + } + + /** + * Gets the value of the aux property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getAux() { + return aux; + } + + /** + * Sets the value of the aux property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setAux(StyleType value) { + this.aux = value; + } + + /** + * Gets the value of the connector property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getConnector() { + return connector; + } + + /** + * Sets the value of the connector property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setConnector(StyleType value) { + this.connector = value; + } + + /** + * Gets the value of the module property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getModule() { + return module; + } + + /** + * Sets the value of the module property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setModule(StyleType value) { + this.module = value; + } + + /** + * Gets the value of the group property. + * + * @return + * possible object is + * {@link StyleType } + * + */ + public StyleType getGroup() { + return group; + } + + /** + * Sets the value of the group property. + * + * @param value + * allowed object is + * {@link StyleType } + * + */ + public void setGroup(StyleType value) { + this.group = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StyleType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StyleType.java new file mode 100644 index 00000000..fbe3fcb5 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/StyleType.java @@ -0,0 +1,585 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for style_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="style_type">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "style_type") +public class StyleType { + + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Switch.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Switch.java new file mode 100644 index 00000000..8e888dec --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Switch.java @@ -0,0 +1,932 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <all>
+ *         <element name="entity">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}reset_to" minOccurs="0"/>
+ *       </all>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="clicking_sound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="switch_style" default="toggle">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *             <enumeration value="toggle"/>
+ *             <enumeration value="push_button"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *       <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + +}) +@XmlRootElement(name = "switch") +public class Switch { + + @XmlElement(required = true) + protected Switch.Entity entity; + @XmlElement(name = "reset_to") + protected ResetTo resetTo; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "clicking_sound") + protected Boolean clickingSound; + @XmlAttribute(name = "switch_style") + protected String switchStyle; + @XmlAttribute(name = "uid", required = true) + protected int uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link Switch.Entity } + * + */ + public Switch.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link Switch.Entity } + * + */ + public void setEntity(Switch.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the resetTo property. + * + * @return + * possible object is + * {@link ResetTo } + * + */ + public ResetTo getResetTo() { + return resetTo; + } + + /** + * Sets the value of the resetTo property. + * + * @param value + * allowed object is + * {@link ResetTo } + * + */ + public void setResetTo(ResetTo value) { + this.resetTo = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return false; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the clickingSound property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClickingSound() { + if (clickingSound == null) { + return false; + } else { + return clickingSound; + } + } + + /** + * Sets the value of the clickingSound property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClickingSound(Boolean value) { + this.clickingSound = value; + } + + /** + * Gets the value of the switchStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getSwitchStyle() { + if (switchStyle == null) { + return "toggle"; + } else { + return switchStyle; + } + } + + /** + * Sets the value of the switchStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setSwitchStyle(String value) { + this.switchStyle = value; + } + + /** + * Gets the value of the uid property. + * + */ + public int getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + */ + public void setUid(int value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="value" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + @XmlAttribute(name = "value") + protected Double value; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setValue(Double value) { + this.value = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SwitchAction.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SwitchAction.java new file mode 100644 index 00000000..be6762b3 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/SwitchAction.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}entity"/>
+ *         <element name="group">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="value" type="{http://www.w3.org/2001/XMLSchema}double"/>
+ *                 </all>
+ *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "entity", + "group" +}) +@XmlRootElement(name = "switch_action") +public class SwitchAction { + + protected Entity entity; + protected SwitchAction.Group group; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link Entity } + * + */ + public Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link Entity } + * + */ + public void setEntity(Entity value) { + this.entity = value; + } + + /** + * Gets the value of the group property. + * + * @return + * possible object is + * {@link SwitchAction.Group } + * + */ + public SwitchAction.Group getGroup() { + return group; + } + + /** + * Sets the value of the group property. + * + * @param value + * allowed object is + * {@link SwitchAction.Group } + * + */ + public void setGroup(SwitchAction.Group value) { + this.group = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="value" type="{http://www.w3.org/2001/XMLSchema}double"/>
+     *       </all>
+     *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Group { + + protected double value; + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the value property. + * + */ + public double getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + */ + public void setValue(double value) { + this.value = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TableItemType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TableItemType.java new file mode 100644 index 00000000..e03bb6bb --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TableItemType.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for table_item_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="table_item_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="variable"/>
+ *     <enumeration value="space"/>
+ *     <enumeration value="time"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "table_item_type") +@XmlEnum +public enum TableItemType { + + @XmlEnumValue("variable") + VARIABLE("variable"), + @XmlEnumValue("space") + SPACE("space"), + @XmlEnumValue("time") + TIME("time"); + private final String value; + + TableItemType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TableItemType fromValue(String v) { + for (TableItemType c: TableItemType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextAlign.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextAlign.java new file mode 100644 index 00000000..9c74e8af --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextAlign.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for text_align. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="text_align">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="left"/>
+ *     <enumeration value="right"/>
+ *     <enumeration value="center"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "text_align") +@XmlEnum +public enum TextAlign { + + @XmlEnumValue("left") + LEFT("left"), + @XmlEnumValue("right") + RIGHT("right"), + @XmlEnumValue("center") + CENTER("center"); + private final String value; + + TextAlign(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TextAlign fromValue(String v) { + for (TextAlign c: TextAlign.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextBox.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextBox.java new file mode 100644 index 00000000..a0ee4f95 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TextBox.java @@ -0,0 +1,722 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="appearance" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}transparency_type" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "text_box") +public class TextBox { + + @XmlValue + protected String value; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "appearance") + protected TransparencyType appearance; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the appearance property. + * + * @return + * possible object is + * {@link TransparencyType } + * + */ + public TransparencyType getAppearance() { + return appearance; + } + + /** + * Sets the value of the appearance property. + * + * @param value + * allowed object is + * {@link TransparencyType } + * + */ + public void setAppearance(TransparencyType value) { + this.appearance = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TransparencyType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TransparencyType.java new file mode 100644 index 00000000..bc4319bb --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/TransparencyType.java @@ -0,0 +1,58 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for transparency_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="transparency_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="opaque"/>
+ *     <enumeration value="transparent"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "transparency_type") +@XmlEnum +public enum TransparencyType { + + @XmlEnumValue("opaque") + OPAQUE("opaque"), + @XmlEnumValue("transparent") + TRANSPARENT("transparent"); + private final String value; + + TransparencyType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static TransparencyType fromValue(String v) { + for (TransparencyType c: TransparencyType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Variables.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Variables.java new file mode 100644 index 00000000..0e6cd2e0 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Variables.java @@ -0,0 +1,96 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}stock" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}flow" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}auxiliary" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}gf" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}group" maxOccurs="unbounded" minOccurs="0"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}module" maxOccurs="unbounded" minOccurs="0"/>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "stockOrFlowOrAuxiliary" +}) +@XmlRootElement(name = "variables") +public class Variables { + + @XmlElements({ + @XmlElement(name = "stock", type = Stock.class), + @XmlElement(name = "flow", type = Flow.class), + @XmlElement(name = "aux", type = Auxiliary.class), + @XmlElement(name = "gf", type = Gf.class), + @XmlElement(name = "group", type = Group.class), + @XmlElement(name = "module", type = Module.class) + }) + protected List stockOrFlowOrAuxiliary; + + /** + * Gets the value of the stockOrFlowOrAuxiliary property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the stockOrFlowOrAuxiliary property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStockOrFlowOrAuxiliary().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Stock } + * {@link Flow } + * {@link Auxiliary } + * {@link Gf } + * {@link Group } + * {@link Module } + * + * + */ + public List getStockOrFlowOrAuxiliary() { + if (stockOrFlowOrAuxiliary == null) { + stockOrFlowOrAuxiliary = new ArrayList(); + } + return this.stockOrFlowOrAuxiliary; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/VerticalTextAlign.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/VerticalTextAlign.java new file mode 100644 index 00000000..998219c1 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/VerticalTextAlign.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for vertical_text_align. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="vertical_text_align">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="top"/>
+ *     <enumeration value="bottom"/>
+ *     <enumeration value="center"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "vertical_text_align") +@XmlEnum +public enum VerticalTextAlign { + + @XmlEnumValue("top") + TOP("top"), + @XmlEnumValue("bottom") + BOTTOM("bottom"), + @XmlEnumValue("center") + CENTER("center"); + private final String value; + + VerticalTextAlign(String v) { + value = v; + } + + public String value() { + return value; + } + + public static VerticalTextAlign fromValue(String v) { + for (VerticalTextAlign c: VerticalTextAlign.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Video.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Video.java new file mode 100644 index 00000000..460dc470 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Video.java @@ -0,0 +1,181 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <simpleContent>
+ *     <extension base="<http://www.w3.org/2001/XMLSchema>string">
+ *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *       <attribute name="size_to_parent" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *       <attribute name="height" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *     </extension>
+ *   </simpleContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "value" +}) +@XmlRootElement(name = "video") +public class Video { + + @XmlValue + protected String value; + @XmlAttribute(name = "resource") + protected String resource; + @XmlAttribute(name = "size_to_parent") + protected Boolean sizeToParent; + @XmlAttribute(name = "width") + protected Integer width; + @XmlAttribute(name = "height") + protected Integer height; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setValue(String value) { + this.value = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the sizeToParent property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isSizeToParent() { + if (sizeToParent == null) { + return false; + } else { + return sizeToParent; + } + } + + /** + * Sets the value of the sizeToParent property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setSizeToParent(Boolean value) { + this.sizeToParent = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setWidth(Integer value) { + this.width = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHeight(Integer value) { + this.height = value; + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewContentType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewContentType.java new file mode 100644 index 00000000..84d99aea --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewContentType.java @@ -0,0 +1,10922 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.io.Serializable; +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.JAXBElement; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElementRef; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlMixed; +import javax.xml.bind.annotation.XmlSeeAlso; +import javax.xml.bind.annotation.XmlType; +import javax.xml.bind.annotation.XmlValue; + + +/** + * + * Content of a view or container + * + * + *

Java class for view_content_type complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType name="view_content_type">
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style" minOccurs="0"/>
+ *         <element name="stock">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="flow">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+ *                   <element name="pts">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <sequence maxOccurs="unbounded">
+ *                             <element name="pt">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                                     <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </sequence>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="aux">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="module">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="group">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <sequence maxOccurs="unbounded" minOccurs="0">
+ *                   <element name="item">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </sequence>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="connector">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element name="from">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <all minOccurs="0">
+ *                             <element name="alias" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                                     <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                                     <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </all>
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element name="to" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                 <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="angle" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="delay_mark" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="line_style" default="solid">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="solid"/>
+ *                       <enumeration value="dashed"/>
+ *                       <enumeration value="vendor specific"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="alias">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+ *                   <element name="of" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}text_box"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}graphics_frame"/>
+ *         <element name="graph">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}plot" maxOccurs="unbounded"/>
+ *                 </choice>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}graph_type" default="time_series" />
+ *                 <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="doc" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="show_grid" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="num_x_grid_lines" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *                 <attribute name="num_y_grid_lines" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *                 <attribute name="num_y_labels" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+ *                 <attribute name="x_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="right_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="right_axis_auto_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="right_axis_multi_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="left_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="left_axis_auto_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="left_axis_multi_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="plot_numbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="comparative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="from" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="table">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element name="item" maxOccurs="unbounded">
+ *                     <complexType>
+ *                       <complexContent>
+ *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                           <all>
+ *                             <element name="entity" minOccurs="0">
+ *                               <complexType>
+ *                                 <complexContent>
+ *                                   <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                     <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                   </restriction>
+ *                                 </complexContent>
+ *                               </complexType>
+ *                             </element>
+ *                           </all>
+ *                           <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                           <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format_attributes"/>
+ *                           <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}table_item_type" default="variable" />
+ *                           <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                         </restriction>
+ *                       </complexContent>
+ *                     </complexType>
+ *                   </element>
+ *                 </choice>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}header_style_attributes"/>
+ *                 <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="doc" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="orientation" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}orientation" default="vertical" />
+ *                 <attribute name="column_width" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                 <attribute name="blank_column_width" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                 <attribute name="report_interval" use="required" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" />
+ *                 <attribute name="report_balances" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_balances" default="beginning" />
+ *                 <attribute name="report_flows" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_flows" default="instantaneous" />
+ *                 <attribute name="comparative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="wrap_text" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element name="button">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <all>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound" minOccurs="0"/>
+ *                   <element name="menu_action" minOccurs="0">
+ *                     <complexType>
+ *                       <simpleContent>
+ *                         <extension base="<http://docs.oasis-open.org/xmile/ns/XMILE/v1.0>menu_action_choices">
+ *                           <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="worksheet" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                           <attribute name="all" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                           <attribute name="run_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                         </extension>
+ *                       </simpleContent>
+ *                     </complexType>
+ *                   </element>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}switch_action" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}popup" minOccurs="0"/>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link" minOccurs="0"/>
+ *                 </all>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attribute name="transparency" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}transparency_type" default="opaque" />
+ *                 <attribute name="style" default="square">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="square"/>
+ *                       <enumeration value="rounded"/>
+ *                       <enumeration value="capsule"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="clicking_sound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="show_number" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="show_min_max" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+ *                 <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}slider"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}knob"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}list_input"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}numeric_display"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}switch"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}graphical_input"/>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}stacked_container"/>
+ *         <element name="options">
+ *           <complexType>
+ *             <complexContent>
+ *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                 <choice>
+ *                   <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}entity" maxOccurs="unbounded"/>
+ *                 </choice>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+ *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+ *                 <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="clicking_sound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+ *                 <attribute name="layout" default="vertical">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="vertical"/>
+ *                       <enumeration value="horizontal"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="vertical_spacing" type="{http://www.w3.org/2001/XMLSchema}int" default="2" />
+ *                 <attribute name="horizontal_spacing" type="{http://www.w3.org/2001/XMLSchema}int" default="2" />
+ *                 <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *               </restriction>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *       <attribute name="width" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *       <attribute name="height" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "view_content_type", propOrder = { + "styleOrStockOrFlow" +}) +@XmlSeeAlso({ + org.simantics.sysdyn.xmile.schema.Views.View.class, + StackedContainer.class +}) +public class ViewContentType { + + @XmlElements({ + @XmlElement(name = "style", type = Style.class), + @XmlElement(name = "stock", type = ViewContentType.Stock.class), + @XmlElement(name = "flow", type = ViewContentType.Flow.class), + @XmlElement(name = "aux", type = ViewContentType.Aux.class), + @XmlElement(name = "module", type = ViewContentType.Module.class), + @XmlElement(name = "group", type = ViewContentType.Group.class), + @XmlElement(name = "connector", type = ViewContentType.Connector.class), + @XmlElement(name = "alias", type = ViewContentType.Alias.class), + @XmlElement(name = "text_box", type = TextBox.class), + @XmlElement(name = "graphics_frame", type = GraphicsFrame.class), + @XmlElement(name = "graph", type = ViewContentType.Graph.class), + @XmlElement(name = "table", type = ViewContentType.Table.class), + @XmlElement(name = "button", type = ViewContentType.Button.class), + @XmlElement(name = "slider", type = Slider.class), + @XmlElement(name = "knob", type = Knob.class), + @XmlElement(name = "list_input", type = ListInput.class), + @XmlElement(name = "numeric_display", type = NumericDisplay.class), + @XmlElement(name = "switch", type = Switch.class), + @XmlElement(name = "graphical_input", type = GraphicalInput.class), + @XmlElement(name = "stacked_container", type = StackedContainer.class), + @XmlElement(name = "options", type = ViewContentType.Options.class) + }) + protected List styleOrStockOrFlow; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "height") + protected Double height; + + /** + * Gets the value of the styleOrStockOrFlow property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the styleOrStockOrFlow property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStyleOrStockOrFlow().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Style } + * {@link ViewContentType.Stock } + * {@link ViewContentType.Flow } + * {@link ViewContentType.Aux } + * {@link ViewContentType.Module } + * {@link ViewContentType.Group } + * {@link ViewContentType.Connector } + * {@link ViewContentType.Alias } + * {@link TextBox } + * {@link GraphicsFrame } + * {@link ViewContentType.Graph } + * {@link ViewContentType.Table } + * {@link ViewContentType.Button } + * {@link Slider } + * {@link Knob } + * {@link ListInput } + * {@link NumericDisplay } + * {@link Switch } + * {@link GraphicalInput } + * {@link StackedContainer } + * {@link ViewContentType.Options } + * + * + */ + public List getStyleOrStockOrFlow() { + if (styleOrStockOrFlow == null) { + styleOrStockOrFlow = new ArrayList(); + } + return this.styleOrStockOrFlow; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+     *         <element name="of" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Alias { + + protected Shape shape; + @XmlElement(required = true) + protected String of; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + + /** + * Gets the value of the shape property. + * + * @return + * possible object is + * {@link Shape } + * + */ + public Shape getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value + * allowed object is + * {@link Shape } + * + */ + public void setShape(Shape value) { + this.shape = value; + } + + /** + * Gets the value of the of property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getOf() { + return of; + } + + /** + * Sets the value of the of property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setOf(String value) { + this.of = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Aux { + + protected Shape shape; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the shape property. + * + * @return + * possible object is + * {@link Shape } + * + */ + public Shape getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value + * allowed object is + * {@link Shape } + * + */ + public void setShape(Shape value) { + this.shape = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}image" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}video" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sound" minOccurs="0"/>
+     *         <element name="menu_action" minOccurs="0">
+     *           <complexType>
+     *             <simpleContent>
+     *               <extension base="<http://docs.oasis-open.org/xmile/ns/XMILE/v1.0>menu_action_choices">
+     *                 <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="worksheet" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="all" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *                 <attribute name="run_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *               </extension>
+     *             </simpleContent>
+     *           </complexType>
+     *         </element>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}switch_action" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}popup" minOccurs="0"/>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}link" minOccurs="0"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="transparency" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}transparency_type" default="opaque" />
+     *       <attribute name="style" default="square">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="square"/>
+     *             <enumeration value="rounded"/>
+     *             <enumeration value="capsule"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="label" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="clicking_sound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="show_number" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="show_min_max" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Button { + + protected Image image; + protected Video video; + protected Sound sound; + @XmlElement(name = "menu_action") + protected ViewContentType.Button.MenuAction menuAction; + @XmlElement(name = "switch_action") + protected SwitchAction switchAction; + protected Popup popup; + protected Link link; + @XmlAttribute(name = "transparency") + protected TransparencyType transparency; + @XmlAttribute(name = "style") + protected String style; + @XmlAttribute(name = "label") + protected String label; + @XmlAttribute(name = "clicking_sound") + protected Boolean clickingSound; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "show_number") + protected Boolean showNumber; + @XmlAttribute(name = "show_min_max") + protected Boolean showMinMax; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the image property. + * + * @return + * possible object is + * {@link Image } + * + */ + public Image getImage() { + return image; + } + + /** + * Sets the value of the image property. + * + * @param value + * allowed object is + * {@link Image } + * + */ + public void setImage(Image value) { + this.image = value; + } + + /** + * Gets the value of the video property. + * + * @return + * possible object is + * {@link Video } + * + */ + public Video getVideo() { + return video; + } + + /** + * Sets the value of the video property. + * + * @param value + * allowed object is + * {@link Video } + * + */ + public void setVideo(Video value) { + this.video = value; + } + + /** + * Gets the value of the sound property. + * + * @return + * possible object is + * {@link Sound } + * + */ + public Sound getSound() { + return sound; + } + + /** + * Sets the value of the sound property. + * + * @param value + * allowed object is + * {@link Sound } + * + */ + public void setSound(Sound value) { + this.sound = value; + } + + /** + * Gets the value of the menuAction property. + * + * @return + * possible object is + * {@link ViewContentType.Button.MenuAction } + * + */ + public ViewContentType.Button.MenuAction getMenuAction() { + return menuAction; + } + + /** + * Sets the value of the menuAction property. + * + * @param value + * allowed object is + * {@link ViewContentType.Button.MenuAction } + * + */ + public void setMenuAction(ViewContentType.Button.MenuAction value) { + this.menuAction = value; + } + + /** + * Gets the value of the switchAction property. + * + * @return + * possible object is + * {@link SwitchAction } + * + */ + public SwitchAction getSwitchAction() { + return switchAction; + } + + /** + * Sets the value of the switchAction property. + * + * @param value + * allowed object is + * {@link SwitchAction } + * + */ + public void setSwitchAction(SwitchAction value) { + this.switchAction = value; + } + + /** + * Gets the value of the popup property. + * + * @return + * possible object is + * {@link Popup } + * + */ + public Popup getPopup() { + return popup; + } + + /** + * Sets the value of the popup property. + * + * @param value + * allowed object is + * {@link Popup } + * + */ + public void setPopup(Popup value) { + this.popup = value; + } + + /** + * Gets the value of the link property. + * + * @return + * possible object is + * {@link Link } + * + */ + public Link getLink() { + return link; + } + + /** + * Sets the value of the link property. + * + * @param value + * allowed object is + * {@link Link } + * + */ + public void setLink(Link value) { + this.link = value; + } + + /** + * Gets the value of the transparency property. + * + * @return + * possible object is + * {@link TransparencyType } + * + */ + public TransparencyType getTransparency() { + if (transparency == null) { + return TransparencyType.OPAQUE; + } else { + return transparency; + } + } + + /** + * Sets the value of the transparency property. + * + * @param value + * allowed object is + * {@link TransparencyType } + * + */ + public void setTransparency(TransparencyType value) { + this.transparency = value; + } + + /** + * Gets the value of the style property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getStyle() { + if (style == null) { + return "square"; + } else { + return style; + } + } + + /** + * Sets the value of the style property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setStyle(String value) { + this.style = value; + } + + /** + * Gets the value of the label property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabel() { + return label; + } + + /** + * Sets the value of the label property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabel(String value) { + this.label = value; + } + + /** + * Gets the value of the clickingSound property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClickingSound() { + if (clickingSound == null) { + return true; + } else { + return clickingSound; + } + } + + /** + * Sets the value of the clickingSound property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClickingSound(Boolean value) { + this.clickingSound = value; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return true; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the showNumber property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowNumber() { + if (showNumber == null) { + return true; + } else { + return showNumber; + } + } + + /** + * Sets the value of the showNumber property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowNumber(Boolean value) { + this.showNumber = value; + } + + /** + * Gets the value of the showMinMax property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowMinMax() { + if (showMinMax == null) { + return true; + } else { + return showMinMax; + } + } + + /** + * Sets the value of the showMinMax property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowMinMax(Boolean value) { + this.showMinMax = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <simpleContent>
+         *     <extension base="<http://docs.oasis-open.org/xmile/ns/XMILE/v1.0>menu_action_choices">
+         *       <attribute name="resource" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="worksheet" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="all" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+         *       <attribute name="run_name" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *     </extension>
+         *   </simpleContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "value" + }) + public static class MenuAction { + + @XmlValue + protected MenuActionChoices value; + @XmlAttribute(name = "resource") + protected String resource; + @XmlAttribute(name = "worksheet") + protected String worksheet; + @XmlAttribute(name = "all") + protected Boolean all; + @XmlAttribute(name = "run_name") + protected String runName; + + /** + * Gets the value of the value property. + * + * @return + * possible object is + * {@link MenuActionChoices } + * + */ + public MenuActionChoices getValue() { + return value; + } + + /** + * Sets the value of the value property. + * + * @param value + * allowed object is + * {@link MenuActionChoices } + * + */ + public void setValue(MenuActionChoices value) { + this.value = value; + } + + /** + * Gets the value of the resource property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getResource() { + return resource; + } + + /** + * Sets the value of the resource property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setResource(String value) { + this.resource = value; + } + + /** + * Gets the value of the worksheet property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getWorksheet() { + return worksheet; + } + + /** + * Sets the value of the worksheet property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setWorksheet(String value) { + this.worksheet = value; + } + + /** + * Gets the value of the all property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isAll() { + if (all == null) { + return false; + } else { + return all; + } + } + + /** + * Sets the value of the all property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setAll(Boolean value) { + this.all = value; + } + + /** + * Gets the value of the runName property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRunName() { + return runName; + } + + /** + * Sets the value of the runName property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRunName(String value) { + this.runName = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element name="from">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <all minOccurs="0">
+     *                   <element name="alias" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *                           <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *                           <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </all>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *         <element name="to" type="{http://www.w3.org/2001/XMLSchema}string"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="angle" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="delay_mark" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="line_style" default="solid">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="solid"/>
+     *             <enumeration value="dashed"/>
+     *             <enumeration value="vendor specific"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Connector { + + @XmlElement(required = true) + protected ViewContentType.Connector.From from; + @XmlElement(required = true) + protected String to; + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "angle") + protected Double angle; + @XmlAttribute(name = "delay_mark") + protected Boolean delayMark; + @XmlAttribute(name = "line_style") + protected String lineStyle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the from property. + * + * @return + * possible object is + * {@link ViewContentType.Connector.From } + * + */ + public ViewContentType.Connector.From getFrom() { + return from; + } + + /** + * Sets the value of the from property. + * + * @param value + * allowed object is + * {@link ViewContentType.Connector.From } + * + */ + public void setFrom(ViewContentType.Connector.From value) { + this.from = value; + } + + /** + * Gets the value of the to property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTo() { + return to; + } + + /** + * Sets the value of the to property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTo(String value) { + this.to = value; + } + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the angle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getAngle() { + return angle; + } + + /** + * Sets the value of the angle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setAngle(Double value) { + this.angle = value; + } + + /** + * Gets the value of the delayMark property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelayMark() { + if (delayMark == null) { + return false; + } else { + return delayMark; + } + } + + /** + * Sets the value of the delayMark property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelayMark(Boolean value) { + this.delayMark = value; + } + + /** + * Gets the value of the lineStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLineStyle() { + if (lineStyle == null) { + return "solid"; + } else { + return lineStyle; + } + } + + /** + * Sets the value of the lineStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLineStyle(String value) { + this.lineStyle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <all minOccurs="0">
+         *         <element name="alias" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+         *                 <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+         *                 <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </all>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "content" + }) + public static class From { + + @XmlElementRef(name = "alias", namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", type = JAXBElement.class, required = false) + @XmlMixed + protected List content; + + /** + * Gets the value of the content property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the content property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getContent().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link String } + * {@link JAXBElement }{@code <}{@link ViewContentType.Connector.From.Alias }{@code >} + * + * + */ + public List getContent() { + if (content == null) { + content = new ArrayList(); + } + return this.content; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+             *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+             *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Alias { + + @XmlAttribute(name = "uid") + protected Integer uid; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+     *         <element name="pts">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence maxOccurs="unbounded">
+     *                   <element name="pt">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *                           <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Flow { + + protected Shape shape; + @XmlElement(required = true) + protected ViewContentType.Flow.Pts pts; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the shape property. + * + * @return + * possible object is + * {@link Shape } + * + */ + public Shape getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value + * allowed object is + * {@link Shape } + * + */ + public void setShape(Shape value) { + this.shape = value; + } + + /** + * Gets the value of the pts property. + * + * @return + * possible object is + * {@link ViewContentType.Flow.Pts } + * + */ + public ViewContentType.Flow.Pts getPts() { + return pts; + } + + /** + * Sets the value of the pts property. + * + * @param value + * allowed object is + * {@link ViewContentType.Flow.Pts } + * + */ + public void setPts(ViewContentType.Flow.Pts value) { + this.pts = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence maxOccurs="unbounded">
+         *         <element name="pt">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+         *                 <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "pt" + }) + public static class Pts { + + @XmlElement(required = true) + protected List pt; + + /** + * Gets the value of the pt property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the pt property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getPt().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ViewContentType.Flow.Pts.Pt } + * + * + */ + public List getPt() { + if (pt == null) { + pt = new ArrayList(); + } + return this.pt; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}double" />
+             *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}double" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Pt { + + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}plot" maxOccurs="unbounded"/>
+     *       </choice>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}graph_type" default="time_series" />
+     *       <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="doc" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="show_grid" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="num_x_grid_lines" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+     *       <attribute name="num_y_grid_lines" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+     *       <attribute name="num_y_labels" type="{http://www.w3.org/2001/XMLSchema}int" default="0" />
+     *       <attribute name="x_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="right_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="right_axis_auto_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="right_axis_multi_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="left_axis_title" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="left_axis_auto_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="left_axis_multi_scale" type="{http://www.w3.org/2001/XMLSchema}boolean" default="true" />
+     *       <attribute name="plot_numbers" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="comparative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="from" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="to" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "plot" + }) + public static class Graph { + + protected List plot; + @XmlAttribute(name = "type") + protected GraphType type; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "doc") + protected String doc; + @XmlAttribute(name = "show_grid") + protected Boolean showGrid; + @XmlAttribute(name = "num_x_grid_lines") + protected Integer numXGridLines; + @XmlAttribute(name = "num_y_grid_lines") + protected Integer numYGridLines; + @XmlAttribute(name = "num_y_labels") + protected Integer numYLabels; + @XmlAttribute(name = "x_axis_title") + protected String xAxisTitle; + @XmlAttribute(name = "right_axis_title") + protected String rightAxisTitle; + @XmlAttribute(name = "right_axis_auto_scale") + protected Boolean rightAxisAutoScale; + @XmlAttribute(name = "right_axis_multi_scale") + protected Boolean rightAxisMultiScale; + @XmlAttribute(name = "left_axis_title") + protected String leftAxisTitle; + @XmlAttribute(name = "left_axis_auto_scale") + protected Boolean leftAxisAutoScale; + @XmlAttribute(name = "left_axis_multi_scale") + protected Boolean leftAxisMultiScale; + @XmlAttribute(name = "plot_numbers") + protected Boolean plotNumbers; + @XmlAttribute(name = "comparative") + protected Boolean comparative; + @XmlAttribute(name = "from") + protected Double from; + @XmlAttribute(name = "to") + protected Double to; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the plot property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the plot property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getPlot().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Plot } + * + * + */ + public List getPlot() { + if (plot == null) { + plot = new ArrayList(); + } + return this.plot; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link GraphType } + * + */ + public GraphType getType() { + if (type == null) { + return GraphType.TIME_SERIES; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link GraphType } + * + */ + public void setType(GraphType value) { + this.type = value; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the doc property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoc() { + return doc; + } + + /** + * Sets the value of the doc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoc(String value) { + this.doc = value; + } + + /** + * Gets the value of the showGrid property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowGrid() { + if (showGrid == null) { + return true; + } else { + return showGrid; + } + } + + /** + * Sets the value of the showGrid property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowGrid(Boolean value) { + this.showGrid = value; + } + + /** + * Gets the value of the numXGridLines property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getNumXGridLines() { + if (numXGridLines == null) { + return 0; + } else { + return numXGridLines; + } + } + + /** + * Sets the value of the numXGridLines property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumXGridLines(Integer value) { + this.numXGridLines = value; + } + + /** + * Gets the value of the numYGridLines property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getNumYGridLines() { + if (numYGridLines == null) { + return 0; + } else { + return numYGridLines; + } + } + + /** + * Sets the value of the numYGridLines property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumYGridLines(Integer value) { + this.numYGridLines = value; + } + + /** + * Gets the value of the numYLabels property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getNumYLabels() { + if (numYLabels == null) { + return 0; + } else { + return numYLabels; + } + } + + /** + * Sets the value of the numYLabels property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setNumYLabels(Integer value) { + this.numYLabels = value; + } + + /** + * Gets the value of the xAxisTitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getXAxisTitle() { + return xAxisTitle; + } + + /** + * Sets the value of the xAxisTitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setXAxisTitle(String value) { + this.xAxisTitle = value; + } + + /** + * Gets the value of the rightAxisTitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getRightAxisTitle() { + return rightAxisTitle; + } + + /** + * Sets the value of the rightAxisTitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setRightAxisTitle(String value) { + this.rightAxisTitle = value; + } + + /** + * Gets the value of the rightAxisAutoScale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRightAxisAutoScale() { + if (rightAxisAutoScale == null) { + return true; + } else { + return rightAxisAutoScale; + } + } + + /** + * Sets the value of the rightAxisAutoScale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRightAxisAutoScale(Boolean value) { + this.rightAxisAutoScale = value; + } + + /** + * Gets the value of the rightAxisMultiScale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isRightAxisMultiScale() { + if (rightAxisMultiScale == null) { + return true; + } else { + return rightAxisMultiScale; + } + } + + /** + * Sets the value of the rightAxisMultiScale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setRightAxisMultiScale(Boolean value) { + this.rightAxisMultiScale = value; + } + + /** + * Gets the value of the leftAxisTitle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLeftAxisTitle() { + return leftAxisTitle; + } + + /** + * Sets the value of the leftAxisTitle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLeftAxisTitle(String value) { + this.leftAxisTitle = value; + } + + /** + * Gets the value of the leftAxisAutoScale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLeftAxisAutoScale() { + if (leftAxisAutoScale == null) { + return true; + } else { + return leftAxisAutoScale; + } + } + + /** + * Sets the value of the leftAxisAutoScale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLeftAxisAutoScale(Boolean value) { + this.leftAxisAutoScale = value; + } + + /** + * Gets the value of the leftAxisMultiScale property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isLeftAxisMultiScale() { + if (leftAxisMultiScale == null) { + return true; + } else { + return leftAxisMultiScale; + } + } + + /** + * Sets the value of the leftAxisMultiScale property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLeftAxisMultiScale(Boolean value) { + this.leftAxisMultiScale = value; + } + + /** + * Gets the value of the plotNumbers property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isPlotNumbers() { + if (plotNumbers == null) { + return false; + } else { + return plotNumbers; + } + } + + /** + * Sets the value of the plotNumbers property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setPlotNumbers(Boolean value) { + this.plotNumbers = value; + } + + /** + * Gets the value of the comparative property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isComparative() { + if (comparative == null) { + return false; + } else { + return comparative; + } + } + + /** + * Sets the value of the comparative property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setComparative(Boolean value) { + this.comparative = value; + } + + /** + * Gets the value of the from property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getFrom() { + return from; + } + + /** + * Sets the value of the from property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setFrom(Double value) { + this.from = value; + } + + /** + * Gets the value of the to property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getTo() { + return to; + } + + /** + * Sets the value of the to property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setTo(Double value) { + this.to = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence maxOccurs="unbounded" minOccurs="0">
+     *         <element name="item">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="locked" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "item" + }) + public static class Group { + + protected List item; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "locked") + protected Boolean locked; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the item property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the item property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getItem().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ViewContentType.Group.Item } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the locked property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isLocked() { + return locked; + } + + /** + * Sets the value of the locked property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setLocked(Boolean value) { + this.locked = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <attribute name="uid" type="{http://www.w3.org/2001/XMLSchema}int" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Item { + + @XmlAttribute(name = "uid") + protected Integer uid; + + /** + * Gets the value of the uid property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setUid(Integer value) { + this.uid = value; + } + + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Module { + + protected Shape shape; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + + /** + * Gets the value of the shape property. + * + * @return + * possible object is + * {@link Shape } + * + */ + public Shape getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value + * allowed object is + * {@link Shape } + * + */ + public void setShape(Shape value) { + this.shape = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}entity" maxOccurs="unbounded"/>
+     *       </choice>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attribute name="show_name" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="clicking_sound" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="layout" default="vertical">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="vertical"/>
+     *             <enumeration value="horizontal"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="vertical_spacing" type="{http://www.w3.org/2001/XMLSchema}int" default="2" />
+     *       <attribute name="horizontal_spacing" type="{http://www.w3.org/2001/XMLSchema}int" default="2" />
+     *       <attribute name="uid" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "entity" + }) + public static class Options { + + protected List entity; + @XmlAttribute(name = "show_name") + protected Boolean showName; + @XmlAttribute(name = "clicking_sound") + protected Boolean clickingSound; + @XmlAttribute(name = "layout") + protected String layout; + @XmlAttribute(name = "vertical_spacing") + protected Integer verticalSpacing; + @XmlAttribute(name = "horizontal_spacing") + protected Integer horizontalSpacing; + @XmlAttribute(name = "uid", required = true) + protected int uid; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + + /** + * Gets the value of the entity property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the entity property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getEntity().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link org.simantics.sysdyn.xmile.schema.Entity } + * + * + */ + public List getEntity() { + if (entity == null) { + entity = new ArrayList(); + } + return this.entity; + } + + /** + * Gets the value of the showName property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isShowName() { + if (showName == null) { + return false; + } else { + return showName; + } + } + + /** + * Sets the value of the showName property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowName(Boolean value) { + this.showName = value; + } + + /** + * Gets the value of the clickingSound property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isClickingSound() { + if (clickingSound == null) { + return false; + } else { + return clickingSound; + } + } + + /** + * Sets the value of the clickingSound property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setClickingSound(Boolean value) { + this.clickingSound = value; + } + + /** + * Gets the value of the layout property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLayout() { + if (layout == null) { + return "vertical"; + } else { + return layout; + } + } + + /** + * Sets the value of the layout property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLayout(String value) { + this.layout = value; + } + + /** + * Gets the value of the verticalSpacing property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getVerticalSpacing() { + if (verticalSpacing == null) { + return 2; + } else { + return verticalSpacing; + } + } + + /** + * Sets the value of the verticalSpacing property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setVerticalSpacing(Integer value) { + this.verticalSpacing = value; + } + + /** + * Gets the value of the horizontalSpacing property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public int getHorizontalSpacing() { + if (horizontalSpacing == null) { + return 2; + } else { + return horizontalSpacing; + } + } + + /** + * Sets the value of the horizontalSpacing property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setHorizontalSpacing(Integer value) { + this.horizontalSpacing = value; + } + + /** + * Gets the value of the uid property. + * + */ + public int getUid() { + return uid; + } + + /** + * Sets the value of the uid property. + * + */ + public void setUid(int value) { + this.uid = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <all>
+     *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}shape" minOccurs="0"/>
+     *       </all>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}positioning_attributes"/>
+     *       <attribute name="name" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Stock { + + protected Shape shape; + @XmlAttribute(name = "name") + protected String name; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "x") + protected Double x; + @XmlAttribute(name = "y") + protected Double y; + @XmlAttribute(name = "height") + protected Double height; + @XmlAttribute(name = "width") + protected Double width; + @XmlAttribute(name = "label_side") + protected String labelSide; + @XmlAttribute(name = "label_angle") + protected Double labelAngle; + + /** + * Gets the value of the shape property. + * + * @return + * possible object is + * {@link Shape } + * + */ + public Shape getShape() { + return shape; + } + + /** + * Sets the value of the shape property. + * + * @param value + * allowed object is + * {@link Shape } + * + */ + public void setShape(Shape value) { + this.shape = value; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setX(Double value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setY(Double value) { + this.y = value; + } + + /** + * Gets the value of the height property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getHeight() { + return height; + } + + /** + * Sets the value of the height property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setHeight(Double value) { + this.height = value; + } + + /** + * Gets the value of the width property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getWidth() { + return width; + } + + /** + * Sets the value of the width property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setWidth(Double value) { + this.width = value; + } + + /** + * Gets the value of the labelSide property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getLabelSide() { + return labelSide; + } + + /** + * Sets the value of the labelSide property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setLabelSide(String value) { + this.labelSide = value; + } + + /** + * Gets the value of the labelAngle property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getLabelAngle() { + return labelAngle; + } + + /** + * Sets the value of the labelAngle property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setLabelAngle(Double value) { + this.labelAngle = value; + } + + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <choice>
+     *         <element name="item" maxOccurs="unbounded">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <all>
+     *                   <element name="entity" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                           <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </all>
+     *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *                 <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format_attributes"/>
+     *                 <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}table_item_type" default="variable" />
+     *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </choice>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+     *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}header_style_attributes"/>
+     *       <attribute name="title" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="doc" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="orientation" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}orientation" default="vertical" />
+     *       <attribute name="column_width" use="required" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *       <attribute name="blank_column_width" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *       <attribute name="report_interval" use="required" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_interval" />
+     *       <attribute name="report_balances" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_balances" default="beginning" />
+     *       <attribute name="report_flows" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}report_flows" default="instantaneous" />
+     *       <attribute name="comparative" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *       <attribute name="wrap_text" type="{http://www.w3.org/2001/XMLSchema}boolean" default="false" />
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "item" + }) + public static class Table { + + protected List item; + @XmlAttribute(name = "title") + protected String title; + @XmlAttribute(name = "doc") + protected String doc; + @XmlAttribute(name = "orientation") + protected Orientation orientation; + @XmlAttribute(name = "column_width", required = true) + protected int columnWidth; + @XmlAttribute(name = "blank_column_width") + protected Integer blankColumnWidth; + @XmlAttribute(name = "report_interval", required = true) + protected String reportInterval; + @XmlAttribute(name = "report_balances") + protected ReportBalances reportBalances; + @XmlAttribute(name = "report_flows") + protected ReportFlows reportFlows; + @XmlAttribute(name = "comparative") + protected Boolean comparative; + @XmlAttribute(name = "wrap_text") + protected Boolean wrapText; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "header_border_width") + protected String headerBorderWidth; + @XmlAttribute(name = "header_border_color") + protected String headerBorderColor; + @XmlAttribute(name = "header_border_style") + protected String headerBorderStyle; + @XmlAttribute(name = "header_font_family") + protected String headerFontFamily; + @XmlAttribute(name = "header_font_style") + protected String headerFontStyle; + @XmlAttribute(name = "header_font_weight") + protected String headerFontWeight; + @XmlAttribute(name = "header_text_decoration") + protected String headerTextDecoration; + @XmlAttribute(name = "header_text_align") + protected TextAlign headerTextAlign; + @XmlAttribute(name = "header_vertical_text_align") + protected VerticalTextAlign headerVerticalTextAlign; + @XmlAttribute(name = "header_font_color") + protected String headerFontColor; + @XmlAttribute(name = "header_text_background") + protected String headerTextBackground; + @XmlAttribute(name = "header_font_size") + protected String headerFontSize; + @XmlAttribute(name = "header_padding") + protected String headerPadding; + @XmlAttribute(name = "header_color") + protected String headerColor; + @XmlAttribute(name = "header_background") + protected String headerBackground; + @XmlAttribute(name = "header_z_index") + protected BigInteger headerZIndex; + + /** + * Gets the value of the item property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the item property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getItem().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link ViewContentType.Table.Item } + * + * + */ + public List getItem() { + if (item == null) { + item = new ArrayList(); + } + return this.item; + } + + /** + * Gets the value of the title property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTitle() { + return title; + } + + /** + * Sets the value of the title property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTitle(String value) { + this.title = value; + } + + /** + * Gets the value of the doc property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDoc() { + return doc; + } + + /** + * Sets the value of the doc property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDoc(String value) { + this.doc = value; + } + + /** + * Gets the value of the orientation property. + * + * @return + * possible object is + * {@link Orientation } + * + */ + public Orientation getOrientation() { + if (orientation == null) { + return Orientation.VERTICAL; + } else { + return orientation; + } + } + + /** + * Sets the value of the orientation property. + * + * @param value + * allowed object is + * {@link Orientation } + * + */ + public void setOrientation(Orientation value) { + this.orientation = value; + } + + /** + * Gets the value of the columnWidth property. + * + */ + public int getColumnWidth() { + return columnWidth; + } + + /** + * Sets the value of the columnWidth property. + * + */ + public void setColumnWidth(int value) { + this.columnWidth = value; + } + + /** + * Gets the value of the blankColumnWidth property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getBlankColumnWidth() { + return blankColumnWidth; + } + + /** + * Sets the value of the blankColumnWidth property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setBlankColumnWidth(Integer value) { + this.blankColumnWidth = value; + } + + /** + * Gets the value of the reportInterval property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getReportInterval() { + return reportInterval; + } + + /** + * Sets the value of the reportInterval property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setReportInterval(String value) { + this.reportInterval = value; + } + + /** + * Gets the value of the reportBalances property. + * + * @return + * possible object is + * {@link ReportBalances } + * + */ + public ReportBalances getReportBalances() { + if (reportBalances == null) { + return ReportBalances.BEGINNING; + } else { + return reportBalances; + } + } + + /** + * Sets the value of the reportBalances property. + * + * @param value + * allowed object is + * {@link ReportBalances } + * + */ + public void setReportBalances(ReportBalances value) { + this.reportBalances = value; + } + + /** + * Gets the value of the reportFlows property. + * + * @return + * possible object is + * {@link ReportFlows } + * + */ + public ReportFlows getReportFlows() { + if (reportFlows == null) { + return ReportFlows.INSTANTANEOUS; + } else { + return reportFlows; + } + } + + /** + * Sets the value of the reportFlows property. + * + * @param value + * allowed object is + * {@link ReportFlows } + * + */ + public void setReportFlows(ReportFlows value) { + this.reportFlows = value; + } + + /** + * Gets the value of the comparative property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isComparative() { + if (comparative == null) { + return false; + } else { + return comparative; + } + } + + /** + * Sets the value of the comparative property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setComparative(Boolean value) { + this.comparative = value; + } + + /** + * Gets the value of the wrapText property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isWrapText() { + if (wrapText == null) { + return false; + } else { + return wrapText; + } + } + + /** + * Sets the value of the wrapText property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setWrapText(Boolean value) { + this.wrapText = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the headerBorderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderBorderWidth() { + return headerBorderWidth; + } + + /** + * Sets the value of the headerBorderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderBorderWidth(String value) { + this.headerBorderWidth = value; + } + + /** + * Gets the value of the headerBorderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderBorderColor() { + return headerBorderColor; + } + + /** + * Sets the value of the headerBorderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderBorderColor(String value) { + this.headerBorderColor = value; + } + + /** + * Gets the value of the headerBorderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderBorderStyle() { + if (headerBorderStyle == null) { + return "none"; + } else { + return headerBorderStyle; + } + } + + /** + * Sets the value of the headerBorderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderBorderStyle(String value) { + this.headerBorderStyle = value; + } + + /** + * Gets the value of the headerFontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderFontFamily() { + return headerFontFamily; + } + + /** + * Sets the value of the headerFontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderFontFamily(String value) { + this.headerFontFamily = value; + } + + /** + * Gets the value of the headerFontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderFontStyle() { + if (headerFontStyle == null) { + return "normal"; + } else { + return headerFontStyle; + } + } + + /** + * Sets the value of the headerFontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderFontStyle(String value) { + this.headerFontStyle = value; + } + + /** + * Gets the value of the headerFontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderFontWeight() { + if (headerFontWeight == null) { + return "normal"; + } else { + return headerFontWeight; + } + } + + /** + * Sets the value of the headerFontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderFontWeight(String value) { + this.headerFontWeight = value; + } + + /** + * Gets the value of the headerTextDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderTextDecoration() { + if (headerTextDecoration == null) { + return "normal"; + } else { + return headerTextDecoration; + } + } + + /** + * Sets the value of the headerTextDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderTextDecoration(String value) { + this.headerTextDecoration = value; + } + + /** + * Gets the value of the headerTextAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getHeaderTextAlign() { + if (headerTextAlign == null) { + return TextAlign.LEFT; + } else { + return headerTextAlign; + } + } + + /** + * Sets the value of the headerTextAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setHeaderTextAlign(TextAlign value) { + this.headerTextAlign = value; + } + + /** + * Gets the value of the headerVerticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getHeaderVerticalTextAlign() { + if (headerVerticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return headerVerticalTextAlign; + } + } + + /** + * Sets the value of the headerVerticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setHeaderVerticalTextAlign(VerticalTextAlign value) { + this.headerVerticalTextAlign = value; + } + + /** + * Gets the value of the headerFontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderFontColor() { + return headerFontColor; + } + + /** + * Sets the value of the headerFontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderFontColor(String value) { + this.headerFontColor = value; + } + + /** + * Gets the value of the headerTextBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderTextBackground() { + return headerTextBackground; + } + + /** + * Sets the value of the headerTextBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderTextBackground(String value) { + this.headerTextBackground = value; + } + + /** + * Gets the value of the headerFontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderFontSize() { + return headerFontSize; + } + + /** + * Sets the value of the headerFontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderFontSize(String value) { + this.headerFontSize = value; + } + + /** + * Gets the value of the headerPadding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderPadding() { + return headerPadding; + } + + /** + * Sets the value of the headerPadding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderPadding(String value) { + this.headerPadding = value; + } + + /** + * Gets the value of the headerColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderColor() { + return headerColor; + } + + /** + * Sets the value of the headerColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderColor(String value) { + this.headerColor = value; + } + + /** + * Gets the value of the headerBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getHeaderBackground() { + return headerBackground; + } + + /** + * Sets the value of the headerBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setHeaderBackground(String value) { + this.headerBackground = value; + } + + /** + * Gets the value of the headerZIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getHeaderZIndex() { + return headerZIndex; + } + + /** + * Sets the value of the headerZIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setHeaderZIndex(BigInteger value) { + this.headerZIndex = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <all>
+         *         <element name="entity" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *                 <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </all>
+         *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style_attributes"/>
+         *       <attGroup ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}format_attributes"/>
+         *       <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}table_item_type" default="variable" />
+         *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}int" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + + }) + public static class Item { + + protected ViewContentType.Table.Item.Entity entity; + @XmlAttribute(name = "type") + protected TableItemType type; + @XmlAttribute(name = "index") + protected Integer index; + @XmlAttribute(name = "border_width") + protected String borderWidth; + @XmlAttribute(name = "border_color") + protected String borderColor; + @XmlAttribute(name = "border_style") + protected String borderStyle; + @XmlAttribute(name = "font_family") + protected String fontFamily; + @XmlAttribute(name = "font_style") + protected String fontStyle; + @XmlAttribute(name = "font_weight") + protected String fontWeight; + @XmlAttribute(name = "text_decoration") + protected String textDecoration; + @XmlAttribute(name = "text_align") + protected TextAlign textAlign; + @XmlAttribute(name = "vertical_text_align") + protected VerticalTextAlign verticalTextAlign; + @XmlAttribute(name = "font_color") + protected String fontColor; + @XmlAttribute(name = "text_background") + protected String textBackground; + @XmlAttribute(name = "font_size") + protected String fontSize; + @XmlAttribute(name = "padding") + protected String padding; + @XmlAttribute(name = "color") + protected String color; + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "z_index") + protected BigInteger zIndex; + @XmlAttribute(name = "precision") + protected Double precision; + @XmlAttribute(name = "scale_by") + protected BigInteger scaleBy; + @XmlAttribute(name = "delimit_000s") + protected Boolean delimit000S; + @XmlAttribute(name = "display_as") + protected String displayAs; + + /** + * Gets the value of the entity property. + * + * @return + * possible object is + * {@link ViewContentType.Table.Item.Entity } + * + */ + public ViewContentType.Table.Item.Entity getEntity() { + return entity; + } + + /** + * Sets the value of the entity property. + * + * @param value + * allowed object is + * {@link ViewContentType.Table.Item.Entity } + * + */ + public void setEntity(ViewContentType.Table.Item.Entity value) { + this.entity = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link TableItemType } + * + */ + public TableItemType getType() { + if (type == null) { + return TableItemType.VARIABLE; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link TableItemType } + * + */ + public void setType(TableItemType value) { + this.type = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setIndex(Integer value) { + this.index = value; + } + + /** + * Gets the value of the borderWidth property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderWidth() { + return borderWidth; + } + + /** + * Sets the value of the borderWidth property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderWidth(String value) { + this.borderWidth = value; + } + + /** + * Gets the value of the borderColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderColor() { + return borderColor; + } + + /** + * Sets the value of the borderColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderColor(String value) { + this.borderColor = value; + } + + /** + * Gets the value of the borderStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBorderStyle() { + if (borderStyle == null) { + return "none"; + } else { + return borderStyle; + } + } + + /** + * Sets the value of the borderStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBorderStyle(String value) { + this.borderStyle = value; + } + + /** + * Gets the value of the fontFamily property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontFamily() { + return fontFamily; + } + + /** + * Sets the value of the fontFamily property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontFamily(String value) { + this.fontFamily = value; + } + + /** + * Gets the value of the fontStyle property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontStyle() { + if (fontStyle == null) { + return "normal"; + } else { + return fontStyle; + } + } + + /** + * Sets the value of the fontStyle property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontStyle(String value) { + this.fontStyle = value; + } + + /** + * Gets the value of the fontWeight property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontWeight() { + if (fontWeight == null) { + return "normal"; + } else { + return fontWeight; + } + } + + /** + * Sets the value of the fontWeight property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontWeight(String value) { + this.fontWeight = value; + } + + /** + * Gets the value of the textDecoration property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextDecoration() { + if (textDecoration == null) { + return "normal"; + } else { + return textDecoration; + } + } + + /** + * Sets the value of the textDecoration property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextDecoration(String value) { + this.textDecoration = value; + } + + /** + * Gets the value of the textAlign property. + * + * @return + * possible object is + * {@link TextAlign } + * + */ + public TextAlign getTextAlign() { + if (textAlign == null) { + return TextAlign.LEFT; + } else { + return textAlign; + } + } + + /** + * Sets the value of the textAlign property. + * + * @param value + * allowed object is + * {@link TextAlign } + * + */ + public void setTextAlign(TextAlign value) { + this.textAlign = value; + } + + /** + * Gets the value of the verticalTextAlign property. + * + * @return + * possible object is + * {@link VerticalTextAlign } + * + */ + public VerticalTextAlign getVerticalTextAlign() { + if (verticalTextAlign == null) { + return VerticalTextAlign.CENTER; + } else { + return verticalTextAlign; + } + } + + /** + * Sets the value of the verticalTextAlign property. + * + * @param value + * allowed object is + * {@link VerticalTextAlign } + * + */ + public void setVerticalTextAlign(VerticalTextAlign value) { + this.verticalTextAlign = value; + } + + /** + * Gets the value of the fontColor property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontColor() { + return fontColor; + } + + /** + * Sets the value of the fontColor property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontColor(String value) { + this.fontColor = value; + } + + /** + * Gets the value of the textBackground property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getTextBackground() { + return textBackground; + } + + /** + * Sets the value of the textBackground property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setTextBackground(String value) { + this.textBackground = value; + } + + /** + * Gets the value of the fontSize property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getFontSize() { + return fontSize; + } + + /** + * Sets the value of the fontSize property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setFontSize(String value) { + this.fontSize = value; + } + + /** + * Gets the value of the padding property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPadding() { + return padding; + } + + /** + * Sets the value of the padding property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPadding(String value) { + this.padding = value; + } + + /** + * Gets the value of the color property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getColor() { + return color; + } + + /** + * Sets the value of the color property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setColor(String value) { + this.color = value; + } + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zIndex property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getZIndex() { + return zIndex; + } + + /** + * Sets the value of the zIndex property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setZIndex(BigInteger value) { + this.zIndex = value; + } + + /** + * Gets the value of the precision property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPrecision() { + return precision; + } + + /** + * Sets the value of the precision property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPrecision(Double value) { + this.precision = value; + } + + /** + * Gets the value of the scaleBy property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getScaleBy() { + if (scaleBy == null) { + return new BigInteger("1"); + } else { + return scaleBy; + } + } + + /** + * Sets the value of the scaleBy property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setScaleBy(BigInteger value) { + this.scaleBy = value; + } + + /** + * Gets the value of the delimit000S property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public boolean isDelimit000S() { + if (delimit000S == null) { + return false; + } else { + return delimit000S; + } + } + + /** + * Sets the value of the delimit000S property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setDelimit000S(Boolean value) { + this.delimit000S = value; + } + + /** + * Gets the value of the displayAs property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getDisplayAs() { + if (displayAs == null) { + return "number"; + } else { + return displayAs; + } + } + + /** + * Sets the value of the displayAs property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setDisplayAs(String value) { + this.displayAs = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *       <attribute name="index" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Entity { + + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "index") + protected String index; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the index property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getIndex() { + return index; + } + + /** + * Sets the value of the index property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setIndex(String value) { + this.index = value; + } + + } + + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewType.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewType.java new file mode 100644 index 00000000..3ad4ec2a --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/ViewType.java @@ -0,0 +1,61 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import javax.xml.bind.annotation.XmlEnum; +import javax.xml.bind.annotation.XmlEnumValue; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for view_type. + * + *

The following schema fragment specifies the expected content contained within this class. + *

+ *

+ * <simpleType name="view_type">
+ *   <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *     <enumeration value="stock_flow"/>
+ *     <enumeration value="interface"/>
+ *     <enumeration value="popup"/>
+ *   </restriction>
+ * </simpleType>
+ * 
+ * + */ +@XmlType(name = "view_type") +@XmlEnum +public enum ViewType { + + @XmlEnumValue("stock_flow") + STOCK_FLOW("stock_flow"), + @XmlEnumValue("interface") + INTERFACE("interface"), + @XmlEnumValue("popup") + POPUP("popup"); + private final String value; + + ViewType(String v) { + value = v; + } + + public String value() { + return value; + } + + public static ViewType fromValue(String v) { + for (ViewType c: ViewType.values()) { + if (c.value.equals(v)) { + return c; + } + } + throw new IllegalArgumentException(v); + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Views.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Views.java new file mode 100644 index 00000000..2b1a671c --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Views.java @@ -0,0 +1,571 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigInteger; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <choice maxOccurs="unbounded" minOccurs="0">
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style" minOccurs="0"/>
+ *         <element name="view" maxOccurs="unbounded" minOccurs="0">
+ *           <complexType>
+ *             <complexContent>
+ *               <extension base="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}view_content_type">
+ *                 <attribute name="background" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                 <attribute name="zoom" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="scroll_x" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="scroll_y" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="home_page" type="{http://www.w3.org/2001/XMLSchema}integer" />
+ *                 <attribute name="home_view" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="page_width" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="page_height" type="{http://www.w3.org/2001/XMLSchema}double" />
+ *                 <attribute name="show_pages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+ *                 <attribute name="page_orientation">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="landscape"/>
+ *                       <enumeration value="portrait"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="page_sequence">
+ *                   <simpleType>
+ *                     <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+ *                       <enumeration value="row"/>
+ *                       <enumeration value="column"/>
+ *                     </restriction>
+ *                   </simpleType>
+ *                 </attribute>
+ *                 <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}view_type" default="stock_flow" />
+ *                 <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                 <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                 <attribute name="content" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *               </extension>
+ *             </complexContent>
+ *           </complexType>
+ *         </element>
+ *       </choice>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "styleOrView" +}) +@XmlRootElement(name = "views") +public class Views { + + @XmlElements({ + @XmlElement(name = "style", type = Style.class), + @XmlElement(name = "view", type = Views.View.class) + }) + protected List styleOrView; + + /** + * Gets the value of the styleOrView property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the styleOrView property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getStyleOrView().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Style } + * {@link Views.View } + * + * + */ + public List getStyleOrView() { + if (styleOrView == null) { + styleOrView = new ArrayList(); + } + return this.styleOrView; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <extension base="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}view_content_type">
+     *       <attribute name="background" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *       <attribute name="zoom" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="scroll_x" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="scroll_y" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="home_page" type="{http://www.w3.org/2001/XMLSchema}integer" />
+     *       <attribute name="home_view" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="page_width" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="page_height" type="{http://www.w3.org/2001/XMLSchema}double" />
+     *       <attribute name="show_pages" type="{http://www.w3.org/2001/XMLSchema}boolean" />
+     *       <attribute name="page_orientation">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="landscape"/>
+     *             <enumeration value="portrait"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="page_sequence">
+     *         <simpleType>
+     *           <restriction base="{http://www.w3.org/2001/XMLSchema}string">
+     *             <enumeration value="row"/>
+     *             <enumeration value="column"/>
+     *           </restriction>
+     *         </simpleType>
+     *       </attribute>
+     *       <attribute name="type" type="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}view_type" default="stock_flow" />
+     *       <attribute name="x" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *       <attribute name="y" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *       <attribute name="content" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *     </extension>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class View + extends ViewContentType + { + + @XmlAttribute(name = "background") + protected String background; + @XmlAttribute(name = "zoom") + protected Double zoom; + @XmlAttribute(name = "scroll_x") + protected Double scrollX; + @XmlAttribute(name = "scroll_y") + protected Double scrollY; + @XmlAttribute(name = "home_page") + protected BigInteger homePage; + @XmlAttribute(name = "home_view") + protected Boolean homeView; + @XmlAttribute(name = "page_width") + protected Double pageWidth; + @XmlAttribute(name = "page_height") + protected Double pageHeight; + @XmlAttribute(name = "show_pages") + protected Boolean showPages; + @XmlAttribute(name = "page_orientation") + protected String pageOrientation; + @XmlAttribute(name = "page_sequence") + protected String pageSequence; + @XmlAttribute(name = "type") + protected ViewType type; + @XmlAttribute(name = "x") + protected Integer x; + @XmlAttribute(name = "y") + protected Integer y; + @XmlAttribute(name = "content") + protected String content; + + /** + * Gets the value of the background property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getBackground() { + return background; + } + + /** + * Sets the value of the background property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setBackground(String value) { + this.background = value; + } + + /** + * Gets the value of the zoom property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getZoom() { + return zoom; + } + + /** + * Sets the value of the zoom property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setZoom(Double value) { + this.zoom = value; + } + + /** + * Gets the value of the scrollX property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getScrollX() { + return scrollX; + } + + /** + * Sets the value of the scrollX property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setScrollX(Double value) { + this.scrollX = value; + } + + /** + * Gets the value of the scrollY property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getScrollY() { + return scrollY; + } + + /** + * Sets the value of the scrollY property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setScrollY(Double value) { + this.scrollY = value; + } + + /** + * Gets the value of the homePage property. + * + * @return + * possible object is + * {@link BigInteger } + * + */ + public BigInteger getHomePage() { + return homePage; + } + + /** + * Sets the value of the homePage property. + * + * @param value + * allowed object is + * {@link BigInteger } + * + */ + public void setHomePage(BigInteger value) { + this.homePage = value; + } + + /** + * Gets the value of the homeView property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isHomeView() { + return homeView; + } + + /** + * Sets the value of the homeView property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setHomeView(Boolean value) { + this.homeView = value; + } + + /** + * Gets the value of the pageWidth property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPageWidth() { + return pageWidth; + } + + /** + * Sets the value of the pageWidth property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPageWidth(Double value) { + this.pageWidth = value; + } + + /** + * Gets the value of the pageHeight property. + * + * @return + * possible object is + * {@link Double } + * + */ + public Double getPageHeight() { + return pageHeight; + } + + /** + * Sets the value of the pageHeight property. + * + * @param value + * allowed object is + * {@link Double } + * + */ + public void setPageHeight(Double value) { + this.pageHeight = value; + } + + /** + * Gets the value of the showPages property. + * + * @return + * possible object is + * {@link Boolean } + * + */ + public Boolean isShowPages() { + return showPages; + } + + /** + * Sets the value of the showPages property. + * + * @param value + * allowed object is + * {@link Boolean } + * + */ + public void setShowPages(Boolean value) { + this.showPages = value; + } + + /** + * Gets the value of the pageOrientation property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPageOrientation() { + return pageOrientation; + } + + /** + * Sets the value of the pageOrientation property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPageOrientation(String value) { + this.pageOrientation = value; + } + + /** + * Gets the value of the pageSequence property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getPageSequence() { + return pageSequence; + } + + /** + * Sets the value of the pageSequence property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setPageSequence(String value) { + this.pageSequence = value; + } + + /** + * Gets the value of the type property. + * + * @return + * possible object is + * {@link ViewType } + * + */ + public ViewType getType() { + if (type == null) { + return ViewType.STOCK_FLOW; + } else { + return type; + } + } + + /** + * Sets the value of the type property. + * + * @param value + * allowed object is + * {@link ViewType } + * + */ + public void setType(ViewType value) { + this.type = value; + } + + /** + * Gets the value of the x property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getX() { + return x; + } + + /** + * Sets the value of the x property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setX(Integer value) { + this.x = value; + } + + /** + * Gets the value of the y property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getY() { + return y; + } + + /** + * Sets the value of the y property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setY(Integer value) { + this.y = value; + } + + /** + * Gets the value of the content property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getContent() { + return content; + } + + /** + * Sets the value of the content property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setContent(String value) { + this.content = value; + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Xmile.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Xmile.java new file mode 100644 index 00000000..4634265b --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/Xmile.java @@ -0,0 +1,448 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + + +package org.simantics.sysdyn.xmile.schema; + +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import javax.xml.bind.annotation.XmlAccessType; +import javax.xml.bind.annotation.XmlAccessorType; +import javax.xml.bind.annotation.XmlAttribute; +import javax.xml.bind.annotation.XmlElement; +import javax.xml.bind.annotation.XmlElements; +import javax.xml.bind.annotation.XmlRootElement; +import javax.xml.bind.annotation.XmlType; + + +/** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+ * <complexType>
+ *   <complexContent>
+ *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       <sequence>
+ *         <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}header"/>
+ *         <choice maxOccurs="unbounded">
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}sim_specs" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}model_units" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}behavior" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}data" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}style" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}macro" maxOccurs="unbounded" minOccurs="0"/>
+ *           <element ref="{http://docs.oasis-open.org/xmile/ns/XMILE/v1.0}model" maxOccurs="unbounded"/>
+ *           <element name="dimensions">
+ *             <complexType>
+ *               <complexContent>
+ *                 <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                   <sequence>
+ *                     <element name="dim" maxOccurs="unbounded" minOccurs="0">
+ *                       <complexType>
+ *                         <complexContent>
+ *                           <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                             <sequence maxOccurs="unbounded">
+ *                               <element name="elem" maxOccurs="unbounded" minOccurs="0">
+ *                                 <complexType>
+ *                                   <complexContent>
+ *                                     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *                                       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                                     </restriction>
+ *                                   </complexContent>
+ *                                 </complexType>
+ *                               </element>
+ *                             </sequence>
+ *                             <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+ *                             <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}int" />
+ *                           </restriction>
+ *                         </complexContent>
+ *                       </complexType>
+ *                     </element>
+ *                   </sequence>
+ *                 </restriction>
+ *               </complexContent>
+ *             </complexType>
+ *           </element>
+ *         </choice>
+ *       </sequence>
+ *       <attribute name="version" use="required">
+ *         <simpleType>
+ *           <restriction base="{http://www.w3.org/2001/XMLSchema}decimal">
+ *             <enumeration value="1.0"/>
+ *           </restriction>
+ *         </simpleType>
+ *       </attribute>
+ *     </restriction>
+ *   </complexContent>
+ * </complexType>
+ * 
+ * + * + */ +@XmlAccessorType(XmlAccessType.FIELD) +@XmlType(name = "", propOrder = { + "header", + "simSpecsOrModelUnitsOrBehavior" +}) +@XmlRootElement(name = "xmile") +public class Xmile { + + @XmlElement(required = true) + protected Header header; + @XmlElements({ + @XmlElement(name = "sim_specs", type = SimSpecs.class), + @XmlElement(name = "model_units", type = ModelUnits.class), + @XmlElement(name = "behavior", type = Behavior.class), + @XmlElement(name = "data", type = Data.class), + @XmlElement(name = "style", type = Style.class), + @XmlElement(name = "macro", type = Macro.class), + @XmlElement(name = "model", type = Model.class), + @XmlElement(name = "dimensions", type = Xmile.Dimensions.class) + }) + protected List simSpecsOrModelUnitsOrBehavior; + @XmlAttribute(name = "version", required = true) + protected BigDecimal version; + + /** + * Gets the value of the header property. + * + * @return + * possible object is + * {@link Header } + * + */ + public Header getHeader() { + return header; + } + + /** + * Sets the value of the header property. + * + * @param value + * allowed object is + * {@link Header } + * + */ + public void setHeader(Header value) { + this.header = value; + } + + /** + * Gets the value of the simSpecsOrModelUnitsOrBehavior property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the simSpecsOrModelUnitsOrBehavior property. + * + *

+ * For example, to add a new item, do as follows: + *

+     *    getSimSpecsOrModelUnitsOrBehavior().add(newItem);
+     * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link SimSpecs } + * {@link ModelUnits } + * {@link Behavior } + * {@link Data } + * {@link Style } + * {@link Macro } + * {@link Model } + * {@link Xmile.Dimensions } + * + * + */ + public List getSimSpecsOrModelUnitsOrBehavior() { + if (simSpecsOrModelUnitsOrBehavior == null) { + simSpecsOrModelUnitsOrBehavior = new ArrayList(); + } + return this.simSpecsOrModelUnitsOrBehavior; + } + + /** + * Gets the value of the version property. + * + * @return + * possible object is + * {@link BigDecimal } + * + */ + public BigDecimal getVersion() { + return version; + } + + /** + * Sets the value of the version property. + * + * @param value + * allowed object is + * {@link BigDecimal } + * + */ + public void setVersion(BigDecimal value) { + this.version = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+     * <complexType>
+     *   <complexContent>
+     *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *       <sequence>
+     *         <element name="dim" maxOccurs="unbounded" minOccurs="0">
+     *           <complexType>
+     *             <complexContent>
+     *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                 <sequence maxOccurs="unbounded">
+     *                   <element name="elem" maxOccurs="unbounded" minOccurs="0">
+     *                     <complexType>
+     *                       <complexContent>
+     *                         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+     *                           <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                         </restriction>
+     *                       </complexContent>
+     *                     </complexType>
+     *                   </element>
+     *                 </sequence>
+     *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+     *                 <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}int" />
+     *               </restriction>
+     *             </complexContent>
+     *           </complexType>
+     *         </element>
+     *       </sequence>
+     *     </restriction>
+     *   </complexContent>
+     * </complexType>
+     * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "dim" + }) + public static class Dimensions { + + protected List dim; + + /** + * Gets the value of the dim property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the dim property. + * + *

+ * For example, to add a new item, do as follows: + *

+         *    getDim().add(newItem);
+         * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Xmile.Dimensions.Dim } + * + * + */ + public List getDim() { + if (dim == null) { + dim = new ArrayList(); + } + return this.dim; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+         * <complexType>
+         *   <complexContent>
+         *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *       <sequence maxOccurs="unbounded">
+         *         <element name="elem" maxOccurs="unbounded" minOccurs="0">
+         *           <complexType>
+         *             <complexContent>
+         *               <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+         *                 <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *               </restriction>
+         *             </complexContent>
+         *           </complexType>
+         *         </element>
+         *       </sequence>
+         *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+         *       <attribute name="size" type="{http://www.w3.org/2001/XMLSchema}int" />
+         *     </restriction>
+         *   </complexContent>
+         * </complexType>
+         * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "", propOrder = { + "elem" + }) + public static class Dim { + + protected List elem; + @XmlAttribute(name = "name", required = true) + protected String name; + @XmlAttribute(name = "size") + protected Integer size; + + /** + * Gets the value of the elem property. + * + *

+ * This accessor method returns a reference to the live list, + * not a snapshot. Therefore any modification you make to the + * returned list will be present inside the JAXB object. + * This is why there is not a set method for the elem property. + * + *

+ * For example, to add a new item, do as follows: + *

+             *    getElem().add(newItem);
+             * 
+ * + * + *

+ * Objects of the following type(s) are allowed in the list + * {@link Xmile.Dimensions.Dim.Elem } + * + * + */ + public List getElem() { + if (elem == null) { + elem = new ArrayList(); + } + return this.elem; + } + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + /** + * Gets the value of the size property. + * + * @return + * possible object is + * {@link Integer } + * + */ + public Integer getSize() { + return size; + } + + /** + * Sets the value of the size property. + * + * @param value + * allowed object is + * {@link Integer } + * + */ + public void setSize(Integer value) { + this.size = value; + } + + + /** + *

Java class for anonymous complex type. + * + *

The following schema fragment specifies the expected content contained within this class. + * + *

+             * <complexType>
+             *   <complexContent>
+             *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+             *       <attribute name="name" use="required" type="{http://www.w3.org/2001/XMLSchema}string" />
+             *     </restriction>
+             *   </complexContent>
+             * </complexType>
+             * 
+ * + * + */ + @XmlAccessorType(XmlAccessType.FIELD) + @XmlType(name = "") + public static class Elem { + + @XmlAttribute(name = "name", required = true) + protected String name; + + /** + * Gets the value of the name property. + * + * @return + * possible object is + * {@link String } + * + */ + public String getName() { + return name; + } + + /** + * Sets the value of the name property. + * + * @param value + * allowed object is + * {@link String } + * + */ + public void setName(String value) { + this.name = value; + } + + } + + } + + } + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/package-info.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/package-info.java new file mode 100644 index 00000000..3033f5c6 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/schema/package-info.java @@ -0,0 +1,9 @@ +// +// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.8-b130911.1802 +// See http://java.sun.com/xml/jaxb +// Any modifications to this file will be lost upon recompilation of the source schema. +// Generated on: 2015.04.14 at 05:10:40 PM EEST +// + +@javax.xml.bind.annotation.XmlSchema(namespace = "http://docs.oasis-open.org/xmile/ns/XMILE/v1.0", elementFormDefault = javax.xml.bind.annotation.XmlNsForm.QUALIFIED) +package org.simantics.sysdyn.xmile.schema; diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/ParseException.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/ParseException.java new file mode 100644 index 00000000..5ad3eb00 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/ParseException.java @@ -0,0 +1,187 @@ +/* Generated By:JavaCC: Do not edit this line. ParseException.java Version 6.0 */ +/* JavaCCOptions:KEEP_LINE_COL=null */ +package org.simantics.sysdyn.xmile.unitParser; + +/** + * This exception is thrown when parse errors are encountered. + * You can explicitly create objects of this exception type by + * calling the method generateParseException in the generated + * parser. + * + * You can modify this class to customize your error reporting + * mechanisms so long as you retain the public fields. + */ +public class ParseException extends Exception { + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /** + * This constructor is used by the method "generateParseException" + * in the generated parser. Calling this constructor generates + * a new object of this type with the fields "currentToken", + * "expectedTokenSequences", and "tokenImage" set. + */ + public ParseException(Token currentTokenVal, + int[][] expectedTokenSequencesVal, + String[] tokenImageVal + ) + { + super(initialise(currentTokenVal, expectedTokenSequencesVal, tokenImageVal)); + currentToken = currentTokenVal; + expectedTokenSequences = expectedTokenSequencesVal; + tokenImage = tokenImageVal; + } + + /** + * The following constructors are for use by you for whatever + * purpose you can think of. Constructing the exception in this + * manner makes the exception behave in the normal way - i.e., as + * documented in the class "Throwable". The fields "errorToken", + * "expectedTokenSequences", and "tokenImage" do not contain + * relevant information. The JavaCC generated code does not use + * these constructors. + */ + + public ParseException() { + super(); + } + + /** Constructor with message. */ + public ParseException(String message) { + super(message); + } + + + /** + * This is the last token that has been consumed successfully. If + * this object has been created due to a parse error, the token + * followng this token will (therefore) be the first error token. + */ + public Token currentToken; + + /** + * Each entry in this array is an array of integers. Each array + * of integers represents a sequence of tokens (by their ordinal + * values) that is expected at this point of the parse. + */ + public int[][] expectedTokenSequences; + + /** + * This is a reference to the "tokenImage" array of the generated + * parser within which the parse error occurred. This array is + * defined in the generated ...Constants interface. + */ + public String[] tokenImage; + + /** + * It uses "currentToken" and "expectedTokenSequences" to generate a parse + * error message and returns it. If this object has been created + * due to a parse error, and you do not catch it (it gets thrown + * from the parser) the correct error message + * gets displayed. + */ + private static String initialise(Token currentToken, + int[][] expectedTokenSequences, + String[] tokenImage) { + String eol = System.getProperty("line.separator", "\n"); + StringBuffer expected = new StringBuffer(); + int maxSize = 0; + for (int i = 0; i < expectedTokenSequences.length; i++) { + if (maxSize < expectedTokenSequences[i].length) { + maxSize = expectedTokenSequences[i].length; + } + for (int j = 0; j < expectedTokenSequences[i].length; j++) { + expected.append(tokenImage[expectedTokenSequences[i][j]]).append(' '); + } + if (expectedTokenSequences[i][expectedTokenSequences[i].length - 1] != 0) { + expected.append("..."); + } + expected.append(eol).append(" "); + } + String retval = "Encountered \""; + Token tok = currentToken.next; + for (int i = 0; i < maxSize; i++) { + if (i != 0) retval += " "; + if (tok.kind == 0) { + retval += tokenImage[0]; + break; + } + retval += " " + tokenImage[tok.kind]; + retval += " \""; + retval += add_escapes(tok.image); + retval += " \""; + tok = tok.next; + } + retval += "\" at line " + currentToken.next.beginLine + ", column " + currentToken.next.beginColumn; + retval += "." + eol; + if (expectedTokenSequences.length == 1) { + retval += "Was expecting:" + eol + " "; + } else { + retval += "Was expecting one of:" + eol + " "; + } + retval += expected.toString(); + return retval; + } + + /** + * The end of line string for this machine. + */ + protected String eol = System.getProperty("line.separator", "\n"); + + /** + * Used to convert raw characters to their escaped version + * when these raw version cannot be used as part of an ASCII + * string literal. + */ + static String add_escapes(String str) { + StringBuffer retval = new StringBuffer(); + char ch; + for (int i = 0; i < str.length(); i++) { + switch (str.charAt(i)) + { + case 0 : + continue; + case '\b': + retval.append("\\b"); + continue; + case '\t': + retval.append("\\t"); + continue; + case '\n': + retval.append("\\n"); + continue; + case '\f': + retval.append("\\f"); + continue; + case '\r': + retval.append("\\r"); + continue; + case '\"': + retval.append("\\\""); + continue; + case '\'': + retval.append("\\\'"); + continue; + case '\\': + retval.append("\\\\"); + continue; + default: + if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { + String s = "0000" + Integer.toString(ch, 16); + retval.append("\\u" + s.substring(s.length() - 4, s.length())); + } else { + retval.append(ch); + } + continue; + } + } + return retval.toString(); + } + +} +/* JavaCC - OriginalChecksum=9f3e5b6dbc3a23b192addd19d5bbff40 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/SimpleCharStream.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/SimpleCharStream.java new file mode 100644 index 00000000..f451316c --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/SimpleCharStream.java @@ -0,0 +1,474 @@ +/* Generated By:JavaCC: Do not edit this line. SimpleCharStream.java Version 6.0 */ +/* JavaCCOptions:STATIC=false,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ +package org.simantics.sysdyn.xmile.unitParser; + +/** + * An implementation of interface CharStream, where the stream is assumed to + * contain only ASCII characters (without unicode processing). + */ + +public class SimpleCharStream +{ +/** Whether parser is static. */ + public static final boolean staticFlag = false; + int bufsize; + int available; + int tokenBegin; +/** Position in buffer. */ + public int bufpos = -1; + protected int bufline[]; + protected int bufcolumn[]; + + protected int column = 0; + protected int line = 1; + + protected boolean prevCharIsCR = false; + protected boolean prevCharIsLF = false; + + protected java.io.Reader inputStream; + + protected char[] buffer; + protected int maxNextCharInd = 0; + protected int inBuf = 0; + protected int tabSize = 8; + protected boolean trackLineColumn = true; + + public void setTabSize(int i) { tabSize = i; } + public int getTabSize() { return tabSize; } + + + protected void ExpandBuff(boolean wrapAround) + { + char[] newbuffer = new char[bufsize + 2048]; + int newbufline[] = new int[bufsize + 2048]; + int newbufcolumn[] = new int[bufsize + 2048]; + + try + { + if (wrapAround) + { + System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); + System.arraycopy(buffer, 0, newbuffer, bufsize - tokenBegin, bufpos); + buffer = newbuffer; + + System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); + System.arraycopy(bufline, 0, newbufline, bufsize - tokenBegin, bufpos); + bufline = newbufline; + + System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); + System.arraycopy(bufcolumn, 0, newbufcolumn, bufsize - tokenBegin, bufpos); + bufcolumn = newbufcolumn; + + maxNextCharInd = (bufpos += (bufsize - tokenBegin)); + } + else + { + System.arraycopy(buffer, tokenBegin, newbuffer, 0, bufsize - tokenBegin); + buffer = newbuffer; + + System.arraycopy(bufline, tokenBegin, newbufline, 0, bufsize - tokenBegin); + bufline = newbufline; + + System.arraycopy(bufcolumn, tokenBegin, newbufcolumn, 0, bufsize - tokenBegin); + bufcolumn = newbufcolumn; + + maxNextCharInd = (bufpos -= tokenBegin); + } + } + catch (Throwable t) + { + throw new Error(t.getMessage()); + } + + + bufsize += 2048; + available = bufsize; + tokenBegin = 0; + } + + protected void FillBuff() throws java.io.IOException + { + if (maxNextCharInd == available) + { + if (available == bufsize) + { + if (tokenBegin > 2048) + { + bufpos = maxNextCharInd = 0; + available = tokenBegin; + } + else if (tokenBegin < 0) + bufpos = maxNextCharInd = 0; + else + ExpandBuff(false); + } + else if (available > tokenBegin) + available = bufsize; + else if ((tokenBegin - available) < 2048) + ExpandBuff(true); + else + available = tokenBegin; + } + + int i; + try { + if ((i = inputStream.read(buffer, maxNextCharInd, available - maxNextCharInd)) == -1) + { + inputStream.close(); + throw new java.io.IOException(); + } + else + maxNextCharInd += i; + return; + } + catch(java.io.IOException e) { + --bufpos; + backup(0); + if (tokenBegin == -1) + tokenBegin = bufpos; + throw e; + } + } + +/** Start. */ + public char BeginToken() throws java.io.IOException + { + tokenBegin = -1; + char c = readChar(); + tokenBegin = bufpos; + + return c; + } + + protected void UpdateLineColumn(char c) + { + column++; + + if (prevCharIsLF) + { + prevCharIsLF = false; + line += (column = 1); + } + else if (prevCharIsCR) + { + prevCharIsCR = false; + if (c == '\n') + { + prevCharIsLF = true; + } + else + line += (column = 1); + } + + switch (c) + { + case '\r' : + prevCharIsCR = true; + break; + case '\n' : + prevCharIsLF = true; + break; + case '\t' : + column--; + column += (tabSize - (column % tabSize)); + break; + default : + break; + } + + bufline[bufpos] = line; + bufcolumn[bufpos] = column; + } + +/** Read a character. */ + public char readChar() throws java.io.IOException + { + if (inBuf > 0) + { + --inBuf; + + if (++bufpos == bufsize) + bufpos = 0; + + return buffer[bufpos]; + } + + if (++bufpos >= maxNextCharInd) + FillBuff(); + + char c = buffer[bufpos]; + + UpdateLineColumn(c); + return c; + } + + @Deprecated + /** + * @deprecated + * @see #getEndColumn + */ + + public int getColumn() { + return bufcolumn[bufpos]; + } + + @Deprecated + /** + * @deprecated + * @see #getEndLine + */ + + public int getLine() { + return bufline[bufpos]; + } + + /** Get token end column number. */ + public int getEndColumn() { + return bufcolumn[bufpos]; + } + + /** Get token end line number. */ + public int getEndLine() { + return bufline[bufpos]; + } + + /** Get token beginning column number. */ + public int getBeginColumn() { + return bufcolumn[tokenBegin]; + } + + /** Get token beginning line number. */ + public int getBeginLine() { + return bufline[tokenBegin]; + } + +/** Backup a number of characters. */ + public void backup(int amount) { + + inBuf += amount; + if ((bufpos -= amount) < 0) + bufpos += bufsize; + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream, int startline, + int startcolumn, int buffersize) + { + inputStream = dstream; + line = startline; + column = startcolumn - 1; + + available = bufsize = buffersize; + buffer = new char[buffersize]; + bufline = new int[buffersize]; + bufcolumn = new int[buffersize]; + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream, int startline, + int startcolumn) + { + this(dstream, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.Reader dstream) + { + this(dstream, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream, int startline, + int startcolumn, int buffersize) + { + inputStream = dstream; + line = startline; + column = startcolumn - 1; + + if (buffer == null || buffersize != buffer.length) + { + available = bufsize = buffersize; + buffer = new char[buffersize]; + bufline = new int[buffersize]; + bufcolumn = new int[buffersize]; + } + prevCharIsLF = prevCharIsCR = false; + tokenBegin = inBuf = maxNextCharInd = 0; + bufpos = -1; + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream, int startline, + int startcolumn) + { + ReInit(dstream, startline, startcolumn, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader dstream) + { + ReInit(dstream, 1, 1, 4096); + } + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, + int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException + { + this(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, int startline, + int startcolumn, int buffersize) + { + this(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding, int startline, + int startcolumn) throws java.io.UnsupportedEncodingException + { + this(dstream, encoding, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, int startline, + int startcolumn) + { + this(dstream, startline, startcolumn, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException + { + this(dstream, encoding, 1, 1, 4096); + } + + /** Constructor. */ + public SimpleCharStream(java.io.InputStream dstream) + { + this(dstream, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding, int startline, + int startcolumn, int buffersize) throws java.io.UnsupportedEncodingException + { + ReInit(encoding == null ? new java.io.InputStreamReader(dstream) : new java.io.InputStreamReader(dstream, encoding), startline, startcolumn, buffersize); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, int startline, + int startcolumn, int buffersize) + { + ReInit(new java.io.InputStreamReader(dstream), startline, startcolumn, buffersize); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding) throws java.io.UnsupportedEncodingException + { + ReInit(dstream, encoding, 1, 1, 4096); + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream) + { + ReInit(dstream, 1, 1, 4096); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, String encoding, int startline, + int startcolumn) throws java.io.UnsupportedEncodingException + { + ReInit(dstream, encoding, startline, startcolumn, 4096); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream dstream, int startline, + int startcolumn) + { + ReInit(dstream, startline, startcolumn, 4096); + } + /** Get token literal value. */ + public String GetImage() + { + if (bufpos >= tokenBegin) + return new String(buffer, tokenBegin, bufpos - tokenBegin + 1); + else + return new String(buffer, tokenBegin, bufsize - tokenBegin) + + new String(buffer, 0, bufpos + 1); + } + + /** Get the suffix. */ + public char[] GetSuffix(int len) + { + char[] ret = new char[len]; + + if ((bufpos + 1) >= len) + System.arraycopy(buffer, bufpos - len + 1, ret, 0, len); + else + { + System.arraycopy(buffer, bufsize - (len - bufpos - 1), ret, 0, + len - bufpos - 1); + System.arraycopy(buffer, 0, ret, len - bufpos - 1, bufpos + 1); + } + + return ret; + } + + /** Reset buffer when finished. */ + public void Done() + { + buffer = null; + bufline = null; + bufcolumn = null; + } + + /** + * Method to adjust line and column numbers for the start of a token. + */ + public void adjustBeginLineColumn(int newLine, int newCol) + { + int start = tokenBegin; + int len; + + if (bufpos >= tokenBegin) + { + len = bufpos - tokenBegin + inBuf + 1; + } + else + { + len = bufsize - tokenBegin + bufpos + 1 + inBuf; + } + + int i = 0, j = 0, k = 0; + int nextColDiff = 0, columnDiff = 0; + + while (i < len && bufline[j = start % bufsize] == bufline[k = ++start % bufsize]) + { + bufline[j] = newLine; + nextColDiff = columnDiff + bufcolumn[k] - bufcolumn[j]; + bufcolumn[j] = newCol + columnDiff; + columnDiff = nextColDiff; + i++; + } + + if (i < len) + { + bufline[j] = newLine++; + bufcolumn[j] = newCol + columnDiff; + + while (i++ < len) + { + if (bufline[j = start % bufsize] != bufline[++start % bufsize]) + bufline[j] = newLine++; + else + bufline[j] = newLine; + } + } + + line = bufline[j]; + column = bufcolumn[j]; + } + + boolean getTrackLineColumn() { return trackLineColumn; } + void setTrackLineColumn(boolean tlc) { trackLineColumn = tlc; } +} +/* JavaCC - OriginalChecksum=510770489b298cc3439ff0dd6aa7b2a2 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/Token.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/Token.java new file mode 100644 index 00000000..502c182f --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/Token.java @@ -0,0 +1,131 @@ +/* Generated By:JavaCC: Do not edit this line. Token.java Version 6.0 */ +/* JavaCCOptions:TOKEN_EXTENDS=,KEEP_LINE_COL=null,SUPPORT_CLASS_VISIBILITY_PUBLIC=true */ +package org.simantics.sysdyn.xmile.unitParser; + +/** + * Describes the input token stream. + */ + +public class Token implements java.io.Serializable { + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /** + * An integer that describes the kind of this token. This numbering + * system is determined by JavaCCParser, and a table of these numbers is + * stored in the file ...Constants.java. + */ + public int kind; + + /** The line number of the first character of this Token. */ + public int beginLine; + /** The column number of the first character of this Token. */ + public int beginColumn; + /** The line number of the last character of this Token. */ + public int endLine; + /** The column number of the last character of this Token. */ + public int endColumn; + + /** + * The string image of the token. + */ + public String image; + + /** + * A reference to the next regular (non-special) token from the input + * stream. If this is the last token from the input stream, or if the + * token manager has not read tokens beyond this one, this field is + * set to null. This is true only if this token is also a regular + * token. Otherwise, see below for a description of the contents of + * this field. + */ + public Token next; + + /** + * This field is used to access special tokens that occur prior to this + * token, but after the immediately preceding regular (non-special) token. + * If there are no such special tokens, this field is set to null. + * When there are more than one such special token, this field refers + * to the last of these special tokens, which in turn refers to the next + * previous special token through its specialToken field, and so on + * until the first special token (whose specialToken field is null). + * The next fields of special tokens refer to other special tokens that + * immediately follow it (without an intervening regular token). If there + * is no such token, this field is null. + */ + public Token specialToken; + + /** + * An optional attribute value of the Token. + * Tokens which are not used as syntactic sugar will often contain + * meaningful values that will be used later on by the compiler or + * interpreter. This attribute value is often different from the image. + * Any subclass of Token that actually wants to return a non-null value can + * override this method as appropriate. + */ + public Object getValue() { + return null; + } + + /** + * No-argument constructor + */ + public Token() {} + + /** + * Constructs a new token for the specified Image. + */ + public Token(int kind) + { + this(kind, null); + } + + /** + * Constructs a new token for the specified Image and Kind. + */ + public Token(int kind, String image) + { + this.kind = kind; + this.image = image; + } + + /** + * Returns the image. + */ + public String toString() + { + return image; + } + + /** + * Returns a new Token object, by default. However, if you want, you + * can create and return subclass objects based on the value of ofKind. + * Simply add the cases to the switch for all those special cases. + * For example, if you have a subclass of Token called IDToken that + * you want to create if ofKind is ID, simply add something like : + * + * case MyParserConstants.ID : return new IDToken(ofKind, image); + * + * to the following switch statement. Then you can cast matchedToken + * variable to the appropriate type and use sit in your lexical actions. + */ + public static Token newToken(int ofKind, String image) + { + switch(ofKind) + { + default : return new Token(ofKind, image); + } + } + + public static Token newToken(int ofKind) + { + return newToken(ofKind, null); + } + +} +/* JavaCC - OriginalChecksum=bdd300af469a200cfaa070dc9d7dd2fc (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/TokenMgrError.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/TokenMgrError.java new file mode 100644 index 00000000..06ae7744 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/TokenMgrError.java @@ -0,0 +1,147 @@ +/* Generated By:JavaCC: Do not edit this line. TokenMgrError.java Version 6.0 */ +/* JavaCCOptions: */ +package org.simantics.sysdyn.xmile.unitParser; + +/** Token Manager Error. */ +public class TokenMgrError extends Error +{ + + /** + * The version identifier for this Serializable class. + * Increment only if the serialized form of the + * class changes. + */ + private static final long serialVersionUID = 1L; + + /* + * Ordinals for various reasons why an Error of this type can be thrown. + */ + + /** + * Lexical error occurred. + */ + static final int LEXICAL_ERROR = 0; + + /** + * An attempt was made to create a second instance of a static token manager. + */ + static final int STATIC_LEXER_ERROR = 1; + + /** + * Tried to change to an invalid lexical state. + */ + static final int INVALID_LEXICAL_STATE = 2; + + /** + * Detected (and bailed out of) an infinite loop in the token manager. + */ + static final int LOOP_DETECTED = 3; + + /** + * Indicates the reason why the exception is thrown. It will have + * one of the above 4 values. + */ + int errorCode; + + /** + * Replaces unprintable characters by their escaped (or unicode escaped) + * equivalents in the given string + */ + protected static final String addEscapes(String str) { + StringBuffer retval = new StringBuffer(); + char ch; + for (int i = 0; i < str.length(); i++) { + switch (str.charAt(i)) + { + case 0 : + continue; + case '\b': + retval.append("\\b"); + continue; + case '\t': + retval.append("\\t"); + continue; + case '\n': + retval.append("\\n"); + continue; + case '\f': + retval.append("\\f"); + continue; + case '\r': + retval.append("\\r"); + continue; + case '\"': + retval.append("\\\""); + continue; + case '\'': + retval.append("\\\'"); + continue; + case '\\': + retval.append("\\\\"); + continue; + default: + if ((ch = str.charAt(i)) < 0x20 || ch > 0x7e) { + String s = "0000" + Integer.toString(ch, 16); + retval.append("\\u" + s.substring(s.length() - 4, s.length())); + } else { + retval.append(ch); + } + continue; + } + } + return retval.toString(); + } + + /** + * Returns a detailed message for the Error when it is thrown by the + * token manager to indicate a lexical error. + * Parameters : + * EOFSeen : indicates if EOF caused the lexical error + * curLexState : lexical state in which this error occurred + * errorLine : line number when the error occurred + * errorColumn : column number when the error occurred + * errorAfter : prefix that was seen before this error occurred + * curchar : the offending character + * Note: You can customize the lexical error message by modifying this method. + */ + protected static String LexicalError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar) { + return("Lexical error at line " + + errorLine + ", column " + + errorColumn + ". Encountered: " + + (EOFSeen ? " " : ("\"" + addEscapes(String.valueOf(curChar)) + "\"") + " (" + (int)curChar + "), ") + + "after : \"" + addEscapes(errorAfter) + "\""); + } + + /** + * You can also modify the body of this method to customize your error messages. + * For example, cases like LOOP_DETECTED and INVALID_LEXICAL_STATE are not + * of end-users concern, so you can return something like : + * + * "Internal Error : Please file a bug report .... " + * + * from this method for such cases in the release version of your parser. + */ + public String getMessage() { + return super.getMessage(); + } + + /* + * Constructors of various flavors follow. + */ + + /** No arg constructor. */ + public TokenMgrError() { + } + + /** Constructor with message and reason. */ + public TokenMgrError(String message, int reason) { + super(message); + errorCode = reason; + } + + /** Full Constructor. */ + public TokenMgrError(boolean EOFSeen, int lexState, int errorLine, int errorColumn, String errorAfter, char curChar, int reason) { + this(LexicalError(EOFSeen, lexState, errorLine, errorColumn, errorAfter, curChar), reason); + } +} +/* JavaCC - OriginalChecksum=c39c596a3f3055640a83c4034a411637 (do not edit this line) */ diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParser.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParser.java new file mode 100644 index 00000000..0479edf2 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParser.java @@ -0,0 +1,282 @@ +/* XmileUnitParser.java */ +/* Generated By:JavaCC: Do not edit this line. XmileUnitParser.java */ +package org.simantics.sysdyn.xmile.unitParser; + +import java.io.StringReader; +import java.util.Map; + +public class XmileUnitParser implements XmileUnitParserConstants { + private static final boolean DEBUG = true; + + public static String parse(String equation, Map units) { + XmileUnitParser parser = new XmileUnitParser(new StringReader(equation)); + + try { + return parser.Equation(units); + } + catch (ParseException e) { + e.printStackTrace(); + return null; + } + } + + final public String Equation(Map units) throws ParseException {String e; + e = BinExpr(units); + jj_consume_token(0); +{if ("" != null) return e;} + throw new Error("Missing return statement in function"); + } + + final public String BinOp() throws ParseException { + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case MULT:{ + jj_consume_token(MULT); +{if ("" != null) return "*";} + break; + } + case DIV:{ + jj_consume_token(DIV); +{if ("" != null) return "/";} + break; + } + case EXP:{ + jj_consume_token(EXP); +{if ("" != null) return "^";} + break; + } + default: + jj_la1[0] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } + + final public String BinExpr(Map units) throws ParseException {String l = null; + String o = null; + String r = null; + l = Atom(units); + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case MULT: + case DIV: + case EXP:{ + o = BinOp(); + r = BinExpr(units); + break; + } + default: + jj_la1[1] = jj_gen; + ; + } +{if ("" != null) return o != null ? l + o + r : l;} + throw new Error("Missing return statement in function"); + } + + final public String Atom(Map units) throws ParseException {Token t = null; + String s = null; + switch ((jj_ntk==-1)?jj_ntk_f():jj_ntk) { + case IDENTITY:{ + jj_consume_token(IDENTITY); +{if ("" != null) return "1";} + break; + } + case IDENT:{ + t = jj_consume_token(IDENT); +String key = t.image.toUpperCase(); + if (units != null && units.get(key) != null) { + {if ("" != null) return units.get(key);} + } + else { + {if ("" != null) return t.image;} + } + break; + } + case QIDENT:{ + t = jj_consume_token(QIDENT); +{if ("" != null) return t.image;} + break; + } + case LPAREN:{ + jj_consume_token(LPAREN); + s = BinExpr(units); + jj_consume_token(RPAREN); +{if ("" != null) return "(" + s + ")";} + break; + } + default: + jj_la1[2] = jj_gen; + jj_consume_token(-1); + throw new ParseException(); + } + throw new Error("Missing return statement in function"); + } + + /** Generated Token Manager. */ + public XmileUnitParserTokenManager token_source; + SimpleCharStream jj_input_stream; + /** Current token. */ + public Token token; + /** Next token. */ + public Token jj_nt; + private int jj_ntk; + private int jj_gen; + final private int[] jj_la1 = new int[3]; + static private int[] jj_la1_0; + static { + jj_la1_init_0(); + } + private static void jj_la1_init_0() { + jj_la1_0 = new int[] {0x1c,0x1c,0x3a0,}; + } + + /** Constructor with InputStream. */ + public XmileUnitParser(java.io.InputStream stream) { + this(stream, null); + } + /** Constructor with InputStream and supplied encoding */ + public XmileUnitParser(java.io.InputStream stream, String encoding) { + try { jj_input_stream = new SimpleCharStream(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); } + token_source = new XmileUnitParserTokenManager(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + /** Reinitialise. */ + public void ReInit(java.io.InputStream stream) { + ReInit(stream, null); + } + /** Reinitialise. */ + public void ReInit(java.io.InputStream stream, String encoding) { + try { jj_input_stream.ReInit(stream, encoding, 1, 1); } catch(java.io.UnsupportedEncodingException e) { throw new RuntimeException(e); } + token_source.ReInit(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + /** Constructor. */ + public XmileUnitParser(java.io.Reader stream) { + jj_input_stream = new SimpleCharStream(stream, 1, 1); + token_source = new XmileUnitParserTokenManager(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + /** Reinitialise. */ + public void ReInit(java.io.Reader stream) { + jj_input_stream.ReInit(stream, 1, 1); + token_source.ReInit(jj_input_stream); + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + /** Constructor with generated Token Manager. */ + public XmileUnitParser(XmileUnitParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + /** Reinitialise. */ + public void ReInit(XmileUnitParserTokenManager tm) { + token_source = tm; + token = new Token(); + jj_ntk = -1; + jj_gen = 0; + for (int i = 0; i < 3; i++) jj_la1[i] = -1; + } + + private Token jj_consume_token(int kind) throws ParseException { + Token oldToken; + if ((oldToken = token).next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + if (token.kind == kind) { + jj_gen++; + return token; + } + token = oldToken; + jj_kind = kind; + throw generateParseException(); + } + + +/** Get the next Token. */ + final public Token getNextToken() { + if (token.next != null) token = token.next; + else token = token.next = token_source.getNextToken(); + jj_ntk = -1; + jj_gen++; + return token; + } + +/** Get the specific Token. */ + final public Token getToken(int index) { + Token t = token; + for (int i = 0; i < index; i++) { + if (t.next != null) t = t.next; + else t = t.next = token_source.getNextToken(); + } + return t; + } + + private int jj_ntk_f() { + if ((jj_nt=token.next) == null) + return (jj_ntk = (token.next=token_source.getNextToken()).kind); + else + return (jj_ntk = jj_nt.kind); + } + + private java.util.List jj_expentries = new java.util.ArrayList(); + private int[] jj_expentry; + private int jj_kind = -1; + + /** Generate ParseException. */ + public ParseException generateParseException() { + jj_expentries.clear(); + boolean[] la1tokens = new boolean[10]; + if (jj_kind >= 0) { + la1tokens[jj_kind] = true; + jj_kind = -1; + } + for (int i = 0; i < 3; i++) { + if (jj_la1[i] == jj_gen) { + for (int j = 0; j < 32; j++) { + if ((jj_la1_0[i] & (1< units) { + XmileUnitParser parser = new XmileUnitParser(new StringReader(equation)); + + try { + return parser.Equation(units); + } + catch (ParseException e) { + e.printStackTrace(); + return null; + } + } +} +PARSER_END(XmileUnitParser) + +SKIP : { " " } + +TOKEN : +{ + +|
+| +| +| +| +} + +TOKEN : +{ + /* space is included here because it seems some of the xmile examples use + spaces in unit identifiers even though they should not */ + +| +} + +String Equation(Map units) : +{ + String e; +} +{ + e=BinExpr(units) { return e; } +} + +String BinOp() : +{} +{ + { return "*"; } +|
{ return "/"; } +| { return "^"; } +} + +String BinExpr(Map units) : +{ + String l = null; + String o = null; + String r = null; +} +{ + l=Atom(units) [ o=BinOp() r=BinExpr(units) ] { return o != null ? l + o + r : l; } +} + +String Atom(Map units) : +{ + Token t = null; + String s = null; +} +{ + { return "1"; } +| t= + { + String key = t.image.toUpperCase(); + if (units != null && units.get(key) != null) { + return units.get(key); + } + else { + return t.image; + } + } +| t= { return t.image; } +| s=BinExpr(units) { return "(" + s + ")"; } +} \ No newline at end of file diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserConstants.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserConstants.java new file mode 100644 index 00000000..85c3f138 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserConstants.java @@ -0,0 +1,47 @@ +/* Generated By:JavaCC: Do not edit this line. XmileUnitParserConstants.java */ +package org.simantics.sysdyn.xmile.unitParser; + + +/** + * Token literal values and constants. + * Generated by org.javacc.parser.OtherFilesGen#start() + */ +public interface XmileUnitParserConstants { + + /** End of File. */ + int EOF = 0; + /** RegularExpression Id. */ + int MULT = 2; + /** RegularExpression Id. */ + int DIV = 3; + /** RegularExpression Id. */ + int EXP = 4; + /** RegularExpression Id. */ + int LPAREN = 5; + /** RegularExpression Id. */ + int RPAREN = 6; + /** RegularExpression Id. */ + int IDENTITY = 7; + /** RegularExpression Id. */ + int IDENT = 8; + /** RegularExpression Id. */ + int QIDENT = 9; + + /** Lexical state. */ + int DEFAULT = 0; + + /** Literal token values. */ + String[] tokenImage = { + "", + "\" \"", + "", + "\"/\"", + "\"^\"", + "\"(\"", + "\")\"", + "", + "", + "", + }; + +} diff --git a/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserTokenManager.java b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserTokenManager.java new file mode 100644 index 00000000..d0834e51 --- /dev/null +++ b/org.simantics.sysdyn.xmile/src/org/simantics/sysdyn/xmile/unitParser/XmileUnitParserTokenManager.java @@ -0,0 +1,497 @@ +/* XmileUnitParserTokenManager.java */ +/* Generated By:JavaCC: Do not edit this line. XmileUnitParserTokenManager.java */ +package org.simantics.sysdyn.xmile.unitParser; +import java.io.StringReader; +import java.util.Map; + +/** Token Manager. */ +@SuppressWarnings("unused")public class XmileUnitParserTokenManager implements XmileUnitParserConstants { + + /** Debug output. */ + public java.io.PrintStream debugStream = System.out; + /** Set debug output. */ + public void setDebugStream(java.io.PrintStream ds) { debugStream = ds; } +private final int jjStopStringLiteralDfa_0(int pos, long active0){ + switch (pos) + { + default : + return -1; + } +} +private final int jjStartNfa_0(int pos, long active0){ + return jjMoveNfa_0(jjStopStringLiteralDfa_0(pos, active0), pos + 1); +} +private int jjStopAtPos(int pos, int kind) +{ + jjmatchedKind = kind; + jjmatchedPos = pos; + return pos + 1; +} +private int jjMoveStringLiteralDfa0_0(){ + switch(curChar) + { + case 40: + return jjStopAtPos(0, 5); + case 41: + return jjStopAtPos(0, 6); + case 47: + return jjStopAtPos(0, 3); + case 94: + return jjStopAtPos(0, 4); + default : + return jjMoveNfa_0(0, 0); + } +} +static final long[] jjbitVec0 = { + 0x0L, 0x0L, 0xffffffffffffffffL, 0xffffffffffffffffL +}; +private int jjMoveNfa_0(int startState, int curPos) +{ + int startsAt = 0; + jjnewStateCnt = 33; + int i = 1; + jjstateSet[0] = startState; + int kind = 0x7fffffff; + for (;;) + { + if (++jjround == 0x7fffffff) + ReInitRounds(); + if (curChar < 64) + { + long l = 1L << curChar; + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x240000000000L & l) != 0L) + { + if (kind > 2) + kind = 2; + } + else if (curChar == 34) + { jjCheckNAdd(13); } + else if (curChar == 36) + { + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + } + else if (curChar == 49) + { + if (kind > 7) + kind = 7; + } + break; + case 1: + if (curChar == 49 && kind > 7) + kind = 7; + break; + case 10: + if (curChar != 36) + break; + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + break; + case 11: + if ((0x3ff001100000000L & l) == 0L) + break; + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + break; + case 12: + if (curChar == 34) + { jjCheckNAdd(13); } + break; + case 13: + { jjCheckNAddStates(0, 2); } + break; + case 15: + if (curChar == 34) + { jjCheckNAdd(16); } + break; + case 16: + { jjCheckNAddStates(3, 5); } + break; + case 17: + if (curChar == 34 && kind > 9) + kind = 9; + break; + default : break; + } + } while(i != startsAt); + } + else if (curChar < 128) + { + long l = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 0: + if ((0x7fffffe07fffffeL & l) != 0L) + { + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + } + if (curChar == 68) + { jjAddStates(6, 7); } + else if (curChar == 85) + jjstateSet[jjnewStateCnt++] = 8; + break; + case 2: + if (curChar == 115 && kind > 7) + kind = 7; + break; + case 3: + case 19: + if (curChar == 115) + { jjCheckNAdd(2); } + break; + case 4: + if (curChar == 101) + jjstateSet[jjnewStateCnt++] = 3; + break; + case 5: + if (curChar == 108) + jjstateSet[jjnewStateCnt++] = 4; + break; + case 6: + if (curChar == 116) + jjstateSet[jjnewStateCnt++] = 5; + break; + case 7: + if (curChar == 105) + jjstateSet[jjnewStateCnt++] = 6; + break; + case 8: + if (curChar == 110) + jjstateSet[jjnewStateCnt++] = 7; + break; + case 9: + if (curChar == 85) + jjstateSet[jjnewStateCnt++] = 8; + break; + case 10: + if ((0x7fffffe07fffffeL & l) == 0L) + break; + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + break; + case 11: + if ((0x7fffffe87fffffeL & l) == 0L) + break; + if (kind > 8) + kind = 8; + { jjCheckNAdd(11); } + break; + case 13: + if ((0xffffffffefffffffL & l) != 0L) + { jjCheckNAddStates(0, 2); } + break; + case 14: + if (curChar == 92) + jjstateSet[jjnewStateCnt++] = 15; + break; + case 15: + if ((0x400010000000L & l) != 0L) + { jjCheckNAdd(16); } + break; + case 16: + if ((0xffffffffefffffffL & l) != 0L) + { jjCheckNAddStates(3, 5); } + break; + case 18: + if (curChar == 68) + { jjAddStates(6, 7); } + break; + case 20: + if (curChar == 101) + jjstateSet[jjnewStateCnt++] = 19; + break; + case 21: + if (curChar == 108) + jjstateSet[jjnewStateCnt++] = 20; + break; + case 22: + if (curChar == 110) + jjstateSet[jjnewStateCnt++] = 21; + break; + case 23: + if (curChar == 111) + jjstateSet[jjnewStateCnt++] = 22; + break; + case 24: + if (curChar == 105) + jjstateSet[jjnewStateCnt++] = 23; + break; + case 25: + if (curChar == 115) + jjstateSet[jjnewStateCnt++] = 24; + break; + case 26: + if (curChar == 110) + jjstateSet[jjnewStateCnt++] = 25; + break; + case 27: + if (curChar == 101) + jjstateSet[jjnewStateCnt++] = 26; + break; + case 28: + if (curChar == 109) + jjstateSet[jjnewStateCnt++] = 27; + break; + case 29: + if (curChar == 105) + jjstateSet[jjnewStateCnt++] = 28; + break; + case 30: + if (curChar == 108 && kind > 7) + kind = 7; + break; + case 31: + if (curChar == 110) + jjstateSet[jjnewStateCnt++] = 30; + break; + case 32: + if (curChar == 109) + jjstateSet[jjnewStateCnt++] = 31; + break; + default : break; + } + } while(i != startsAt); + } + else + { + int i2 = (curChar & 0xff) >> 6; + long l2 = 1L << (curChar & 077); + do + { + switch(jjstateSet[--i]) + { + case 13: + if ((jjbitVec0[i2] & l2) != 0L) + { jjCheckNAddStates(0, 2); } + break; + case 16: + if ((jjbitVec0[i2] & l2) != 0L) + { jjCheckNAddStates(3, 5); } + break; + default : break; + } + } while(i != startsAt); + } + if (kind != 0x7fffffff) + { + jjmatchedKind = kind; + jjmatchedPos = curPos; + kind = 0x7fffffff; + } + ++curPos; + if ((i = jjnewStateCnt) == (startsAt = 33 - (jjnewStateCnt = startsAt))) + return curPos; + try { curChar = input_stream.readChar(); } + catch(java.io.IOException e) { return curPos; } + } +} +static final int[] jjnextStates = { + 13, 14, 17, 14, 16, 17, 29, 32, +}; + +/** Token literal values. */ +public static final String[] jjstrLiteralImages = { +"", null, null, "\57", "\136", "\50", "\51", null, null, null, }; +protected Token jjFillToken() +{ + final Token t; + final String curTokenImage; + final int beginLine; + final int endLine; + final int beginColumn; + final int endColumn; + String im = jjstrLiteralImages[jjmatchedKind]; + curTokenImage = (im == null) ? input_stream.GetImage() : im; + beginLine = input_stream.getBeginLine(); + beginColumn = input_stream.getBeginColumn(); + endLine = input_stream.getEndLine(); + endColumn = input_stream.getEndColumn(); + t = Token.newToken(jjmatchedKind, curTokenImage); + + t.beginLine = beginLine; + t.endLine = endLine; + t.beginColumn = beginColumn; + t.endColumn = endColumn; + + return t; +} + +int curLexState = 0; +int defaultLexState = 0; +int jjnewStateCnt; +int jjround; +int jjmatchedPos; +int jjmatchedKind; + +/** Get the next Token. */ +public Token getNextToken() +{ + Token matchedToken; + int curPos = 0; + + EOFLoop : + for (;;) + { + try + { + curChar = input_stream.BeginToken(); + } + catch(java.io.IOException e) + { + jjmatchedKind = 0; + jjmatchedPos = -1; + matchedToken = jjFillToken(); + return matchedToken; + } + + try { input_stream.backup(0); + while (curChar <= 32 && (0x100000000L & (1L << curChar)) != 0L) + curChar = input_stream.BeginToken(); + } + catch (java.io.IOException e1) { continue EOFLoop; } + jjmatchedKind = 0x7fffffff; + jjmatchedPos = 0; + curPos = jjMoveStringLiteralDfa0_0(); + if (jjmatchedKind != 0x7fffffff) + { + if (jjmatchedPos + 1 < curPos) + input_stream.backup(curPos - jjmatchedPos - 1); + if ((jjtoToken[jjmatchedKind >> 6] & (1L << (jjmatchedKind & 077))) != 0L) + { + matchedToken = jjFillToken(); + return matchedToken; + } + else + { + continue EOFLoop; + } + } + int error_line = input_stream.getEndLine(); + int error_column = input_stream.getEndColumn(); + String error_after = null; + boolean EOFSeen = false; + try { input_stream.readChar(); input_stream.backup(1); } + catch (java.io.IOException e1) { + EOFSeen = true; + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + if (curChar == '\n' || curChar == '\r') { + error_line++; + error_column = 0; + } + else + error_column++; + } + if (!EOFSeen) { + input_stream.backup(1); + error_after = curPos <= 1 ? "" : input_stream.GetImage(); + } + throw new TokenMgrError(EOFSeen, curLexState, error_line, error_column, error_after, curChar, TokenMgrError.LEXICAL_ERROR); + } +} + +private void jjCheckNAdd(int state) +{ + if (jjrounds[state] != jjround) + { + jjstateSet[jjnewStateCnt++] = state; + jjrounds[state] = jjround; + } +} +private void jjAddStates(int start, int end) +{ + do { + jjstateSet[jjnewStateCnt++] = jjnextStates[start]; + } while (start++ != end); +} +private void jjCheckNAddTwoStates(int state1, int state2) +{ + jjCheckNAdd(state1); + jjCheckNAdd(state2); +} + +private void jjCheckNAddStates(int start, int end) +{ + do { + jjCheckNAdd(jjnextStates[start]); + } while (start++ != end); +} + + /** Constructor. */ + public XmileUnitParserTokenManager(SimpleCharStream stream){ + + if (SimpleCharStream.staticFlag) + throw new Error("ERROR: Cannot use a static CharStream class with a non-static lexical analyzer."); + + input_stream = stream; + } + + /** Constructor. */ + public XmileUnitParserTokenManager (SimpleCharStream stream, int lexState){ + ReInit(stream); + SwitchTo(lexState); + } + + /** Reinitialise parser. */ + public void ReInit(SimpleCharStream stream) + { + jjmatchedPos = jjnewStateCnt = 0; + curLexState = defaultLexState; + input_stream = stream; + ReInitRounds(); + } + + private void ReInitRounds() + { + int i; + jjround = 0x80000001; + for (i = 33; i-- > 0;) + jjrounds[i] = 0x80000000; + } + + /** Reinitialise parser. */ + public void ReInit(SimpleCharStream stream, int lexState) + { + ReInit(stream); + SwitchTo(lexState); + } + + /** Switch to specified lex state. */ + public void SwitchTo(int lexState) + { + if (lexState >= 1 || lexState < 0) + throw new TokenMgrError("Error: Ignoring invalid lexical state : " + lexState + ". State unchanged.", TokenMgrError.INVALID_LEXICAL_STATE); + else + curLexState = lexState; + } + +/** Lexer state names. */ +public static final String[] lexStateNames = { + "DEFAULT", +}; +static final long[] jjtoToken = { + 0x3fdL, +}; +static final long[] jjtoSkip = { + 0x2L, +}; + protected SimpleCharStream input_stream; + + private final int[] jjrounds = new int[33]; + private final int[] jjstateSet = new int[2 * 33]; + + + protected char curChar; +} -- 2.47.1