JBoss Tools SVN: r16234 - workspace.
by jbosstools-commits@lists.jboss.org
Author: sdzmitrovich
Date: 2009-06-29 02:34:53 -0400 (Mon, 29 Jun 2009)
New Revision: 16234
Added:
workspace/yzhishko/
Log:
Workspace for SWTBotTests
15 years, 6 months
JBoss Tools SVN: r16233 - trunk/common/plugins/org.jboss.tools.common.model.
by jbosstools-commits@lists.jboss.org
Author: sflanigan
Date: 2009-06-28 23:51:30 -0400 (Sun, 28 Jun 2009)
New Revision: 16233
Modified:
trunk/common/plugins/org.jboss.tools.common.model/build.properties
Log:
Added build-time dependencies which were breaking incremental builds of the class ProjectHome (but not "Clean Project" builds). See JBIDE-4349.
Modified: trunk/common/plugins/org.jboss.tools.common.model/build.properties
===================================================================
--- trunk/common/plugins/org.jboss.tools.common.model/build.properties 2009-06-29 03:35:03 UTC (rev 16232)
+++ trunk/common/plugins/org.jboss.tools.common.model/build.properties 2009-06-29 03:51:30 UTC (rev 16233)
@@ -7,3 +7,5 @@
schema/,\
images/,\
model.jar
+additional.bundles = org.eclipse.wst.common.emfworkbench.integration,\
+ org.eclipse.jem.util
15 years, 6 months
JBoss Tools SVN: r16232 - branches.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-06-28 23:35:03 -0400 (Sun, 28 Jun 2009)
New Revision: 16232
Added:
branches/jbosstools-3.1.0.M2/
Log:
branch for 3.1.0.M2
Copied: branches/jbosstools-3.1.0.M2 (from rev 16231, trunk)
15 years, 6 months
JBoss Tools SVN: r16231 - in trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2: .settings and 21 other directories.
by jbosstools-commits@lists.jboss.org
Author: DartPeng
Date: 2009-06-28 22:29:45 -0400 (Sun, 28 Jun 2009)
New Revision: 16231
Added:
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.classpath
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.project
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/org.eclipse.jdt.core.prefs
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/MANIFEST.MF
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/build.properties
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/antlr-2.7.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-codec-1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-httpclient-3.1.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-lang-2.1.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-logging-1.1.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-net-20030805.205232.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/flute-1.3.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/freemarker-2.3.9.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/groovy-all-1.5.0.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jackson-lgpl-0.9.3.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jline-0.9.93.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-commons-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-edisax-parser-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-magger-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-core-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-css-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-csv-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-edi-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-javabean-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-json-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-misc-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-routing-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-scripting-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-servlet-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-templating-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-tinak-1.1.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/mvel-1.3.12-java1.5.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/nekohtml-0.9.5.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/ognl-2.6.9.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/opencsv-1.8.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/sac-1.3.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/stringtemplate-2.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xercesImpl-2.9.1.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xml-apis-1.3.04.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xpp3_min-1.1.3.4.O.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xstream-1.2.2.jar
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/plugin.properties
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssScrapeTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/LocalFilesysLocator.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/input.html
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/style.css
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/expected.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/input-message.csv
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/edi-to-xml-order-mapping.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/expected.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/input-message.edi
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/edi-to-xml-order-mapping.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/expected.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/input-message.edi
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain1.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/InputOrderGenerator.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/ToFileRoutingTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/order-message.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/orderitem-split.ftl
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/input-message.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/orders/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaMain.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaTransformTest.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/expected.txt
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/smooks-config.xml
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Customer.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Header.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Order.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/OrderItem.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Header.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Order.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/OrderItem.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Priority.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineItem.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrder.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrderPriority.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/SmooksCoreActivator.java
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/
trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/report.html
Log:
JBIDE-4536
Create a new plugin with smooks 1.1.2 libraries.
Share project "org.jboss.tools.milyn.smooks1_1_2" into "https://svn.jboss.org/repos/jbosstools/trunk/smooks/plugins"
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.classpath
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.classpath (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.classpath 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,35 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+ <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/J2SE-1.5"/>
+ <classpathentry kind="con" path="org.eclipse.pde.core.requiredPlugins"/>
+ <classpathentry kind="src" path="src"/>
+ <classpathentry kind="lib" path="libs/flute-1.3.jar"/>
+ <classpathentry kind="lib" path="libs/freemarker-2.3.9.jar"/>
+ <classpathentry kind="lib" path="libs/groovy-all-1.5.0.jar"/>
+ <classpathentry kind="lib" path="libs/jackson-lgpl-0.9.3.jar"/>
+ <classpathentry kind="lib" path="libs/jline-0.9.93.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-commons-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-edisax-parser-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-magger-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-core-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-css-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-csv-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-edi-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-javabean-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-json-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-misc-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-routing-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-scripting-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-servlet-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-smooks-templating-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/milyn-tinak-1.1.2.jar"/>
+ <classpathentry kind="lib" path="libs/mvel-1.3.12-java1.5.jar"/>
+ <classpathentry kind="lib" path="libs/nekohtml-0.9.5.jar"/>
+ <classpathentry kind="lib" path="libs/ognl-2.6.9.jar"/>
+ <classpathentry kind="lib" path="libs/opencsv-1.8.jar"/>
+ <classpathentry kind="lib" path="libs/stringtemplate-2.2.jar"/>
+ <classpathentry kind="lib" path="libs/xml-apis-1.3.04.jar"/>
+ <classpathentry kind="lib" path="libs/xpp3_min-1.1.3.4.O.jar"/>
+ <classpathentry kind="lib" path="libs/xstream-1.2.2.jar"/>
+ <classpathentry kind="output" path="bin"/>
+</classpath>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.classpath
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.project
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.project (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.project 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+ <name>org.jboss.tools.milyn.smooks1_1_2</name>
+ <comment></comment>
+ <projects>
+ </projects>
+ <buildSpec>
+ <buildCommand>
+ <name>org.eclipse.jdt.core.javabuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.ManifestBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ <buildCommand>
+ <name>org.eclipse.pde.SchemaBuilder</name>
+ <arguments>
+ </arguments>
+ </buildCommand>
+ </buildSpec>
+ <natures>
+ <nature>org.eclipse.pde.PluginNature</nature>
+ <nature>org.eclipse.jdt.core.javanature</nature>
+ </natures>
+</projectDescription>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.project
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/org.eclipse.jdt.core.prefs
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/org.eclipse.jdt.core.prefs (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/org.eclipse.jdt.core.prefs 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,7 @@
+#Mon Jun 22 10:56:59 CST 2009
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5
+org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
+org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
+org.eclipse.jdt.core.compiler.source=1.5
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/.settings/org.eclipse.jdt.core.prefs
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/MANIFEST.MF
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/MANIFEST.MF (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/MANIFEST.MF 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,50 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.milyn.smooks1_1_2
+Bundle-Version: 1.1.2
+Bundle-Activator: org.jboss.tools.milyn.smooks1_1_2.SmooksCoreActivator
+Require-Bundle: org.eclipse.core.runtime,
+ org.antlr.runtime,
+ org.apache.commons.codec,
+ org.apache.commons.jxpath,
+ org.apache.commons.lang,
+ org.apache.commons.logging,
+ org.apache.xerces,
+ org.apache.commons.httpclient,
+ org.apache.commons.net,
+ org.junit,
+ org.w3c.css.sac
+Bundle-ActivationPolicy: lazy
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ClassPath: libs/flute-1.3.jar,
+ libs/freemarker-2.3.9.jar,
+ libs/groovy-all-1.5.0.jar,
+ libs/jackson-lgpl-0.9.3.jar,
+ libs/jline-0.9.93.jar,
+ libs/milyn-commons-1.1.2.jar,
+ libs/milyn-edisax-parser-1.1.2.jar,
+ libs/milyn-magger-1.1.2.jar,
+ libs/milyn-smooks-core-1.1.2.jar,
+ libs/milyn-smooks-css-1.1.2.jar,
+ libs/milyn-smooks-csv-1.1.2.jar,
+ libs/milyn-smooks-edi-1.1.2.jar,
+ libs/milyn-smooks-javabean-1.1.2.jar,
+ libs/milyn-smooks-json-1.1.2.jar,
+ libs/milyn-smooks-misc-1.1.2.jar,
+ libs/milyn-smooks-routing-1.1.2.jar,
+ libs/milyn-smooks-scripting-1.1.2.jar,
+ libs/milyn-smooks-servlet-1.1.2.jar,
+ libs/milyn-smooks-templating-1.1.2.jar,
+ libs/milyn-tinak-1.1.2.jar,
+ libs/mvel-1.3.12-java1.5.jar,
+ libs/nekohtml-0.9.5.jar,
+ libs/ognl-2.6.9.jar,
+ libs/opencsv-1.8.jar,
+ libs/stringtemplate-2.2.jar,
+ libs/xml-apis-1.3.04.jar,
+ libs/xpp3_min-1.1.3.4.O.jar,
+ libs/xstream-1.2.2.jar,
+ .
+Bundle-Vendor: %providerName
+Bundle-Localization: plugin
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/build.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/build.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/build.properties 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,32 @@
+source.. = src/
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ libs/flute-1.3.jar,\
+ libs/freemarker-2.3.9.jar,\
+ libs/groovy-all-1.5.0.jar,\
+ libs/jackson-lgpl-0.9.3.jar,\
+ libs/jline-0.9.93.jar,\
+ libs/milyn-commons-1.1.2.jar,\
+ libs/milyn-edisax-parser-1.1.2.jar,\
+ libs/milyn-magger-1.1.2.jar,\
+ libs/milyn-smooks-core-1.1.2.jar,\
+ libs/milyn-smooks-css-1.1.2.jar,\
+ libs/milyn-smooks-csv-1.1.2.jar,\
+ libs/milyn-smooks-edi-1.1.2.jar,\
+ libs/milyn-smooks-javabean-1.1.2.jar,\
+ libs/milyn-smooks-json-1.1.2.jar,\
+ libs/milyn-smooks-misc-1.1.2.jar,\
+ libs/milyn-smooks-routing-1.1.2.jar,\
+ libs/milyn-smooks-scripting-1.1.2.jar,\
+ libs/milyn-smooks-servlet-1.1.2.jar,\
+ libs/milyn-smooks-templating-1.1.2.jar,\
+ libs/milyn-tinak-1.1.2.jar,\
+ libs/mvel-1.3.12-java1.5.jar,\
+ libs/nekohtml-0.9.5.jar,\
+ libs/ognl-2.6.9.jar,\
+ libs/opencsv-1.8.jar,\
+ libs/stringtemplate-2.2.jar,\
+ libs/xml-apis-1.3.04.jar,\
+ libs/xpp3_min-1.1.3.4.O.jar,\
+ libs/xstream-1.2.2.jar
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/build.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/antlr-2.7.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/antlr-2.7.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-codec-1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-codec-1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-httpclient-3.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-httpclient-3.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-lang-2.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-lang-2.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-logging-1.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-logging-1.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-net-20030805.205232.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/commons-net-20030805.205232.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/flute-1.3.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/flute-1.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/freemarker-2.3.9.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/freemarker-2.3.9.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/groovy-all-1.5.0.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/groovy-all-1.5.0.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jackson-lgpl-0.9.3.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jackson-lgpl-0.9.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jline-0.9.93.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/jline-0.9.93.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-commons-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-commons-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-edisax-parser-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-edisax-parser-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-magger-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-magger-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-core-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-core-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-css-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-css-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-csv-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-csv-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-edi-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-edi-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-javabean-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-javabean-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-json-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-json-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-misc-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-misc-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-routing-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-routing-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-scripting-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-scripting-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-servlet-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-servlet-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-templating-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-smooks-templating-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-tinak-1.1.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/milyn-tinak-1.1.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/mvel-1.3.12-java1.5.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/mvel-1.3.12-java1.5.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/nekohtml-0.9.5.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/nekohtml-0.9.5.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/ognl-2.6.9.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/ognl-2.6.9.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/opencsv-1.8.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/opencsv-1.8.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/sac-1.3.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/sac-1.3.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/stringtemplate-2.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/stringtemplate-2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xercesImpl-2.9.1.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xercesImpl-2.9.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xml-apis-1.3.04.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xml-apis-1.3.04.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xpp3_min-1.1.3.4.O.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xpp3_min-1.1.3.4.O.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xstream-1.2.2.jar
===================================================================
(Binary files differ)
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/libs/xstream-1.2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/plugin.properties
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/plugin.properties (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/plugin.properties 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,2 @@
+pluginName=Smooks Library 1.1.2 Plug-in
+providerName=JBoss, a division of Red Hat
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/plugin.properties
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,100 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.css;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+import javax.xml.transform.dom.DOMResult;
+import javax.xml.transform.stream.StreamSource;
+
+import org.milyn.Smooks;
+import org.milyn.SmooksException;
+import org.milyn.container.ExecutionContext;
+import org.milyn.css.CSSAccessor;
+import org.milyn.event.report.HtmlReportGenerator;
+import org.milyn.io.StreamUtils;
+import org.milyn.magger.CSSProperty;
+import org.milyn.xml.XmlUtil;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.xml.sax.SAXException;
+
+/**
+ * Simple example main class.
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class CssMain {
+
+ protected static byte[] htmlIn = readInputMessage();
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException {
+ ExecutionContext executionContext = CssMain.runSmooksFilter();
+ CSSAccessor cssAccessor = CSSAccessor.getInstance(executionContext);
+ Document htmlDoc = XmlUtil.parseStream(new ByteArrayInputStream(CssMain.htmlIn), XmlUtil.VALIDATION_TYPE.NONE, false);
+ CSSProperty property;
+
+ System.out.println("\n\n================== CSS Properties ==================\n\n");
+
+ Element htmlElement = (Element) XmlUtil.getNode(htmlDoc, "/html");
+ property = cssAccessor.getProperty(htmlElement, "padding");
+ System.out.println("/html: 'padding': " + property.getValue().getIntegerValue());
+
+ Element pElement = (Element) XmlUtil.getNode(htmlDoc, "/html/body/p");
+ property = cssAccessor.getProperty(pElement, "margin");
+ System.out.println("/html/body/p: 'margin': " + property.getValue().getIntegerValue());
+ property = cssAccessor.getProperty(pElement, "font-size");
+ System.out.println("/html/body/p: 'font-size': " + property.getValue());
+
+ Element h1pElement = (Element) XmlUtil.getNode(htmlDoc, "/html/body/h1/p");
+ property = cssAccessor.getProperty(h1pElement, "font-size");
+ System.out.println("/html/body/h1/p: 'font-size': " + property.getValue());
+
+ System.out.println("\n\n====================================================\n\n");
+ }
+
+ protected static ExecutionContext runSmooksFilter() throws IOException, SAXException, SmooksException {
+
+ // Instantiate Smooks with the config...
+ Smooks smooks = new Smooks("example/css/smooks-config.xml");
+ ExecutionContext executionContext;
+
+ // Set the Resource locator for picking up the <link/> ref'd .css files
+ // from the local File sys... Only need to do this because of a bug in
+ // the URIResourceLocator (which has been fixed: http://jira.codehaus.org/browse/MILYN-56).
+ smooks.getApplicationContext().setResourceLocator(new LocalFilesysLocator());
+
+ // Create an exec context - no profiles....
+ executionContext = smooks.createExecutionContext();
+
+ // Configure the execution context to generate a report...
+ executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
+
+ // Filter the input html through Smooks... we're only analysing...
+ smooks.filter(new StreamSource(new ByteArrayInputStream(htmlIn)), new DOMResult(), executionContext);
+
+ return executionContext;
+ }
+
+ private static byte[] readInputMessage() {
+ try {
+ return StreamUtils.readStream(CssScrapeTest.class.getResourceAsStream("input.html"));
+ } catch (IOException e) {
+ e.printStackTrace();
+ return "<no-message/>".getBytes();
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssScrapeTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssScrapeTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssScrapeTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,55 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.css;
+
+import junit.framework.TestCase;
+
+import java.io.IOException;
+import java.io.ByteArrayInputStream;
+
+import org.xml.sax.SAXException;
+import org.milyn.container.ExecutionContext;
+import org.milyn.css.CSSAccessor;
+import org.milyn.xml.XmlUtil;
+import org.milyn.magger.CSSProperty;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class CssScrapeTest extends TestCase {
+
+ public void test() throws IOException, SAXException {
+ ExecutionContext executionContext = CssMain.runSmooksFilter();
+ CSSAccessor cssAccessor = CSSAccessor.getInstance(executionContext);
+ Document htmlDoc = XmlUtil.parseStream(new ByteArrayInputStream(CssMain.htmlIn), XmlUtil.VALIDATION_TYPE.NONE, false);
+
+ Element htmlElement = (Element) XmlUtil.getNode(htmlDoc, "/html");
+ CSSProperty property;
+
+ property = cssAccessor.getProperty(htmlElement, "padding");
+ assertNotNull(property);
+ assertEquals(50, property.getValue().getIntegerValue());
+ System.out.println("padding property: " + property.getValue());
+
+ Element pElement = (Element) XmlUtil.getNode(htmlDoc, "/html/body/p");
+ property = cssAccessor.getProperty(pElement, "margin");
+ assertNotNull(property);
+ assertEquals(10, property.getValue().getIntegerValue());
+ System.out.println("margin property: " + property.getValue());
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/CssScrapeTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/LocalFilesysLocator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/LocalFilesysLocator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/LocalFilesysLocator.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,35 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.css;
+
+import java.io.IOException;
+import java.io.InputStream;
+
+import org.milyn.resource.ContainerResourceLocator;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class LocalFilesysLocator implements ContainerResourceLocator {
+
+ public InputStream getResource(String configName, String defaultUri) throws IllegalArgumentException, IOException {
+ return getResource(defaultUri);
+ }
+
+ public InputStream getResource(String uri) throws IllegalArgumentException, IOException {
+ return this.getClass().getResourceAsStream(uri);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/LocalFilesysLocator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/input.html
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/input.html (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/input.html 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,29 @@
+<html>
+ <head>
+ <link rel="stylesheet" type="text/css" href="style.css"/>
+ <style type="text/css">
+ html {
+ padding: 50;
+ border: 0;
+ }
+
+ body {
+ padding: 0 0 20px;
+ font-size: 80%;
+ background: #ded;
+ font-family: verdana, sans-serif;
+ }
+
+ .marginten {
+ margin: 10;
+ }
+ </style>
+ </head>
+ <body>
+ <p class="marginten"/>
+ <h1>
+ <p/>
+ <h1 style="font-size: 1em"/>
+ </h1>
+ </body>
+</html>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/input.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd">
+
+ <!--
+ Gather externally linked CSS info...
+ -->
+ <resource-config selector="link">
+ <resource>org.milyn.css.CSSStyleScraper</resource>
+ </resource-config>
+
+ <!--
+ Gather inlined CSS info...
+ -->
+ <resource-config selector="style">
+ <resource>org.milyn.css.CSSStyleScraper</resource>
+ </resource-config>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/style.css
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/style.css (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/style.css 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,2 @@
+p { font-size: 4em }
+h1 p { font-size: 2em }
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/css/style.css
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,71 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.csvtoxml;
+
+import org.milyn.Smooks;
+import org.milyn.SmooksException;
+import org.milyn.event.report.HtmlReportGenerator;
+import org.milyn.io.StreamUtils;
+import org.milyn.container.ExecutionContext;
+import org.xml.sax.SAXException;
+
+import javax.xml.transform.stream.StreamSource;
+import javax.xml.transform.stream.StreamResult;
+import java.io.*;
+
+/**
+ * Simple example main class.
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class CSVtoXMLMain {
+
+ private static byte[] messageIn = readInputMessage();
+
+ protected static String runSmooksTransform() throws IOException, SAXException, SmooksException {
+
+ Smooks smooks = new Smooks("example/csvtoxml/smooks-config.xml");
+ ExecutionContext executionContext = smooks.createExecutionContext();
+ StringWriter writer = new StringWriter();
+
+ // Configure the execution context to generate a report...
+ executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
+
+ smooks.filter(new StreamSource(new InputStreamReader(new ByteArrayInputStream(messageIn), "UTF-8")), new StreamResult(writer), executionContext);
+
+ return writer.toString();
+ }
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException {
+ System.out.println("\n\n==============Message In==============");
+ System.out.println(new String(messageIn));
+ System.out.println("======================================\n");
+
+ String messageOut = CSVtoXMLMain.runSmooksTransform();
+
+ System.out.println("==============Message Out=============");
+ System.out.println(messageOut);
+ System.out.println("======================================\n\n");
+ }
+
+ private static byte[] readInputMessage() {
+ try {
+ return StreamUtils.readStream(CSVtoXMLMain.class.getResourceAsStream("input-message.csv"));
+ } catch (IOException e) {
+ e.printStackTrace();
+ return "<no-message/>".getBytes();
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,40 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.csvtoxml;
+
+import junit.framework.TestCase;
+
+import java.io.IOException;
+import java.io.ByteArrayInputStream;
+
+import org.xml.sax.SAXException;
+import org.milyn.io.StreamUtils;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class CSVtoXMLTest extends TestCase {
+
+ public void test() throws IOException, SAXException {
+ byte[] expected = StreamUtils.readStream(getClass().getResourceAsStream("expected.xml"));
+ String result = CSVtoXMLMain.runSmooksTransform();
+
+ StringBuffer s1 = StreamUtils.trimLines(new ByteArrayInputStream(expected));
+ StringBuffer s2 = StreamUtils.trimLines(new ByteArrayInputStream(result.getBytes()));
+
+ assertEquals("Expected:\n" + s1 + "\nActual:\n" + s2, s1.toString(), s2.toString());
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/CSVtoXMLTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/expected.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/expected.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/expected.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,16 @@
+<csv-set>
+ <csv-record>
+ <firstname>Tom</firstname>
+ <lastname>Fennelly</lastname>
+ <gender>Male</gender>
+ <age>4</age>
+ <country>Ireland</country>
+ </csv-record>
+ <csv-record>
+ <firstname>Mike</firstname>
+ <lastname>Fennelly</lastname>
+ <gender>Male</gender>
+ <age>2</age>
+ <country>Ireland</country>
+ </csv-record>
+</csv-set>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/expected.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/input-message.csv
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/input-message.csv (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/input-message.csv 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,2 @@
+Tom,Fennelly,Male,4,Ireland
+Mike,Fennelly,Male,2,Ireland
\ No newline at end of file
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.1.xsd">
+
+ <!--
+ Configure the CSV Reader to read the message and change it into a stream of SAX events.
+ -->
+ <csv:reader fields="firstname,lastname,gender,age,country" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/csvtoxml/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,103 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.editojava;
+
+import org.milyn.*;
+import org.milyn.container.*;
+import org.milyn.event.report.*;
+import org.milyn.io.*;
+import org.xml.sax.*;
+
+import javax.xml.transform.stream.*;
+import java.io.*;
+import java.util.*;
+
+/**
+ * Simple example main class.
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class EDItoJavaMain {
+
+ private static byte[] messageIn = readInputMessage();
+
+ private final Smooks smooks;
+
+ protected EDItoJavaMain() throws IOException, SAXException {
+ // Instantiate Smooks with the config...
+ smooks = new Smooks("example/editojava/smooks-config.xml");
+ }
+
+ protected org.milyn.payload.JavaResult runSmooksTransform(ExecutionContext executionContext) throws IOException, SAXException, SmooksException {
+
+ Locale defaultLocale = Locale.getDefault();
+ Locale.setDefault(new Locale("en", "IE"));
+
+ org.milyn.payload.JavaResult javaResult = new org.milyn.payload.JavaResult();
+
+ // Configure the execution context to generate a report...
+ executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
+
+ // Filter the input message to the outputWriter, using the execution context...
+ smooks.filter(new StreamSource(new ByteArrayInputStream(messageIn)), javaResult, executionContext);
+
+ Locale.setDefault(defaultLocale);
+
+ return javaResult;
+ }
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException {
+ System.out.println("\n\n==============Message In==============");
+ System.out.println(new String(messageIn));
+ System.out.println("======================================\n");
+
+ pause("The EDI input stream can be seen above. Press 'enter' to see how this stream is transformed the Order Object graph...");
+
+ EDItoJavaMain smooksMain = new EDItoJavaMain();
+ ExecutionContext executionContext = smooksMain.smooks.createExecutionContext();
+ org.milyn.payload.JavaResult result = smooksMain.runSmooksTransform(executionContext);
+
+
+ System.out.println("\n==============EDI as Java Object Graph=============");
+ System.out.println(result.getBean("order"));
+ System.out.println("======================================\n\n");
+
+ pause("And that's it! Press 'enter' to finish...");
+ }
+
+ private static byte[] readInputMessage() {
+ try {
+ return StreamUtils.readStream(EDItoJavaMain.class.getResourceAsStream("input-message.edi"));
+ } catch (IOException e) {
+ e.printStackTrace();
+ return "<no-message/>".getBytes();
+ }
+ }
+
+ private static void pause(String message) {
+ try {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ System.out.print("> " + message);
+ in.readLine();
+ } catch (IOException e) {
+ }
+ System.out.println("\n");
+ }
+
+ public org.milyn.payload.JavaResult runSmooksTransform() throws IOException, SAXException {
+ ExecutionContext executionContext = smooks.createExecutionContext();
+ return runSmooksTransform(executionContext);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,44 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.editojava;
+
+import junit.framework.*;
+import org.xml.sax.*;
+
+import java.io.*;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class EDItoJavaTest extends TestCase {
+
+ public void test() throws IOException, SAXException {
+ String expected = org.milyn.io.StreamUtils.readStreamAsString(getClass().getResourceAsStream("expected.xml"));
+ EDItoJavaMain smooksMain = new EDItoJavaMain();
+
+ org.milyn.payload.JavaResult result = smooksMain.runSmooksTransform();
+
+ com.thoughtworks.xstream.XStream xstream = new com.thoughtworks.xstream.XStream();
+ String actual = xstream.toXML(result.getBean("order"));
+
+ actual = actual.replaceFirst("<date>.*</date>", "<date/>");
+
+ boolean matchesExpected = org.milyn.io.StreamUtils.compareCharStreams(new java.io.StringReader(expected), new java.io.StringReader(actual));
+ if(!matchesExpected) {
+ assertEquals("Actual does not match expected.", expected, actual);
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/EDItoJavaTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/edi-to-xml-order-mapping.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/edi-to-xml-order-mapping.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/edi-to-xml-order-mapping.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd">
+
+ <medi:description name="DVD Order" version="1.0" />
+
+ <medi:delimiters segment=" " field="*" component="^" sub-component="~" />
+
+ <medi:segments xmltag="Order">
+
+ <medi:segment segcode="HDR" xmltag="header">
+ <medi:field xmltag="order-id" />
+ <medi:field xmltag="status-code" />
+ <medi:field xmltag="net-amount" />
+ <medi:field xmltag="total-amount" />
+ <medi:field xmltag="tax" />
+ <medi:field xmltag="date" />
+ </medi:segment>
+
+ <medi:segment segcode="CUS" xmltag="customer-details">
+ <medi:field xmltag="username" />
+ <medi:field xmltag="name">
+ <medi:component xmltag="firstname" />
+ <medi:component xmltag="lastname" />
+ </medi:field>
+ <medi:field xmltag="state" />
+ </medi:segment>
+
+ <medi:segment segcode="ORD" xmltag="order-item" maxOccurs="-1">
+ <medi:field xmltag="position" />
+ <medi:field xmltag="quantity" />
+ <medi:field xmltag="product-id" />
+ <medi:field xmltag="title" />
+ <medi:field xmltag="price" />
+ </medi:segment>
+
+ </medi:segments>
+
+</medi:edimap>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/edi-to-xml-order-mapping.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/expected.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/expected.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/expected.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,30 @@
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date/>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/expected.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/input-message.edi
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/input-message.edi (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/input-message.edi 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,4 @@
+HDR*1*0*59.97*64.92*4.95*Wed Nov 15 13:45:28 EST 2006
+CUS*user1*Harry^Fletcher*SD
+ORD*1*1*364*The 40-Year-Old Virgin*29.98
+ORD*2*1*299*Pulp Fiction*29.99
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,72 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">
+
+ <!--
+ Configure the EDI Reader to parse the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/example/editojava/edi-to-xml-order-mapping.xml" />
+
+ <!--
+ Create an "example.beans.Order" bean instance when we visit the start of the <order> element.
+ Assign the new bean instance to the beanId of "order".
+ The "header" and "orderItemList" beans are wired in.
+ -->
+ <jb:bindings beanId="order" class="example.model.Order" createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItemList" />
+ </jb:bindings>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of the <order> element.
+ Note, we're creating this bean instance before we encounter the actual <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bindings beanId="header" class="example.model.Header" createOnElement="order">
+ <jb:wiring property="customer" beanIdRef="customer" />
+ <jb:value property="orderId" data="header/order-id" />
+ <jb:value property="orderStatus" decoder="Long" data="header/status-code" />
+ <jb:value property="netAmount" decoder="BigDecimal" data="header/net-amount" />
+ <jb:value property="totalAmount" decoder="BigDecimal" data="header/total-amount" />
+ <jb:value property="tax" decoder="BigDecimal" data="header/tax" />
+ <jb:value property="date" decoder="Date" data="header/date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z yyyy</jb:decodeParam>
+ </jb:value>
+ </jb:bindings>
+
+ <!--
+ Create an "example.beans.Customer" bean instance when we visit the start of the
+ <customer-details> element.
+ This bean is wired into the "header" bean.
+ -->
+ <jb:bindings beanId="customer" class="example.model.Customer" createOnElement="customer-details">
+ <!-- Customer bindings... -->
+ <jb:value property="userName" data="customer-details/username" />
+ <jb:value property="firstName" data="customer-details/name/firstname" />
+ <jb:value property="lastName" data="customer-details/name/lastname" />
+ <jb:value property="state" data="customer-details/state" />
+ </jb:bindings>
+
+ <!--
+ Create an ArrayList when we visit the start of the <order> element.
+ The "orderItem" beans are wired into this list and this list is wired into the "order" bean.
+ -->
+ <jb:bindings beanId="orderItemList" class="java.util.ArrayList" createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bindings>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start of the <order-item> element.
+ This bean is wired into the "orderItemList" ArrayList.
+ -->
+ <jb:bindings beanId="orderItem" class="example.model.OrderItem" createOnElement="order-item">
+ <!-- OrderItem bindings... -->
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity" />
+ <jb:value property="productId" decoder="String" data="order-item/product-id" />
+ <jb:value property="price" decoder="BigDecimal" data="order-item/price" />
+ <jb:value property="title" data="order-item/title" />
+ </jb:bindings>
+
+</smooks-resource-list>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editojava/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,100 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.editoxml;
+
+import java.io.BufferedReader;
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.Locale;
+
+import javax.xml.transform.dom.DOMResult;
+import javax.xml.transform.stream.StreamSource;
+
+import org.milyn.Smooks;
+import org.milyn.SmooksException;
+import org.milyn.container.ExecutionContext;
+import org.milyn.event.report.HtmlReportGenerator;
+import org.milyn.io.StreamUtils;
+import org.milyn.xml.XmlUtil;
+import org.xml.sax.SAXException;
+
+/**
+ * Simple example main class.
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class EDItoXMLMain {
+
+ private static byte[] messageIn = readInputMessage();
+
+ protected static String runSmooksTransform() throws IOException, SAXException, SmooksException {
+
+ Locale defaultLocale = Locale.getDefault();
+ Locale.setDefault(new Locale("en", "IE"));
+
+ // Instantiate Smooks with the config...
+ Smooks smooks = new Smooks("example/editoxml/smooks-config.xml");
+ // Create an exec context - no profiles....
+ ExecutionContext executionContext = smooks.createExecutionContext();
+
+ DOMResult domResult = new DOMResult();
+
+ // Configure the execution context to generate a report...
+ executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
+
+ // Filter the input message to the outputWriter, using the execution context...
+ smooks.filter(new StreamSource(new ByteArrayInputStream(messageIn)), domResult, executionContext);
+
+ Locale.setDefault(defaultLocale);
+
+ return XmlUtil.serialize(domResult.getNode().getChildNodes(), true);
+ }
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException {
+ System.out.println("\n\n==============Message In==============");
+ System.out.println(new String(messageIn));
+ System.out.println("======================================\n");
+
+ pause("The EDI input stream can be seen above. Press 'enter' to see this stream transformed into XML...");
+
+ String messageOut = EDItoXMLMain.runSmooksTransform();
+
+ System.out.println("==============Message Out=============");
+ System.out.println(messageOut);
+ System.out.println("======================================\n\n");
+
+ pause("And that's it! Press 'enter' to finish...");
+ }
+
+ private static byte[] readInputMessage() {
+ try {
+ return StreamUtils.readStream(EDItoXMLMain.class.getResourceAsStream("input-message.edi"));
+ } catch (IOException e) {
+ e.printStackTrace();
+ return "<no-message/>".getBytes();
+ }
+ }
+
+ private static void pause(String message) {
+ try {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ System.out.print("> " + message);
+ in.readLine();
+ } catch (IOException e) {
+ }
+ System.out.println("\n");
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,37 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.editoxml;
+
+import junit.framework.TestCase;
+
+import java.io.IOException;
+import java.io.ByteArrayInputStream;
+
+import org.xml.sax.SAXException;
+import org.milyn.io.StreamUtils;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class EDItoXMLTest extends TestCase {
+
+ public void test() throws IOException, SAXException {
+ byte[] expected = StreamUtils.readStream(getClass().getResourceAsStream("expected.xml"));
+ String result = EDItoXMLMain.runSmooksTransform();
+
+ assertTrue(StreamUtils.compareCharStreams(new ByteArrayInputStream(expected), new ByteArrayInputStream(result.getBytes())));
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/EDItoXMLTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/edi-to-xml-order-mapping.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/edi-to-xml-order-mapping.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/edi-to-xml-order-mapping.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<medi:edimap xmlns:medi="http://www.milyn.org/schema/edi-message-mapping-1.0.xsd">
+
+ <medi:description name="DVD Order" version="1.0" />
+
+ <medi:delimiters segment=" " field="*" component="^" sub-component="~" />
+
+ <medi:segments xmltag="Order">
+
+ <medi:segment segcode="HDR" xmltag="header">
+ <medi:field xmltag="order-id" />
+ <medi:field xmltag="status-code" />
+ <medi:field xmltag="net-amount" />
+ <medi:field xmltag="total-amount" />
+ <medi:field xmltag="tax" />
+ <medi:field xmltag="date" />
+ </medi:segment>
+
+ <medi:segment segcode="CUS" xmltag="customer-details">
+ <medi:field xmltag="username" />
+ <medi:field xmltag="name">
+ <medi:component xmltag="firstname" />
+ <medi:component xmltag="lastname" />
+ </medi:field>
+ <medi:field xmltag="state" />
+ </medi:segment>
+
+ <medi:segment segcode="ORD" xmltag="order-item" maxOccurs="-1">
+ <medi:field xmltag="position" />
+ <medi:field xmltag="quantity" />
+ <medi:field xmltag="product-id" />
+ <medi:field xmltag="title" />
+ <medi:field xmltag="price" />
+ </medi:segment>
+
+ </medi:segments>
+
+</medi:edimap>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/edi-to-xml-order-mapping.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/expected.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/expected.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/expected.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,32 @@
+<Order>
+ <header>
+ <order-id>1</order-id>
+ <status-code>0</status-code>
+ <net-amount>59.97</net-amount>
+ <total-amount>64.92</total-amount>
+ <tax>4.95</tax>
+ <date>Wed Nov 15 13:45:28 EST 2006</date>
+ </header>
+ <customer-details>
+ <username>user1</username>
+ <name>
+ <firstname>Harry</firstname>
+ <lastname>Fletcher</lastname>
+ </name>
+ <state>SD</state>
+ </customer-details>
+ <order-item>
+ <position>1</position>
+ <quantity>1</quantity>
+ <product-id>364</product-id>
+ <title>The 40-Year-Old Virgin</title>
+ <price>29.98</price>
+ </order-item>
+ <order-item>
+ <position>2</position>
+ <quantity>1</quantity>
+ <product-id>299</product-id>
+ <title>Pulp Fiction</title>
+ <price>29.99</price>
+ </order-item>
+</Order>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/expected.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/input-message.edi
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/input-message.edi (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/input-message.edi 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,4 @@
+HDR*1*0*59.97*64.92*4.95*Wed Nov 15 13:45:28 EST 2006
+CUS*user1*Harry^Fletcher*SD
+ORD*1*1*364*The 40-Year-Old Virgin*29.98
+ORD*2*1*299*Pulp Fiction*29.99
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,11 @@
+<?xml version="1.0"?>
+<smooks-resource-list
+ xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:edi="http://www.milyn.org/xsd/smooks/edi-1.1.xsd">
+
+ <!--
+ Configure the EDI Reader to process the message stream into a stream of SAX events.
+ -->
+ <edi:reader mappingModel="/example/editoxml/edi-to-xml-order-mapping.xml" />
+
+</smooks-resource-list>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/editoxml/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,119 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.filerouter;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.util.List;
+
+import javax.xml.transform.stream.StreamResult;
+import javax.xml.transform.stream.StreamSource;
+
+import org.milyn.Smooks;
+import org.milyn.SmooksException;
+import org.milyn.container.ExecutionContext;
+import org.milyn.routing.file.FileListAccessor;
+import org.xml.sax.SAXException;
+
+/**
+ * This is a simple example that demonstrates how Smooks can be
+ * configured to "route" the output of a transform to file(s).
+ *
+ * @author <a href="mailto:daniel.bevenius@gmail.com">Daniel Bevenius</a>
+ *
+ */
+public class FileRouterMain
+{
+ private static final String LINE_SEP = System.getProperty( "line.separator" );
+
+ protected void runSmooksTransform() throws IOException, SAXException, ClassNotFoundException
+ {
+ final Smooks smooks = new Smooks( "example/filerouter/smooks-config.xml" );
+ final ExecutionContext executionContext = smooks.createExecutionContext();
+
+ // create the source and result
+ final StreamSource source = new StreamSource( FileRouterMain.class.getResourceAsStream("target/input-message.xml" ) );
+ final StreamResult result = null;
+
+ //executionContext.setEventListener(new HtmlReportGenerator("target/report.html"));
+
+ // perform the transform
+ smooks.filter( source, result, executionContext );
+
+ // display the output from the transform
+ System.out.println( LINE_SEP );
+ System.out.println( "List file : [" + FileListAccessor.getListFileNames( executionContext ) + "]" );
+
+ // uncomment to print the files
+ printFiles( executionContext );
+
+ }
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException, InterruptedException, ClassNotFoundException
+ {
+ String fileName = "src/example/filerouter/target/input-message.xml";
+ System.out.println(fileName);
+ System.out.println();
+ String nrofLineItems = pause("Please specify number of order-items to generate in the input message > ");
+ InputOrderGenerator.main( new String[] { fileName, nrofLineItems } );
+
+ final FileRouterMain smooksMain = new FileRouterMain();
+
+ System.out.println( LINE_SEP );
+ System.out.println("input-message.xml needs to be transformed and appended to a file");
+ System.out.println( LINE_SEP );
+ pause("Press 'enter' to display the transformed message...");
+ smooksMain.runSmooksTransform();
+ System.out.println( LINE_SEP );
+ pause("That's it ");
+ }
+
+ /*
+ * Can be used to print the list of files and their contents.
+ * Beware that this can cause memory issues as the whole list file will be
+ * read into memory. This method should only be used with smaller transforms.
+ */
+ @SuppressWarnings ("unused")
+ private void printFiles( ExecutionContext executionContext ) throws IOException, ClassNotFoundException
+ {
+ List<String> allListFiles = FileListAccessor.getListFileNames( executionContext );
+ for (String listFile : allListFiles)
+ {
+ List<String> fileNames = (List<String>) FileListAccessor.getFileList( executionContext, listFile );
+ System.out.println( "Contains [" + fileNames.size() + "] files");
+ for (String fileName : fileNames)
+ {
+ System.out.println( "fileName : [" + fileName + "]" );
+ }
+ }
+ }
+
+ private static String pause(String message) {
+ try {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ System.out.print("> " + message);
+ return in.readLine();
+ }
+ catch (IOException e)
+ {
+ e.printStackTrace();
+ }
+ System.out.println( LINE_SEP );
+ return null;
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain1.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain1.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain1.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,78 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.filerouter;
+
+import org.milyn.io.StreamUtils;
+import org.milyn.util.DollarBraceDecoder;
+
+import java.io.File;
+import java.io.FileFilter;
+import java.util.regex.Pattern;
+import java.util.regex.Matcher;
+
+/**
+ * Simple file consumer.
+ * <p/>
+ * Eats the files produced by the Smooks file splitter.
+ *
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class FileRouterMain1 {
+
+ public static void main(String[] args) throws Exception {
+ File fileDir = new File("/splitter-router/target/orders");
+ SplitFilenameFilter filter = new SplitFilenameFilter();
+
+ fileDir.mkdirs();
+ System.out.println(fileDir.getAbsolutePath());
+ (new File(fileDir, "order-332.lst")).delete();
+ (new File(fileDir, "order-332.lst")).deleteOnExit();
+
+ System.out.println("Started!");
+ System.out.println("Waiting...\n");
+ while (true) {
+ File[] files = fileDir.listFiles(filter);
+
+ if(files.length > 0) {
+ for (File file : files) {
+ if(file.getName().endsWith(".xml")) {
+ System.out.println("Consuming File: " + file.getName());
+ System.out.println(new String(StreamUtils.readFile(file)));
+ System.out.println("\n");
+ file.delete();
+ }
+
+ Thread.sleep(500);
+ }
+ System.out.println("Waiting...");
+ }else{
+ break;
+ }
+
+ Thread.sleep(1000);
+ }
+ }
+
+ public static class SplitFilenameFilter implements FileFilter {
+
+ private Pattern regexPattern = Pattern.compile("order-.*.xml");
+
+ public boolean accept(File file) {
+ Matcher matcher = regexPattern.matcher(file.getName());
+ return matcher.matches();
+ }
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/FileRouterMain1.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/InputOrderGenerator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/InputOrderGenerator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/InputOrderGenerator.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,112 @@
+package example.filerouter;
+import java.io.File;
+import java.io.FileWriter;
+import java.io.IOException;
+
+/**
+ * Simply generates an sample xml
+ * </p>
+ * Usage: <br>
+ * InputOrderGenerator filename <nrOfOrderRows>
+ * </br>
+ * <pre>
+ *Will generate a file that looks like this:
+ *<order>
+ * <header>
+ * <date>Wed Nov 15 13:45:28 EST 2006</date>
+ * <customer number="123123">Joe</customer>
+ * </header>
+ * <order-items>
+ * <order-item>
+ * <product>111</product>
+ * <quantity>2</quantity>
+ * <price>8.90</price>
+ * </order-item>
+ * ...
+ * </order-item>
+ * </order-items>
+ *<order>
+ * </pre>
+ * The number of order-items is controlled by the 'nrOfOrderRows' argument.
+ *
+ * @author <a href="mailto:daniel.bevenius@gmail.com">Daniel Bevenius</a>
+ *
+ */
+public class InputOrderGenerator
+{
+ private static final String LINE_SEP = System.getProperty( "line.separator" );
+
+ public static void main( String[] args ) throws IOException
+ {
+ if ( args.length != 2 )
+ {
+ printUsage();
+ return;
+ }
+
+ String fileName = args[0];
+ String nrOfOrderItemRows = args[1];
+ int nrOfOrderItems = Integer.parseInt( nrOfOrderItemRows );
+
+ File file = new File (fileName);
+ deleteFile( file );
+ FileWriter writer = new FileWriter( file, true );
+ writer.write( "<order id='332'>" + LINE_SEP );
+ writer.write( "<header>" + LINE_SEP);
+ writer.write( "<customer number=\"123\">Joe</customer>" + LINE_SEP );
+ writer.write( "</header>" + LINE_SEP);
+ writer.flush();
+ writer.write( "<order-items>" + LINE_SEP );
+ System.out.print("Generating " + file.getName() + "...");
+ for ( int i = 1 ; i <= nrOfOrderItems ; i ++ )
+ {
+ writer.write( "<order-item id='" + i + "'>" + LINE_SEP );
+ writer.write( "<product>" + i + "</product>" + LINE_SEP );
+ writer.write( "<quantity>2</quantity>" + LINE_SEP );
+ writer.write( "<price>8.80</price>" + LINE_SEP );
+ writer.write( "</order-item>" + LINE_SEP );
+ writer.flush();
+ }
+ writer.write( "</order-items>" + LINE_SEP);
+ writer.write( "</order>" + LINE_SEP );
+ writer.close();
+ System.out.println();
+ System.out.println("Generated " + file.getName() + " size = [" + getFileLength( file ) + "]" );
+ }
+
+ private static String getFileLength( final File file )
+ {
+ long fileLength = file.length();
+ int digits = String.valueOf( fileLength ).length();
+ if ( digits < 4 )
+ {
+ return fileLength + " Byte(s)";
+ }
+ else if ( digits >= 4 && digits <= 6 )
+ {
+ return fileLength / 1024 + " KB";
+ }
+ else
+ {
+ return fileLength / (1024 * 1024 ) + " MB";
+ }
+ }
+
+ private static void deleteFile( final File file ) throws IOException
+ {
+ if ( file.exists() )
+ {
+ boolean delete = file.delete();
+ if ( !delete )
+ {
+ throw new IOException ("Could not delete file [" + file.getAbsolutePath() + "]" );
+ }
+ }
+ }
+
+ public static void printUsage()
+ {
+ System.err.println( "Usage: InputOrderGenerator filename <nrOfOrderRows>");
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/InputOrderGenerator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/ToFileRoutingTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/ToFileRoutingTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/ToFileRoutingTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,158 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.filerouter;
+
+import java.io.File;
+import java.io.IOException;
+
+import javax.xml.transform.stream.StreamSource;
+
+import junit.framework.TestCase;
+
+import org.milyn.Smooks;
+import org.milyn.container.ExecutionContext;
+import org.milyn.delivery.Filter;
+import org.xml.sax.SAXException;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class ToFileRoutingTest extends TestCase {
+
+ private File targetDir = new File("src/example/filerouter/target/orders");
+ private File file1 = new File(targetDir, "order-231-1.xml");
+ private File file2 = new File(targetDir, "order-231-2.xml");
+ private File file3 = new File(targetDir, "order-231-3.xml");
+ private File file4 = new File(targetDir, "order-231-4.xml");
+ private File file5 = new File(targetDir, "order-231-5.xml");
+ private File file6 = new File(targetDir, "order-231-6.xml");
+ private File file7 = new File(targetDir, "order-231-7.xml");
+ private File listFile = new File(targetDir, "order-231.lst");
+
+ protected void setUp() throws Exception {
+ deleteFiles();
+ }
+
+ protected void tearDown() throws Exception {
+ deleteFiles();
+ }
+
+ private void deleteFiles() {
+ file1.delete();
+ file2.delete();
+ file3.delete();
+ file4.delete();
+ file5.delete();
+ file6.delete();
+ file7.delete();
+ listFile.delete();
+ }
+
+ public void test_dom() throws IOException, SAXException {
+ test(Filter.StreamFilterType.DOM);
+ }
+
+ public void test_sax() throws IOException, SAXException {
+ test(Filter.StreamFilterType.SAX);
+ }
+
+ public void test(Filter.StreamFilterType filterType) throws IOException, SAXException {
+ startSmooksThread(filterType);
+
+ // The highWaterMark is set to 3 in the smooks config...
+ waitForFile(file1, 5000);
+ waitForFile(file2, 5000);
+ waitForFile(file3, 5000);
+
+ sleep(500);
+ // file4 shouldn't be there...
+ assertTrue("file4 exists!", !file4.exists());
+
+ // delete file1 and file4 should appear then...
+ file1.delete();
+ waitForFile(file4, 5000);
+ // file4 should be there...
+ assertTrue("file4 doesn't exists!", file4.exists());
+
+ sleep(1000);
+ // file5 shouldn't be there...
+ assertTrue("file5 exists!", !file5.exists());
+
+ // delete file2, file3, file4 and file5, file6 and file7 should appear then...
+ file2.delete();
+ file3.delete();
+ file4.delete();
+ sleep(2000);
+ waitForFile(file7, 5000);
+ assertTrue(file5.exists());
+ assertTrue(file6.exists());
+ assertTrue(file7.exists());
+ assertTrue(listFile.exists());
+
+ System.out.println("File router test case succuess!");
+ }
+
+ private void startSmooksThread(Filter.StreamFilterType filterType) {
+ SmooksThread thread = new SmooksThread(filterType);
+
+ thread.start();
+ while(!thread.running) {
+ sleep(100);
+ }
+ }
+
+ private void waitForFile(File file, int maxWait) {
+ long start = Math.max(500, System.currentTimeMillis());
+
+ while(!file.exists() && (System.currentTimeMillis() < start + maxWait)) {
+ sleep(100);
+ }
+ }
+
+ private void sleep(long duration) {
+ try {
+ Thread.sleep(duration);
+ } catch (InterruptedException e) {
+ TestCase.fail(e.getMessage());
+ }
+ }
+
+ private class SmooksThread extends Thread {
+ boolean running = false;
+ private Filter.StreamFilterType filterType;
+
+ public SmooksThread(Filter.StreamFilterType filterType) {
+ this.filterType = filterType;
+ }
+
+ public void run() {
+ Smooks smooks = null;
+ try {
+ smooks = new Smooks(getClass().getResourceAsStream("smooks-config.xml"));
+ } catch (IOException e) {
+ TestCase.fail(e.getMessage());
+ } catch (SAXException e) {
+ TestCase.fail(e.getMessage());
+ }
+
+ ExecutionContext execCtx = smooks.createExecutionContext();
+ //execCtx.setEventListener(new HtmlReportGenerator("/zap/x.html"));
+ Filter.setFilterType(smooks, filterType);
+ running = true;
+ smooks.filter(new StreamSource(getClass().getResourceAsStream("order-message.xml")), null, execCtx);
+ }
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/ToFileRoutingTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/order-message.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/order-message.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/order-message.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,42 @@
+<order id="231">
+ <header>
+ <customer number="123123">Joe</customer>
+ </header>
+ <order-items>
+ <order-item id="1">
+ <product>111</product>
+ <quantity>1</quantity>
+ <price>1.00</price>
+ </order-item>
+ <order-item id="2">
+ <product>222</product>
+ <quantity>2</quantity>
+ <price>2.00</price>
+ </order-item>
+ <order-item id="3">
+ <product>333</product>
+ <quantity>3</quantity>
+ <price>3.00</price>
+ </order-item>
+ <order-item id="4">
+ <product>444</product>
+ <quantity>4</quantity>
+ <price>4.00</price>
+ </order-item>
+ <order-item id="5">
+ <product>555</product>
+ <quantity>5</quantity>
+ <price>5.00</price>
+ </order-item>
+ <order-item id="6">
+ <product>666</product>
+ <quantity>6</quantity>
+ <price>6.00</price>
+ </order-item>
+ <order-item id="7">
+ <product>777</product>
+ <quantity>7</quantity>
+ <price>7.00</price>
+ </order-item>
+ </order-items>
+</order>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/order-message.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/orderitem-split.ftl
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/orderitem-split.ftl (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/orderitem-split.ftl 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,11 @@
+<orderitem id="${order.orderItem.itemId}" order="${order.orderId}">
+ <customer>
+ <name>${order.customerName}</name>
+ <number>${order.customerNumber?c}</number>
+ </customer>
+ <details>
+ <productId>${order.orderItem.productId}</productId>
+ <quantity>${order.orderItem.quantity}</quantity>
+ <price>${order.orderItem.price}</price>
+ </details>
+</orderitem>
\ No newline at end of file
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,52 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+ xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+ xmlns:file="http://www.milyn.org/xsd/smooks/file-routing-1.1.xsd"
+ xmlns:ftl="http://www.milyn.org/xsd/smooks/freemarker-1.1.xsd">
+
+ <!--
+ Filter the message using the SAX Filter (i.e. not DOM, so no
+ intermediate DOM, so we can process huge messages...
+ -->
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <!-- Extract and decode data from the message. Used in the freemarker template (below).
+ Note that we could also use a NodeModel here... -->
+ <jb:bindings beanId="order" class="java.util.Hashtable" createOnElement="order">
+ <jb:value property="orderId" decoder="Integer" data="order/@id"/>
+ <jb:value property="customerNumber" decoder="Long" data="header/customer/@number"/>
+ <jb:value property="customerName" data="header/customer"/>
+ <jb:wiring property="orderItem" beanIdRef="orderItem"/>
+ </jb:bindings>
+ <jb:bindings beanId="orderItem" class="java.util.Hashtable" createOnElement="order-item">
+ <jb:value property="itemId" decoder="Integer" data="order-item/@id"/>
+ <jb:value property="productId" decoder="Long" data="order-item/product"/>
+ <jb:value property="quantity" decoder="Integer" data="order-item/quantity"/>
+ <jb:value property="price" decoder="Double" data="order-item/price"/>
+ </jb:bindings>
+
+ <!-- Create/open a file output stream. This is writen to by the freemarker template (below).. -->
+ <file:outputStream openOnElement="order-item" resourceName="orderItemSplitStream">
+ <file:fileNamePattern>order-${order.orderId}-${order.orderItem.itemId}.xml</file:fileNamePattern>
+ <file:destinationDirectoryPattern>src/example/filerouter/target/orders</file:destinationDirectoryPattern>
+ <file:listFileNamePattern>order-${order.orderId}.lst</file:listFileNamePattern>
+
+ <file:highWaterMark mark="3"/>
+ </file:outputStream>
+
+ <!--
+ Every time we hit the end of an <order-item> element, apply this freemarker template,
+ outputting the result to the "orderItemSplitStream" OutputStream, which is the file
+ output stream configured above.
+ -->
+ <ftl:freemarker applyOnElement="order-item">
+ <ftl:template>example/filerouter/orderitem-split.ftl</ftl:template>
+ <ftl:use>
+ <!-- Output the templating result to the "orderItemSplitStream" file output stream... -->
+ <ftl:outputTo outputStreamResource="orderItemSplitStream"/>
+ </ftl:use>
+ </ftl:freemarker>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/input-message.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/input-message.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/input-message.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,12 @@
+<order id='332'>
+<header>
+<customer number="123">Joe</customer>
+</header>
+<order-items>
+<order-item id='1'>
+<product>1</product>
+<quantity>2</quantity>
+<price>8.80</price>
+</order-item>
+</order-items>
+</order>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/filerouter/target/input-message.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaMain.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaMain.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaMain.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,86 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.javatojava;
+
+import example.srcmodel.*;
+import example.trgmodel.*;
+import org.milyn.*;
+import org.milyn.container.*;
+import org.milyn.event.report.*;
+import org.milyn.payload.*;
+import org.xml.sax.*;
+
+import java.io.*;
+
+/**
+ * Simple example main class.
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class JavaToJavaMain {
+
+ /**
+ * Run the transform for the request or response.
+ * @param srcOrder The input Java Object.
+ * @return The transformed Java Object XML.
+ */
+ protected LineOrder runSmooksTransform(Order srcOrder) throws IOException, SAXException {
+ Smooks smooks = new Smooks("example/javatojava/smooks-config.xml");
+ ExecutionContext executionContext = smooks.createExecutionContext();
+
+ // Transform the source Order to the target LineOrder via a
+ // JavaSource and JavaResult instance...
+ JavaSource source = new JavaSource(srcOrder);
+ JavaResult result = new JavaResult();
+
+ // Configure the execution context to generate a report...
+ executionContext.setEventListener(new HtmlReportGenerator("target/report/report.html"));
+
+ smooks.filter(source, result, executionContext);
+
+ return (LineOrder) result.getBean("lineOrder");
+ }
+
+ public static void main(String[] args) throws IOException, SAXException, SmooksException {
+ JavaToJavaMain smooksMain = new JavaToJavaMain();
+ Order order = new Order();
+ LineOrder lineOrder;
+
+ pause("Press 'enter' to display the input Java Order message...");
+ System.out.println("\n");
+ System.out.println(order);
+ System.out.println("\n\n");
+
+ System.out.println("This needs to be transformed to another Java Object.");
+ pause("Press 'enter' to display the transformed Java Object...");
+ lineOrder = smooksMain.runSmooksTransform(order);
+ System.out.println("\n");
+ System.out.println(lineOrder);
+ System.out.println("\n\n");
+
+ pause("And that's it!");
+ System.out.println("\n\n");
+ }
+
+ private static void pause(String message) {
+ try {
+ BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
+ System.out.print("> " + message);
+ in.readLine();
+ } catch (IOException e) {
+ }
+ System.out.println("\n");
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaMain.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaTransformTest.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaTransformTest.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaTransformTest.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,40 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.javatojava;
+
+import example.srcmodel.Order;
+import example.trgmodel.LineOrder;
+import junit.framework.TestCase;
+import org.milyn.io.StreamUtils;
+import org.xml.sax.SAXException;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class JavaToJavaTransformTest extends TestCase {
+
+ public void test() throws IOException, SAXException {
+ byte[] expected_res = StreamUtils.readStream(getClass().getResourceAsStream("expected.txt"));
+ JavaToJavaMain smooksMain = new JavaToJavaMain();
+ LineOrder lineOrder;
+
+ lineOrder = smooksMain.runSmooksTransform(new Order());
+ assertTrue("Expected:\n" + new String(expected_res) + ". \nGot:\n" + lineOrder, StreamUtils.compareCharStreams(new ByteArrayInputStream(expected_res), new ByteArrayInputStream(lineOrder.toString().getBytes())));
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/JavaToJavaTransformTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/expected.txt
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/expected.txt (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/expected.txt 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,5 @@
+Class: example.trgmodel.LineOrder
+ customerId: 1234
+ customerName: Buzz Lightyear
+ priority: VERY_IMPORTANT
+ lineItems: [{productCode: 111 | unitQuantity: 2 | unitPrice: 10.99}, {productCode: 222 | unitQuantity: 4 | unitPrice: 25.5}]
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/expected.txt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/smooks-config.xml
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/smooks-config.xml (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/smooks-config.xml 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,31 @@
+<?xml version="1.0"?>
+<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd" xmlns:jb="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd">
+
+ <params>
+ <param name="stream.filter.type">SAX</param>
+ </params>
+
+ <jb:bindings beanId="lineOrder" class="example.trgmodel.LineOrder" createOnElement="example.srcmodel.Order">
+ <jb:wiring property="lineItems" beanIdRef="lineItems" />
+ <jb:value property="customerId" data="header/customerNumber" />
+ <jb:value property="customerName" data="header/customerName" />
+ <jb:value property="priority" data="header/priority" decoder="Enum">
+ <jb:decodeParam name="enumType">example.trgmodel.LineOrderPriority</jb:decodeParam>
+ <jb:decodeParam name="LOW">NOT_IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="MEDIUM">IMPORTANT</jb:decodeParam>
+ <jb:decodeParam name="HIGH">VERY_IMPORTANT</jb:decodeParam>
+ </jb:value>
+ </jb:bindings>
+
+ <jb:bindings beanId="lineItems" class="example.trgmodel.LineItem[]" createOnElement="orderItems">
+ <jb:wiring beanIdRef="lineItem" />
+ </jb:bindings>
+
+
+ <jb:bindings beanId="lineItem" class="example.trgmodel.LineItem" createOnElement="example.srcmodel.OrderItem">
+ <jb:value property="productCode" data="example.srcmodel.OrderItem/productId" />
+ <jb:value property="unitQuantity" decoder="Integer" data="example.srcmodel.OrderItem/quantity" />
+ <jb:value property="unitPrice" decoder="BigDecimal" data="example.srcmodel.OrderItem/price" />
+ </jb:bindings>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/javatojava/smooks-config.xml
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Customer.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Customer.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Customer.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,63 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.model;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class Customer {
+
+ private String userName;
+ private String firstName;
+ private String lastName;
+ private String state;
+
+ public String getUserName() {
+ return userName;
+ }
+
+ public void setUserName(String userName) {
+ this.userName = userName;
+ }
+
+ public String getFirstName() {
+ return firstName;
+ }
+
+ public void setFirstName(String firstName) {
+ this.firstName = firstName;
+ }
+
+ public String getLastName() {
+ return lastName;
+ }
+
+ public void setLastName(String lastName) {
+ this.lastName = lastName;
+ }
+
+ public String getState() {
+ return state;
+ }
+
+ public void setState(String state) {
+ this.state = state;
+ }
+
+ public String toString() {
+ return (lastName + ", " + firstName);
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Customer.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Header.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Header.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Header.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,98 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.model;
+
+import java.util.Date;
+import java.math.BigDecimal;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class Header {
+ private String orderId;
+ private long orderStatus;
+ private BigDecimal netAmount;
+ private BigDecimal totalAmount;
+ private BigDecimal tax;
+ private Date date;
+ private Customer customer;
+
+ public String getOrderId() {
+ return orderId;
+ }
+
+ public void setOrderId(String orderId) {
+ this.orderId = orderId;
+ }
+
+ public long getOrderStatus() {
+ return orderStatus;
+ }
+
+ public void setOrderStatus(long orderStatus) {
+ this.orderStatus = orderStatus;
+ }
+
+ public BigDecimal getNetAmount() {
+ return netAmount;
+ }
+
+ public void setNetAmount(BigDecimal netAmount) {
+ this.netAmount = netAmount;
+ }
+
+ public BigDecimal getTotalAmount() {
+ return totalAmount;
+ }
+
+ public void setTotalAmount(BigDecimal totalAmount) {
+ this.totalAmount = totalAmount;
+ }
+
+ public BigDecimal getTax() {
+ return tax;
+ }
+
+ public void setTax(BigDecimal tax) {
+ this.tax = tax;
+ }
+
+ public Date getDate() {
+ return date;
+ }
+
+ public void setDate(Date date) {
+ this.date = date;
+ }
+
+ public Customer getCustomer() {
+ return customer;
+ }
+
+ public void setCustomer(Customer customer) {
+ this.customer = customer;
+ }
+
+ public String toString() {
+ StringBuffer desc = new StringBuffer();
+
+ desc.append("\tCustomer: " + customer + "\n");
+ desc.append("\tDate: " + date + "\n");
+ desc.append("\tDetails: ID=" + orderId + ", Status=" + orderStatus + ", Total=" + totalAmount + "\n");
+
+ return desc.toString();
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Header.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Order.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Order.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Order.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,55 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.model;
+
+import java.util.List;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class Order {
+ private Header header;
+ private List<OrderItem> orderItems;
+
+ public Header getHeader() {
+ return header;
+ }
+
+ public void setHeader(Header header) {
+ this.header = header;
+ }
+
+ public List<OrderItem> getOrderItems() {
+ return orderItems;
+ }
+
+ public void setOrderItems(List<OrderItem> orderItems) {
+ this.orderItems = orderItems;
+ }
+
+ public String toString() {
+ StringBuffer desc = new StringBuffer();
+
+ desc.append("Order Header: \n");
+ desc.append(header);
+ desc.append("Order Items: \n");
+ for(int i = 0; i < orderItems.size(); i++) {
+ desc.append("\t" + "(" + i + "): " + orderItems.get(i)).append("\n");
+ }
+
+ return desc.toString();
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/Order.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/OrderItem.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/OrderItem.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/OrderItem.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,64 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.model;
+
+import java.math.BigDecimal;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class OrderItem {
+ private int quantity;
+ private String productId;
+ private BigDecimal price;
+ private String title;
+
+ public int getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(int quantity) {
+ this.quantity = quantity;
+ }
+
+ public String getProductId() {
+ return productId;
+ }
+
+ public void setProductId(String productId) {
+ this.productId = productId;
+ }
+
+ public BigDecimal getPrice() {
+ return price;
+ }
+
+ public void setPrice(BigDecimal price) {
+ this.price = price;
+ }
+
+ public String getTitle() {
+ return title;
+ }
+
+ public void setTitle(String title) {
+ this.title = title;
+ }
+
+ public String toString() {
+ return "ProductID=" + productId + ", Quantity=" + quantity + ", Title='" + title + "', Price=" + price;
+ }
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/model/OrderItem.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Header.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Header.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Header.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,72 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.srcmodel;
+
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class Header {
+
+ private Long customerNumber = 1234L;
+
+ private String customerName = "Buzz Lightyear";
+
+ private Priority priority = Priority.HIGH;
+
+ public Long getCustomerNumber() {
+ return customerNumber;
+ }
+
+ public void setCustomerNumber(Long customerNumber) {
+ this.customerNumber = customerNumber;
+ }
+
+ public String getCustomerName() {
+ return customerName;
+ }
+
+ public void setCustomerName(String customerName) {
+ this.customerName = customerName;
+ }
+
+ /**
+ * @return the priority
+ */
+ public Priority getPriority() {
+ return priority;
+ }
+
+ /**
+ * @param priority the priority to set
+ */
+ public void setPriority(Priority priority) {
+ this.priority = priority;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder stringBuilder = new StringBuilder();
+
+ stringBuilder.append("customerNumber: " + customerNumber + ", ");
+ stringBuilder.append("customerName: " + customerName + ", ");
+ stringBuilder.append("priority: " + priority);
+
+
+ return stringBuilder.toString();
+ }
+
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Header.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Order.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Order.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Order.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,69 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.srcmodel;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class Order {
+ private Header header;
+ private List<OrderItem> orderItems;
+
+ public Order() {
+ header = new Header();
+ orderItems = new ArrayList<OrderItem>();
+ orderItems.add(new OrderItem());
+ orderItems.add(new OrderItem());
+
+ orderItems.get(0).setProductId(111);
+ orderItems.get(0).setQuantity(2);
+ orderItems.get(0).setPrice(10.99);
+
+ orderItems.get(1).setProductId(222);
+ orderItems.get(1).setQuantity(4);
+ orderItems.get(1).setPrice(25.50);
+ }
+
+ public Header getHeader() {
+ return header;
+ }
+
+ public void setHeader(Header header) {
+ this.header = header;
+ }
+
+ public List<OrderItem> getOrderItems() {
+ return orderItems;
+ }
+
+ public void setOrderItems(List<OrderItem> orderItems) {
+ this.orderItems = orderItems;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder stringBuilder = new StringBuilder();
+
+ stringBuilder.append("Class: " + getClass().getName() + "\n");
+ stringBuilder.append("\theader: " + header + "\n");
+ stringBuilder.append("\torderItems: " + orderItems);
+
+ return stringBuilder.toString();
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Order.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/OrderItem.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/OrderItem.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/OrderItem.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,59 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.srcmodel;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class OrderItem {
+ private long productId;
+ private Integer quantity;
+ private double price;
+
+ public long getProductId() {
+ return productId;
+ }
+
+ public void setProductId(long productId) {
+ this.productId = productId;
+ }
+
+ public Integer getQuantity() {
+ return quantity;
+ }
+
+ public void setQuantity(Integer quantity) {
+ this.quantity = quantity;
+ }
+
+ public double getPrice() {
+ return price;
+ }
+
+ public void setPrice(double price) {
+ this.price = price;
+ }
+
+ public String toString() {
+ StringBuilder stringBuilder = new StringBuilder();
+
+ stringBuilder.append("{productId: " + productId + " | ");
+ stringBuilder.append("quantity: " + quantity + " | ");
+ stringBuilder.append("price: " + price + "}");
+
+ return stringBuilder.toString();
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/OrderItem.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Priority.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Priority.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Priority.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,28 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.srcmodel;
+
+/**
+ * @author <a href="mailto:maurice.zeijen@smies.com">maurice.zeijen(a)smies.com</a>
+ *
+ */
+public enum Priority {
+
+ LOW,
+ MEDIUM,
+ HIGH;
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/srcmodel/Priority.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineItem.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineItem.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineItem.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,62 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.trgmodel;
+
+import java.math.BigDecimal;
+import java.util.Arrays;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class LineItem {
+ private String productCode;
+ private int unitQuantity;
+ private BigDecimal unitPrice;
+
+ public String getProductCode() {
+ return productCode;
+ }
+
+ public void setProductCode(String productCode) {
+ this.productCode = productCode;
+ }
+
+ public int getUnitQuantity() {
+ return unitQuantity;
+ }
+
+ public void setUnitQuantity(int unitQuantity) {
+ this.unitQuantity = unitQuantity;
+ }
+
+ public BigDecimal getUnitPrice() {
+ return unitPrice;
+ }
+
+ public void setUnitPrice(BigDecimal unitPrice) {
+ this.unitPrice = unitPrice;
+ }
+
+ public String toString() {
+ StringBuilder stringBuilder = new StringBuilder();
+
+ stringBuilder.append("{productCode: " + productCode + " | ");
+ stringBuilder.append("unitQuantity: " + unitQuantity + " | ");
+ stringBuilder.append("unitPrice: " + unitPrice + "}");
+
+ return stringBuilder.toString();
+ }
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineItem.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrder.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrder.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrder.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,85 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.trgmodel;
+
+import java.util.Arrays;
+
+/**
+ * @author <a href="mailto:tom.fennelly@gmail.com">tom.fennelly(a)gmail.com</a>
+ */
+public class LineOrder {
+ private String customerId;
+ private String customerName;
+
+ private LineOrderPriority priority;
+
+ private LineItem[] lineItems;
+
+ public String getCustomerId() {
+ return customerId;
+ }
+
+ public void setCustomerId(String customerId) {
+ this.customerId = customerId;
+ }
+
+ public String getCustomerName() {
+ return customerName;
+ }
+
+ public void setCustomerName(String customerName) {
+ this.customerName = customerName;
+ }
+
+ public LineItem[] getLineItems() {
+ return lineItems;
+ }
+
+ public void setLineItems(LineItem[] lineItems) {
+ this.lineItems = lineItems;
+ }
+
+ /**
+ * @return the priority
+ */
+ public LineOrderPriority getPriority() {
+ return priority;
+ }
+
+ /**
+ * @param priority the priority to set
+ */
+ public void setPriority(LineOrderPriority priority) {
+ this.priority = priority;
+ }
+
+ @Override
+ public String toString() {
+ StringBuilder stringBuilder = new StringBuilder();
+
+ stringBuilder.append("Class: " + getClass().getName() + "\n");
+ stringBuilder.append("\tcustomerId: " + customerId + "\n");
+ stringBuilder.append("\tcustomerName: " + customerName + "\n");
+ stringBuilder.append("\tpriority: " + getPriority() + "\n");
+ if(lineItems != null) {
+ stringBuilder.append("\tlineItems: " + Arrays.asList(lineItems));
+ }
+
+ return stringBuilder.toString();
+ }
+
+
+}
\ No newline at end of file
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrder.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrderPriority.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrderPriority.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrderPriority.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,28 @@
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+package example.trgmodel;
+
+/**
+ * @author <a href="mailto:maurice.zeijen@smies.com">maurice.zeijen(a)smies.com</a>
+ *
+ */
+public enum LineOrderPriority {
+
+ NOT_IMPORTANT,
+ IMPORTANT,
+ VERY_IMPORTANT;
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/example/trgmodel/LineOrderPriority.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/SmooksCoreActivator.java
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/SmooksCoreActivator.java (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/SmooksCoreActivator.java 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,50 @@
+package org.jboss.tools.milyn.smooks1_1_2;
+
+import org.eclipse.core.runtime.Plugin;
+import org.osgi.framework.BundleContext;
+
+/**
+ * The activator class controls the plug-in life cycle
+ */
+public class SmooksCoreActivator extends Plugin {
+
+ // The plug-in ID
+ public static final String PLUGIN_ID = "org.jboss.tools.milyn.smooks1.1.2";
+
+ // The shared instance
+ private static SmooksCoreActivator plugin;
+
+ /**
+ * The constructor
+ */
+ public SmooksCoreActivator() {
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugins#start(org.osgi.framework.BundleContext)
+ */
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ plugin = this;
+ }
+
+ /*
+ * (non-Javadoc)
+ * @see org.eclipse.core.runtime.Plugin#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 SmooksCoreActivator getDefault() {
+ return plugin;
+ }
+
+}
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/src/org/jboss/tools/milyn/smooks1_1_2/SmooksCoreActivator.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/report.html
===================================================================
--- trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/report.html (rev 0)
+++ trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/report.html 2009-06-29 02:29:45 UTC (rev 16231)
@@ -0,0 +1,3376 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
+ <title>Smooks Execution Report</title>
+
+ <style type="text/css">
+ <!--
+
+/*--------------------------------------------------
+ REQUIRED to hide the non-active tab content.
+ But do not hide them in the print stylesheet!
+ --------------------------------------------------*/
+.tabberlive .tabbertabhide {
+ display: none;
+}
+
+/*--------------------------------------------------
+ .tabber = before the tabber interface is set up
+ .tabberlive = after the tabber interface is set up
+ --------------------------------------------------*/
+.tabber {
+}
+
+.tabberlive {
+ margin-top: 1em;
+}
+
+/*--------------------------------------------------
+ ul.tabbernav = the tab navigation list
+ li.tabberactive = the active tab
+ --------------------------------------------------*/
+ul.tabbernav {
+ margin: 0;
+ padding: 3px 0;
+ border-bottom: 1px solid #778;
+ font: bold 12px Verdana, sans-serif;
+}
+
+ul.tabbernav li {
+ list-style: none;
+ margin: 0;
+ display: inline;
+}
+
+ul.tabbernav li a {
+ padding: 3px 0.5em;
+ margin-left: 3px;
+ border: 1px solid #778;
+ border-bottom: none;
+ background: #DDE;
+ text-decoration: none;
+}
+
+ul.tabbernav li a:link {
+ color: #448;
+}
+
+ul.tabbernav li a:visited {
+ color: #667;
+}
+
+ul.tabbernav li a:hover {
+ color: #000;
+ background: #AAE;
+ border-color: #227;
+}
+
+ul.tabbernav li.tabberactive a {
+ background-color: #fff;
+ border-bottom: 1px solid #fff;
+}
+
+ul.tabbernav li.tabberactive a:hover {
+ color: #000;
+ background: white;
+ border-bottom: 1px solid white;
+}
+
+/*--------------------------------------------------
+ .tabbertab = the tab content
+ Add style only after the tabber interface is set up (.tabberlive)
+ --------------------------------------------------*/
+.tabberlive .tabbertab {
+ padding: 5px;
+ border: 1px solid #aaa;
+ border-top: 0;
+
+ /* If you don't want the tab size changing whenever a tab is changed
+you can set a fixed height */
+
+/* height:200px; */
+
+ /* If you set a fix height set overflow to auto and you will get a
+ scrollbar when necessary */
+
+/* overflow:auto; */
+}
+
+/* If desired, hide the heading since a heading is provided by the tab */
+.tabberlive .tabbertab h2 {
+ display: none;
+}
+
+.tabberlive .tabbertab h3 {
+ display: none;
+}
+
+/* Example of using an ID to set different styles for the tabs on the page */
+.tabberlive#tab1 {
+}
+
+.tabberlive#tab2 {
+}
+
+.tabberlive#outertab .tabbertab {
+ overflow: auto;
+}
+
+.tabberlive#outertab .tabbertab {
+ height: 650px;
+}
+
+.tabbertab {
+ position: relative;
+ background-color: rgb( 238, 233, 233 );
+}
+
+#left {
+ float: left;
+ height: 93%;
+ width: 25%;
+ margin: 1%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#right {
+ position: relative;
+ float: right;
+ height: 93%;
+ margin: 1%;
+ width: 65%;
+}
+
+#righttop {
+ float: top;
+ height: 28%;
+ width: 97%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#rightmiddle {
+ float: top;
+ height: 6%;
+ width: 97%;
+}
+
+#rightbottom {
+ float: bottom;
+ height: 65%;
+ width: 97%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+}
+
+#result-summary {
+ float: top;
+ height: 10%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+ margin: 1%;
+}
+
+
+#result-detail {
+ float: bottom;
+ height: 80%;
+ border-style: groove;
+ background-color: white;
+ overflow: scroll;
+ margin: 1%;
+}
+ -->
+ </style>
+ <script type="text/javascript">
+ <!--
+/*==================================================
+ $Id: tabber.js,v 1.9 2006/04/27 20:51:51 pat Exp $
+ tabber.js by Patrick Fitzgerald pat(a)barelyfitz.com
+
+ Documentation can be found at the following URL:
+ http://www.barelyfitz.com/projects/tabber/
+
+ License (http://www.opensource.org/licenses/mit-license.php)
+
+ Copyright (c) 2006 Patrick Fitzgerald
+
+ Permission is hereby granted, free of charge, to any person
+ obtaining a copy of this software and associated documentation files
+ (the "Software"), to deal in the Software without restriction,
+ including without limitation the rights to use, copy, modify, merge,
+ publish, distribute, sublicense, and/or sell copies of the Software,
+ and to permit persons to whom the Software is furnished to do so,
+ subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be
+ included in all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ SOFTWARE.
+ ==================================================*/
+
+function tabberObj(argsObj)
+{
+ var arg; /* name of an argument to override */
+
+ /* Element for the main tabber div. If you supply this in argsObj,
+ then the init() method will be called.
+ */
+ this.div = null;
+
+ /* Class of the main tabber div */
+ this.classMain = "tabber";
+
+ /* Rename classMain to classMainLive after tabifying
+ (so a different style can be applied)
+ */
+ this.classMainLive = "tabberlive";
+
+ /* Class of each DIV that contains a tab */
+ this.classTab = "tabbertab";
+
+ /* Class to indicate which tab should be active on startup */
+ this.classTabDefault = "tabbertabdefault";
+
+ /* Class for the navigation UL */
+ this.classNav = "tabbernav";
+
+ /* When a tab is to be hidden, instead of setting display='none', we
+ set the class of the div to classTabHide. In your screen
+ stylesheet you should set classTabHide to display:none. In your
+ print stylesheet you should set display:block to ensure that all
+ the information is printed.
+ */
+ this.classTabHide = "tabbertabhide";
+
+ /* Class to set the navigation LI when the tab is active, so you can
+ use a different style on the active tab.
+ */
+ this.classNavActive = "tabberactive";
+
+ /* Elements that might contain the title for the tab, only used if a
+ title is not specified in the TITLE attribute of DIV classTab.
+ */
+ this.titleElements = ['h2','h3','h4','h5','h6'];
+
+ /* Should we strip out the HTML from the innerHTML of the title elements?
+ This should usually be true.
+ */
+ this.titleElementsStripHTML = true;
+
+ /* If the user specified the tab names using a TITLE attribute on
+ the DIV, then the browser will display a tooltip whenever the
+ mouse is over the DIV. To prevent this tooltip, we can remove the
+ TITLE attribute after getting the tab name.
+ */
+ this.removeTitle = true;
+
+ /* If you want to add an id to each link set this to true */
+ this.addLinkId = false;
+
+ /* If addIds==true, then you can set a format for the ids.
+ <tabberid> will be replaced with the id of the main tabber div.
+ <tabnumberzero> will be replaced with the tab number
+ (tab numbers starting at zero)
+ <tabnumberone> will be replaced with the tab number
+ (tab numbers starting at one)
+ <tabtitle> will be replaced by the tab title
+ (with all non-alphanumeric characters removed)
+ */
+ this.linkIdFormat = '<tabberid>nav<tabnumberone>';
+
+ /* You can override the defaults listed above by passing in an object:
+ var mytab = new tabber({property:value,property:value});
+ */
+ for (arg in argsObj) { this[arg] = argsObj[arg]; }
+
+ /* Create regular expressions for the class names; Note: if you
+ change the class names after a new object is created you must
+ also change these regular expressions.
+ */
+ this.REclassMain = new RegExp('\\b' + this.classMain + '\\b', 'gi');
+ this.REclassMainLive = new RegExp('\\b' + this.classMainLive + '\\b', 'gi');
+ this.REclassTab = new RegExp('\\b' + this.classTab + '\\b', 'gi');
+ this.REclassTabDefault = new RegExp('\\b' + this.classTabDefault + '\\b', 'gi');
+ this.REclassTabHide = new RegExp('\\b' + this.classTabHide + '\\b', 'gi');
+
+ /* Array of objects holding info about each tab */
+ this.tabs = new Array();
+
+ /* If the main tabber div was specified, call init() now */
+ if (this.div) {
+
+ this.init(this.div);
+
+ /* We don't need the main div anymore, and to prevent a memory leak
+ in IE, we must remove the circular reference between the div
+ and the tabber object. */
+ this.div = null;
+ }
+}
+
+
+/*--------------------------------------------------
+ Methods for tabberObj
+ --------------------------------------------------*/
+
+
+tabberObj.prototype.init = function(e)
+{
+ /* Set up the tabber interface.
+
+ e = element (the main containing div)
+
+ Example:
+ init(document.getElementById('mytabberdiv'))
+ */
+
+ var
+ childNodes, /* child nodes of the tabber div */
+ i, i2, /* loop indices */
+ t, /* object to store info about a single tab */
+ defaultTab=0, /* which tab to select by default */
+ DOM_ul, /* tabbernav list */
+ DOM_li, /* tabbernav list item */
+ DOM_a, /* tabbernav link */
+ aId, /* A unique id for DOM_a */
+ headingElement; /* searching for text to use in the tab */
+
+ /* Verify that the browser supports DOM scripting */
+ if (!document.getElementsByTagName) { return false; }
+
+ /* If the main DIV has an ID then save it. */
+ if (e.id) {
+ this.id = e.id;
+ }
+
+ /* Clear the tabs array (but it should normally be empty) */
+ this.tabs.length = 0;
+
+ /* Loop through an array of all the child nodes within our tabber element. */
+ childNodes = e.childNodes;
+ for(i=0; i < childNodes.length; i++) {
+
+ /* Find the nodes where class="tabbertab" */
+ if(childNodes[i].className &&
+ childNodes[i].className.match(this.REclassTab)) {
+
+ /* Create a new object to save info about this tab */
+ t = new Object();
+
+ /* Save a pointer to the div for this tab */
+ t.div = childNodes[i];
+
+ /* Add the new object to the array of tabs */
+ this.tabs[this.tabs.length] = t;
+
+ /* If the class name contains classTabDefault,
+ then select this tab by default.
+ */
+ if (childNodes[i].className.match(this.REclassTabDefault)) {
+ defaultTab = this.tabs.length-1;
+ }
+ }
+ }
+
+ /* Create a new UL list to hold the tab headings */
+ DOM_ul = document.createElement("ul");
+ DOM_ul.className = this.classNav;
+
+ /* Loop through each tab we found */
+ for (i=0; i < this.tabs.length; i++) {
+
+ t = this.tabs[i];
+
+ /* Get the label to use for this tab:
+ From the title attribute on the DIV,
+ Or from one of the this.titleElements[] elements,
+ Or use an automatically generated number.
+ */
+ t.headingText = t.div.title;
+
+ /* Remove the title attribute to prevent a tooltip from appearing */
+ if (this.removeTitle) { t.div.title = ''; }
+
+ if (!t.headingText) {
+
+ /* Title was not defined in the title of the DIV,
+ So try to get the title from an element within the DIV.
+ Go through the list of elements in this.titleElements
+ (typically heading elements ['h2','h3','h4'])
+ */
+ for (i2=0; i2<this.titleElements.length; i2++) {
+ headingElement = t.div.getElementsByTagName(this.titleElements[i2])[0];
+ if (headingElement) {
+ t.headingText = headingElement.innerHTML;
+ if (this.titleElementsStripHTML) {
+ t.headingText.replace(/<br>/gi," ");
+ t.headingText = t.headingText.replace(/<[^>]+>/g,"");
+ }
+ break;
+ }
+ }
+ }
+
+ if (!t.headingText) {
+ /* Title was not found (or is blank) so automatically generate a
+ number for the tab.
+ */
+ t.headingText = i + 1;
+ }
+
+ /* Create a list element for the tab */
+ DOM_li = document.createElement("li");
+
+ /* Save a reference to this list item so we can later change it to
+ the "active" class */
+ t.li = DOM_li;
+
+ /* Create a link to activate the tab */
+ DOM_a = document.createElement("a");
+ DOM_a.appendChild(document.createTextNode(t.headingText));
+ DOM_a.href = "javascript:void(null);";
+ DOM_a.title = t.headingText;
+ DOM_a.onclick = this.navClick;
+
+ /* Add some properties to the link so we can identify which tab
+ was clicked. Later the navClick method will need this.
+ */
+ DOM_a.tabber = this;
+ DOM_a.tabberIndex = i;
+
+ /* Do we need to add an id to DOM_a? */
+ if (this.addLinkId && this.linkIdFormat) {
+
+ /* Determine the id name */
+ aId = this.linkIdFormat;
+ aId = aId.replace(/<tabberid>/gi, this.id);
+ aId = aId.replace(/<tabnumberzero>/gi, i);
+ aId = aId.replace(/<tabnumberone>/gi, i+1);
+ aId = aId.replace(/<tabtitle>/gi, t.headingText.replace(/[^a-zA-Z0-9\-]/gi, ''));
+
+ DOM_a.id = aId;
+ }
+
+ /* Add the link to the list element */
+ DOM_li.appendChild(DOM_a);
+
+ /* Add the list element to the list */
+ DOM_ul.appendChild(DOM_li);
+ }
+
+ /* Add the UL list to the beginning of the tabber div */
+ e.insertBefore(DOM_ul, e.firstChild);
+
+ /* Make the tabber div "live" so different CSS can be applied */
+ e.className = e.className.replace(this.REclassMain, this.classMainLive);
+
+ /* Activate the default tab, and do not call the onclick handler */
+ this.tabShow(defaultTab);
+
+ /* If the user specified an onLoad function, call it now. */
+ if (typeof this.onLoad == 'function') {
+ this.onLoad({tabber:this});
+ }
+
+ return this;
+};
+
+
+tabberObj.prototype.navClick = function(event)
+{
+ /* This method should only be called by the onClick event of an <A>
+ element, in which case we will determine which tab was clicked by
+ examining a property that we previously attached to the <A>
+ element.
+
+ Since this was triggered from an onClick event, the variable
+ "this" refers to the <A> element that triggered the onClick
+ event (and not to the tabberObj).
+
+ When tabberObj was initialized, we added some extra properties
+ to the <A> element, for the purpose of retrieving them now. Get
+ the tabberObj object, plus the tab number that was clicked.
+ */
+
+ var
+ rVal, /* Return value from the user onclick function */
+ a, /* element that triggered the onclick event */
+ self, /* the tabber object */
+ tabberIndex, /* index of the tab that triggered the event */
+ onClickArgs; /* args to send the onclick function */
+
+ a = this;
+ if (!a.tabber) { return false; }
+
+ self = a.tabber;
+ tabberIndex = a.tabberIndex;
+
+ /* Remove focus from the link because it looks ugly.
+ I don't know if this is a good idea...
+ */
+ a.blur();
+
+ /* If the user specified an onClick function, call it now.
+ If the function returns false then do not continue.
+ */
+ if (typeof self.onClick == 'function') {
+
+ onClickArgs = {'tabber':self, 'index':tabberIndex, 'event':event};
+
+ /* IE uses a different way to access the event object */
+ if (!event) { onClickArgs.event = window.event; }
+
+ rVal = self.onClick(onClickArgs);
+ if (rVal === false) { return false; }
+ }
+
+ self.tabShow(tabberIndex);
+
+ return false;
+};
+
+
+tabberObj.prototype.tabHideAll = function()
+{
+ var i; /* counter */
+
+ /* Hide all tabs and make all navigation links inactive */
+ for (i = 0; i < this.tabs.length; i++) {
+ this.tabHide(i);
+ }
+};
+
+
+tabberObj.prototype.tabHide = function(tabberIndex)
+{
+ var div;
+
+ if (!this.tabs[tabberIndex]) { return false; }
+
+ /* Hide a single tab and make its navigation link inactive */
+ div = this.tabs[tabberIndex].div;
+
+ /* Hide the tab contents by adding classTabHide to the div */
+ if (!div.className.match(this.REclassTabHide)) {
+ div.className += ' ' + this.classTabHide;
+ }
+ this.navClearActive(tabberIndex);
+
+ return this;
+};
+
+
+tabberObj.prototype.tabShow = function(tabberIndex)
+{
+ /* Show the tabberIndex tab and hide all the other tabs */
+
+ var div;
+
+ if (!this.tabs[tabberIndex]) { return false; }
+
+ /* Hide all the tabs first */
+ this.tabHideAll();
+
+ /* Get the div that holds this tab */
+ div = this.tabs[tabberIndex].div;
+
+ /* Remove classTabHide from the div */
+ div.className = div.className.replace(this.REclassTabHide, '');
+
+ /* Mark this tab navigation link as "active" */
+ this.navSetActive(tabberIndex);
+
+ /* If the user specified an onTabDisplay function, call it now. */
+ if (typeof this.onTabDisplay == 'function') {
+ this.onTabDisplay({'tabber':this, 'index':tabberIndex});
+ }
+
+ return this;
+};
+
+tabberObj.prototype.navSetActive = function(tabberIndex)
+{
+ /* Note: this method does *not* enforce the rule
+ that only one nav item can be active at a time.
+ */
+
+ /* Set classNavActive for the navigation list item */
+ this.tabs[tabberIndex].li.className = this.classNavActive;
+
+ return this;
+};
+
+
+tabberObj.prototype.navClearActive = function(tabberIndex)
+{
+ /* Note: this method does *not* enforce the rule
+ that one nav should always be active.
+ */
+
+ /* Remove classNavActive from the navigation list item */
+ this.tabs[tabberIndex].li.className = '';
+
+ return this;
+};
+
+
+/*==================================================*/
+
+
+function tabberAutomatic(tabberArgs)
+{
+ /* This function finds all DIV elements in the document where
+ class=tabber.classMain, then converts them to use the tabber
+ interface.
+
+ tabberArgs = an object to send to "new tabber()"
+ */
+ var
+ tempObj, /* Temporary tabber object */
+ divs, /* Array of all divs on the page */
+ i; /* Loop index */
+
+ if (!tabberArgs) { tabberArgs = {}; }
+
+ /* Create a tabber object so we can get the value of classMain */
+ tempObj = new tabberObj(tabberArgs);
+
+ /* Find all DIV elements in the document that have class=tabber */
+
+ /* First get an array of all DIV elements and loop through them */
+ divs = document.getElementsByTagName("div");
+ for (i=0; i < divs.length; i++) {
+
+ /* Is this DIV the correct class? */
+ if (divs[i].className &&
+ divs[i].className.match(tempObj.REclassMain)) {
+
+ /* Now tabify the DIV */
+ tabberArgs.div = divs[i];
+ divs[i].tabber = new tabberObj(tabberArgs);
+ }
+ }
+
+ return this;
+}
+
+
+/*==================================================*/
+
+
+function tabberAutomaticOnLoad(tabberArgs)
+{
+ /* This function adds tabberAutomatic to the window.onload event,
+ so it will run after the document has finished loading.
+ */
+ var oldOnLoad;
+
+ if (!tabberArgs) { tabberArgs = {}; }
+
+ /* Taken from: http://simon.incutio.com/archive/2004/05/26/addLoadEvent */
+
+ oldOnLoad = window.onload;
+ if (typeof window.onload != 'function') {
+ window.onload = function() {
+ tabberAutomatic(tabberArgs);
+ };
+ } else {
+ window.onload = function() {
+ oldOnLoad();
+ tabberAutomatic(tabberArgs);
+ };
+ }
+}
+
+
+/*==================================================*/
+
+
+/* Run tabberAutomaticOnload() unless the "manualStartup" option was specified */
+
+if (typeof tabberOptions == 'undefined') {
+
+ tabberAutomaticOnLoad();
+
+} else {
+
+ if (!tabberOptions['manualStartup']) {
+ tabberAutomaticOnLoad(tabberOptions);
+ }
+
+}
+ -->
+ </script>
+ <script type="text/javascript">
+ <!--
+/*
+ Milyn - Copyright (C) 2006
+
+ This library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License (version 2.1) as published by the Free Software
+ Foundation.
+
+ This library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+
+ See the GNU Lesser General Public License for more details:
+ http://www.gnu.org/licenses/lgpl.txt
+*/
+
+function selectElement(elementId) {
+ removeHighlight("left")
+ removeHighlight("righttop")
+ hideContent("righttop")
+ hideContent("rightbottom")
+
+ highlight("messageNode-" + elementId);
+ showContent("block-" + elementId);
+}
+
+function selectVisitor(elementId) {
+ removeHighlight("righttop")
+ hideContent("rightbottom")
+
+ highlight("block-details-link-" + elementId);
+ showContent("block-details-" + elementId);
+}
+
+function showContent(contentId) {
+ var contentElement = document.getElementById(contentId)
+ if(contentElement != null) {
+ contentElement.style.visibility = "visible";
+ contentElement.style.display = "block";
+ contentElement.setAttribute("visiblity", "set");
+ }
+}
+
+function highlight(contentId) {
+ var contentElement = document.getElementById(contentId)
+ if(contentElement != null) {
+ contentElement.style.backgroundColor = "yellow";
+ contentElement.setAttribute("highlight", "set");
+ }
+}
+
+function hideContent(contentContainerId) {
+ var contentContainer = document.getElementById(contentContainerId)
+
+ // Hide the currently selected content in that container...
+ if(contentContainer != null) {
+ var contentElements = contentContainer.getElementsByTagName("div");
+
+ for(var i = 0; i < contentElements.length; i++) {
+ if(contentElements.item(i).getAttribute("visiblity") == "set") {
+ contentElements.item(i).style.display = "none";
+ contentElements.item(i).style.visibility = "hidden";
+ contentElements.item(i).removeAttribute("visiblity");
+ }
+ }
+ } else {
+ alert("Page error. Unknown content container ID '" + contentContainerId + "'.");
+ }
+}
+
+function removeHighlight(contentContainerId) {
+ var contentContainer = document.getElementById(contentContainerId)
+
+ // Hide the currently selected content in that container...
+ if(contentContainer != null) {
+ var contentElements = contentContainer.getElementsByTagName("div");
+
+ for(var i = 0; i < contentElements.length; i++) {
+ if(contentElements.item(i).getAttribute("highlight") == "set") {
+ contentElements.item(i).style.backgroundColor = "white";
+ contentElements.item(i).removeAttribute("highlight");
+ }
+ }
+ } else {
+ alert("Page error. Unknown content container ID '" + contentContainerId + "'.");
+ }
+}
+
+ -->
+ </script>
+
+ </head>
+<body>
+ <h1>Smooks Execution Report</h1>
+ <div class="tabber" id="outertab">
+
+ <div class="tabbertab" title="Configuration">
+ TODO!!
+ </div>
+
+ <div class="tabbertab tabbertabdefault" title="Execution">
+ <div id="left">
+ STARTED<br/>
+ ASSEMBLY_STARTED<br/>
+ PROCESSING_STARTED<br/>
+ <div id="messageNode-0" style="margin-left: 0px;">
+ <Order>
+ <a href='#' onclick="return selectElement('0');">*</a>
+ </div>
+ <div id="messageNode-1" style="margin-left: 20px;">
+ <header>
+ </div>
+ <div id="messageNode-2" style="margin-left: 40px;">
+ <order-id>
+ </div>
+ <div id="messageNode-3" style="margin-left: 40px;">
+ </order-id>
+ <a href='#' onclick="return selectElement('3');">*</a>
+ </div>
+ <div id="messageNode-4" style="margin-left: 40px;">
+ <status-code>
+ </div>
+ <div id="messageNode-5" style="margin-left: 40px;">
+ </status-code>
+ <a href='#' onclick="return selectElement('5');">*</a>
+ </div>
+ <div id="messageNode-6" style="margin-left: 40px;">
+ <net-amount>
+ </div>
+ <div id="messageNode-7" style="margin-left: 40px;">
+ </net-amount>
+ <a href='#' onclick="return selectElement('7');">*</a>
+ </div>
+ <div id="messageNode-8" style="margin-left: 40px;">
+ <total-amount>
+ </div>
+ <div id="messageNode-9" style="margin-left: 40px;">
+ </total-amount>
+ <a href='#' onclick="return selectElement('9');">*</a>
+ </div>
+ <div id="messageNode-10" style="margin-left: 40px;">
+ <tax>
+ </div>
+ <div id="messageNode-11" style="margin-left: 40px;">
+ </tax>
+ <a href='#' onclick="return selectElement('11');">*</a>
+ </div>
+ <div id="messageNode-12" style="margin-left: 40px;">
+ <date>
+ </div>
+ <div id="messageNode-13" style="margin-left: 40px;">
+ </date>
+ <a href='#' onclick="return selectElement('13');">*</a>
+ </div>
+ <div id="messageNode-14" style="margin-left: 20px;">
+ </header>
+ </div>
+ <div id="messageNode-15" style="margin-left: 20px;">
+ <customer-details>
+ <a href='#' onclick="return selectElement('15');">*</a>
+ </div>
+ <div id="messageNode-16" style="margin-left: 40px;">
+ <username>
+ </div>
+ <div id="messageNode-17" style="margin-left: 40px;">
+ </username>
+ <a href='#' onclick="return selectElement('17');">*</a>
+ </div>
+ <div id="messageNode-18" style="margin-left: 40px;">
+ <name>
+ </div>
+ <div id="messageNode-19" style="margin-left: 60px;">
+ <firstname>
+ </div>
+ <div id="messageNode-20" style="margin-left: 60px;">
+ </firstname>
+ <a href='#' onclick="return selectElement('20');">*</a>
+ </div>
+ <div id="messageNode-21" style="margin-left: 60px;">
+ <lastname>
+ </div>
+ <div id="messageNode-22" style="margin-left: 60px;">
+ </lastname>
+ <a href='#' onclick="return selectElement('22');">*</a>
+ </div>
+ <div id="messageNode-23" style="margin-left: 40px;">
+ </name>
+ </div>
+ <div id="messageNode-24" style="margin-left: 40px;">
+ <state>
+ </div>
+ <div id="messageNode-25" style="margin-left: 40px;">
+ </state>
+ <a href='#' onclick="return selectElement('25');">*</a>
+ </div>
+ <div id="messageNode-26" style="margin-left: 20px;">
+ </customer-details>
+ </div>
+ <div id="messageNode-27" style="margin-left: 20px;">
+ <order-item>
+ <a href='#' onclick="return selectElement('27');">*</a>
+ </div>
+ <div id="messageNode-28" style="margin-left: 40px;">
+ <position>
+ </div>
+ <div id="messageNode-29" style="margin-left: 40px;">
+ </position>
+ </div>
+ <div id="messageNode-30" style="margin-left: 40px;">
+ <quantity>
+ </div>
+ <div id="messageNode-31" style="margin-left: 40px;">
+ </quantity>
+ <a href='#' onclick="return selectElement('31');">*</a>
+ </div>
+ <div id="messageNode-32" style="margin-left: 40px;">
+ <product-id>
+ </div>
+ <div id="messageNode-33" style="margin-left: 40px;">
+ </product-id>
+ <a href='#' onclick="return selectElement('33');">*</a>
+ </div>
+ <div id="messageNode-34" style="margin-left: 40px;">
+ <title>
+ </div>
+ <div id="messageNode-35" style="margin-left: 40px;">
+ </title>
+ <a href='#' onclick="return selectElement('35');">*</a>
+ </div>
+ <div id="messageNode-36" style="margin-left: 40px;">
+ <price>
+ </div>
+ <div id="messageNode-37" style="margin-left: 40px;">
+ </price>
+ <a href='#' onclick="return selectElement('37');">*</a>
+ </div>
+ <div id="messageNode-38" style="margin-left: 20px;">
+ </order-item>
+ </div>
+ <div id="messageNode-39" style="margin-left: 20px;">
+ <order-item>
+ <a href='#' onclick="return selectElement('39');">*</a>
+ </div>
+ <div id="messageNode-40" style="margin-left: 40px;">
+ <position>
+ </div>
+ <div id="messageNode-41" style="margin-left: 40px;">
+ </position>
+ </div>
+ <div id="messageNode-42" style="margin-left: 40px;">
+ <quantity>
+ </div>
+ <div id="messageNode-43" style="margin-left: 40px;">
+ </quantity>
+ <a href='#' onclick="return selectElement('43');">*</a>
+ </div>
+ <div id="messageNode-44" style="margin-left: 40px;">
+ <product-id>
+ </div>
+ <div id="messageNode-45" style="margin-left: 40px;">
+ </product-id>
+ <a href='#' onclick="return selectElement('45');">*</a>
+ </div>
+ <div id="messageNode-46" style="margin-left: 40px;">
+ <title>
+ </div>
+ <div id="messageNode-47" style="margin-left: 40px;">
+ </title>
+ <a href='#' onclick="return selectElement('47');">*</a>
+ </div>
+ <div id="messageNode-48" style="margin-left: 40px;">
+ <price>
+ </div>
+ <div id="messageNode-49" style="margin-left: 40px;">
+ </price>
+ <a href='#' onclick="return selectElement('49');">*</a>
+ </div>
+ <div id="messageNode-50" style="margin-left: 20px;">
+ </order-item>
+ </div>
+ <div id="messageNode-51" style="margin-left: 0px;">
+ </Order>
+ <a href='#' onclick="return selectElement('51');">*</a>
+ </div>
+ SERIALIZATION_STARTED<br/>
+ FINISHED
+ </div>
+ <div id="right">
+ <div id="righttop">
+ <div id="block-0" style="display:none;">
+ <div id="block-details-link-0">
+ <a href='#' onclick="return selectVisitor('0');">BeanInstanceCreator: Created <b>order</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ <div id="block-details-link-1">
+ <a href='#' onclick="return selectVisitor('1');">BeanInstanceCreator: Created <b>header</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ <div id="block-details-link-2">
+ <a href='#' onclick="return selectVisitor('2');">BeanInstanceCreator: Created <b>orderItemList</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ </div>
+ <div id="block-3" style="display:none;">
+ <div id="block-details-link-3">
+ <a href='#' onclick="return selectVisitor('3');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-5" style="display:none;">
+ <div id="block-details-link-4">
+ <a href='#' onclick="return selectVisitor('4');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-7" style="display:none;">
+ <div id="block-details-link-5">
+ <a href='#' onclick="return selectVisitor('5');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-9" style="display:none;">
+ <div id="block-details-link-6">
+ <a href='#' onclick="return selectVisitor('6');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-11" style="display:none;">
+ <div id="block-details-link-7">
+ <a href='#' onclick="return selectVisitor('7');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-13" style="display:none;">
+ <div id="block-details-link-8">
+ <a href='#' onclick="return selectVisitor('8');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-15" style="display:none;">
+ <div id="block-details-link-9">
+ <a href='#' onclick="return selectVisitor('9');">BeanInstanceCreator: Created <b>customer</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ </div>
+ <div id="block-17" style="display:none;">
+ <div id="block-details-link-10">
+ <a href='#' onclick="return selectVisitor('10');">BeanInstancePopulator: Populating <b>customer</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-20" style="display:none;">
+ <div id="block-details-link-11">
+ <a href='#' onclick="return selectVisitor('11');">BeanInstancePopulator: Populating <b>customer</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-22" style="display:none;">
+ <div id="block-details-link-12">
+ <a href='#' onclick="return selectVisitor('12');">BeanInstancePopulator: Populating <b>customer</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-25" style="display:none;">
+ <div id="block-details-link-13">
+ <a href='#' onclick="return selectVisitor('13');">BeanInstancePopulator: Populating <b>customer</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-27" style="display:none;">
+ <div id="block-details-link-14">
+ <a href='#' onclick="return selectVisitor('14');">BeanInstanceCreator: Created <b>orderItem</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ </div>
+ <div id="block-31" style="display:none;">
+ <div id="block-details-link-15">
+ <a href='#' onclick="return selectVisitor('15');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-33" style="display:none;">
+ <div id="block-details-link-16">
+ <a href='#' onclick="return selectVisitor('16');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-35" style="display:none;">
+ <div id="block-details-link-17">
+ <a href='#' onclick="return selectVisitor('17');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-37" style="display:none;">
+ <div id="block-details-link-18">
+ <a href='#' onclick="return selectVisitor('18');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-39" style="display:none;">
+ <div id="block-details-link-19">
+ <a href='#' onclick="return selectVisitor('19');">BeanInstanceCreator: Created <b>orderItem</b> bean instance. Associated lifecycle if wired to another bean.</a>
+ </div>
+ </div>
+ <div id="block-43" style="display:none;">
+ <div id="block-details-link-20">
+ <a href='#' onclick="return selectVisitor('20');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-45" style="display:none;">
+ <div id="block-details-link-21">
+ <a href='#' onclick="return selectVisitor('21');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-47" style="display:none;">
+ <div id="block-details-link-22">
+ <a href='#' onclick="return selectVisitor('22');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-49" style="display:none;">
+ <div id="block-details-link-23">
+ <a href='#' onclick="return selectVisitor('23');">BeanInstancePopulator: Populating <b>orderItem</b> with a value from this element.</a>
+ </div>
+ </div>
+ <div id="block-51" style="display:none;">
+ <div id="block-details-link-24">
+ <a href='#' onclick="return selectVisitor('24');">BeanInstancePopulator: Populating <b>orderItemList</b> with a value from this element.</a>
+ </div>
+ <div id="block-details-link-25">
+ <a href='#' onclick="return selectVisitor('25');">BeanInstancePopulator: Populating <b>header</b> with a value from this element.</a>
+ </div>
+ <div id="block-details-link-26">
+ <a href='#' onclick="return selectVisitor('26');">BeanInstancePopulator: Populating <b>order</b> with a value from this element.</a>
+ </div>
+ <div id="block-details-link-27">
+ <a href='#' onclick="return selectVisitor('27');">BeanInstancePopulator: Populating <b>order</b> with a value from this element.</a>
+ </div>
+ </div>
+ </div>
+ <div id="rightmiddle">
+ </div>
+ <div id="rightbottom">
+ <div id="block-details-0" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>order</b>. Bean type: <b>example.model.Order</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">order</param>
+ <param name="beanClass">example.model.Order</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>Execution Context Serialization Failure:
+java.lang.NullPointerException
+ at example.model.Order.toString(Order.java:49)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuffer.append(StringBuffer.java:220)
+ at java.util.AbstractMap.toString(AbstractMap.java:598)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuffer.append(StringBuffer.java:220)
+ at org.apache.commons.lang.builder.ToStringStyle.appendDetail(ToStringStyle.java:569)
+ at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:439)
+ at org.apache.commons.lang.builder.ToStringStyle.append(ToStringStyle.java:395)
+ at org.apache.commons.lang.builder.ToStringBuilder.append(ToStringBuilder.java:855)
+ at org.milyn.javabean.repository.BeanRepository.toString(BeanRepository.java:452)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuilder.append(StringBuilder.java:116)
+ at java.util.Hashtable.toString(Hashtable.java:532)
+ at org.milyn.container.standalone.StandaloneExecutionContext.toString(StandaloneExecutionContext.java:189)
+ at org.milyn.event.types.ElementVisitEvent.<init>(ElementVisitEvent.java:60)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:728)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:680)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:641)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:373)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:313)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:288)
+ at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:238)
+ at org.milyn.Smooks._filter(Smooks.java:341)
+ at org.milyn.Smooks.filter(Smooks.java:319)
+ at example.editojava.EDItoJavaMain.runSmooksTransform(EDItoJavaMain.java:54)
+ at example.editojava.EDItoJavaMain.runSmooksTransform(EDItoJavaMain.java:101)
+ at example.editojava.EDItoJavaTest.test(EDItoJavaTest.java:32)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+ at java.lang.reflect.Method.invoke(Method.java:585)
+ at junit.framework.TestCase.runTest(TestCase.java:164)
+ at junit.framework.TestCase.runBare(TestCase.java:130)
+ at junit.framework.TestResult$1.protect(TestResult.java:106)
+ at junit.framework.TestResult.runProtected(TestResult.java:124)
+ at junit.framework.TestResult.run(TestResult.java:109)
+ at junit.framework.TestCase.run(TestCase.java:120)
+ at junit.framework.TestSuite.runTest(TestSuite.java:230)
+ at junit.framework.TestSuite.run(TestSuite.java:225)
+ at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
+ at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
+</pre></div>
+ <div id="block-details-1" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>header</b>. Bean type: <b>example.model.Header</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">header</param>
+ <param name="beanClass">example.model.Header</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>Execution Context Serialization Failure:
+java.lang.NullPointerException
+ at example.model.Order.toString(Order.java:49)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuffer.append(StringBuffer.java:220)
+ at java.util.AbstractMap.toString(AbstractMap.java:598)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuffer.append(StringBuffer.java:220)
+ at org.apache.commons.lang.builder.ToStringStyle.appendDetail(ToStringStyle.java:569)
+ at org.apache.commons.lang.builder.ToStringStyle.appendInternal(ToStringStyle.java:439)
+ at org.apache.commons.lang.builder.ToStringStyle.append(ToStringStyle.java:395)
+ at org.apache.commons.lang.builder.ToStringBuilder.append(ToStringBuilder.java:855)
+ at org.milyn.javabean.repository.BeanRepository.toString(BeanRepository.java:452)
+ at java.lang.String.valueOf(String.java:2615)
+ at java.lang.StringBuilder.append(StringBuilder.java:116)
+ at java.util.Hashtable.toString(Hashtable.java:532)
+ at org.milyn.container.standalone.StandaloneExecutionContext.toString(StandaloneExecutionContext.java:189)
+ at org.milyn.event.types.ElementVisitEvent.<init>(ElementVisitEvent.java:60)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.processMapping(SmooksDOMFilter.java:728)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.process(SmooksDOMFilter.java:680)
+ at org.milyn.delivery.dom.SmooksDOMFilter$ElementProcessor.access$000(SmooksDOMFilter.java:641)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:373)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:313)
+ at org.milyn.delivery.dom.SmooksDOMFilter.filter(SmooksDOMFilter.java:288)
+ at org.milyn.delivery.dom.SmooksDOMFilter.doFilter(SmooksDOMFilter.java:238)
+ at org.milyn.Smooks._filter(Smooks.java:341)
+ at org.milyn.Smooks.filter(Smooks.java:319)
+ at example.editojava.EDItoJavaMain.runSmooksTransform(EDItoJavaMain.java:54)
+ at example.editojava.EDItoJavaMain.runSmooksTransform(EDItoJavaMain.java:101)
+ at example.editojava.EDItoJavaTest.test(EDItoJavaTest.java:32)
+ at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+ at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+ at java.lang.reflect.Method.invoke(Method.java:585)
+ at junit.framework.TestCase.runTest(TestCase.java:164)
+ at junit.framework.TestCase.runBare(TestCase.java:130)
+ at junit.framework.TestResult$1.protect(TestResult.java:106)
+ at junit.framework.TestResult.runProtected(TestResult.java:124)
+ at junit.framework.TestResult.run(TestResult.java:109)
+ at junit.framework.TestCase.run(TestCase.java:120)
+ at junit.framework.TestSuite.runTest(TestSuite.java:230)
+ at junit.framework.TestSuite.run(TestSuite.java:225)
+ at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
+ at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
+ at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
+</pre></div>
+ <div id="block-details-2" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>orderItemList</b>. Bean type: <b>java.util.ArrayList</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">orderItemList</param>
+ <param name="beanClass">java.util.ArrayList</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderStatus>0</orderStatus>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderStatus>0</orderStatus>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=null, Status=0, Total=null
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=null, Status=0, Total=null
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-3" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>orderId</b> (type <b>String</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/order-id"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">orderId</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-4" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>orderStatus</b> (type <b>Long</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/status-code"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">orderStatus</param>
+ <param name="type">Long</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-5" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>netAmount</b> (type <b>BigDecimal</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/net-amount"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">netAmount</param>
+ <param name="type">BigDecimal</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=null
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-6" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>totalAmount</b> (type <b>BigDecimal</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/total-amount"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">totalAmount</param>
+ <param name="type">BigDecimal</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-7" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>tax</b> (type <b>BigDecimal</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/tax"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">tax</param>
+ <param name="type">BigDecimal</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, order=Order Header:
+ Customer: null
+ Date: null
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-8" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>date</b> (type <b>1b269b17-9bd8-4be4-85da-3bde5ea49908</b>) of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="header/date"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">date</param>
+ <param name="type">1b269b17-9bd8-4be4-85da-3bde5ea49908</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+</example.model.Header>
+
+customer:
+<null/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, order=Order Header:
+ Customer: null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-9" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>customer</b>. Bean type: <b>example.model.Customer</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="customer-details"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">customer</param>
+ <param name="beanClass">example.model.Customer</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer/>
+</example.model.Header>
+
+customer:
+<example.model.Customer/>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer/>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null, null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, null, order=Order Header:
+ Customer: null, null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-10" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>userName</b> (type <b>String</b>) of bean <b>customer</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="customer-details/username"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">customer</param>
+ <param name="property">userName</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ </customer>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null, null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, null, order=Order Header:
+ Customer: null, null
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-11" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>firstName</b> (type <b>String</b>) of bean <b>customer</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="customer-details/name/firstname"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">customer</param>
+ <param name="property">firstName</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ </customer>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: null, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=null, Harry, order=Order Header:
+ Customer: null, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-12" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>lastName</b> (type <b>String</b>) of bean <b>customer</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="customer-details/name/lastname"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">customer</param>
+ <param name="property">lastName</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ </customer>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-13" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>state</b> (type <b>String</b>) of bean <b>customer</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="customer-details/state"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">customer</param>
+ <param name="property">state</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list/>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems/>
+</example.model.Order>
+
+orderItem:
+<null/>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+, orderItem=null}]}</pre></div>
+ <div id="block-details-14" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>orderItem</b>. Bean type: <b>example.model.OrderItem</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="beanClass">example.model.OrderItem</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>0</quantity>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>0</quantity>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>0</quantity>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=null, Quantity=0, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=null, Quantity=0, Title='null', Price=null
+, orderItem=ProductID=null, Quantity=0, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-15" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>quantity</b> (type <b>Integer</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/quantity"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">quantity</param>
+ <param name="type">Integer</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=null, Quantity=1, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=null, Quantity=1, Title='null', Price=null
+, orderItem=ProductID=null, Quantity=1, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-16" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>productId</b> (type <b>String</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/product-id"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">productId</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='null', Price=null
+, orderItem=ProductID=364, Quantity=1, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-17" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>title</b> (type <b>String</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/title"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">title</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <title>The 40-Year-Old Virgin</title>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=null
+, orderItem=ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=null}]}</pre></div>
+ <div id="block-details-18" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>price</b> (type <b>BigDecimal</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/price"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">price</param>
+ <param name="type">BigDecimal</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+, orderItem=ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98}]}</pre></div>
+ <div id="block-details-19" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Created bean <b>orderItem</b>. Bean type: <b>example.model.OrderItem</b>.
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item"">
+ <resource>org.milyn.javabean.BeanInstanceCreator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="beanClass">example.model.OrderItem</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>0</quantity>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>0</quantity>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>0</quantity>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=null, Quantity=0, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=null, Quantity=0, Title='null', Price=null
+, orderItem=ProductID=null, Quantity=0, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-20" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>quantity</b> (type <b>Integer</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/quantity"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">quantity</param>
+ <param name="type">Integer</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=null, Quantity=1, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=null, Quantity=1, Title='null', Price=null
+, orderItem=ProductID=null, Quantity=1, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-21" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>productId</b> (type <b>String</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/product-id"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">productId</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='null', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='null', Price=null
+, orderItem=ProductID=299, Quantity=1, Title='null', Price=null}]}</pre></div>
+ <div id="block-details-22" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>title</b> (type <b>String</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/title"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">title</param>
+ <param name="type">String</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=null], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=null
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=null}]}</pre></div>
+ <div id="block-details-23" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>price</b> (type <b>BigDecimal</b>) of bean <b>orderItem</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order-item/price"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItem</param>
+ <param name="property">price</param>
+ <param name="type">BigDecimal</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99}]}</pre></div>
+ <div id="block-details-24" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>undefined</b> of bean <b>orderItemList</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">orderItemList</param>
+ <param name="wireBeanId">orderItem</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, class org.milyn.javabean.BeanInstancePopulator#binding.extend.lifecycle=false, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99}]}</pre></div>
+ <div id="block-details-25" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>customer</b> of bean <b>header</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">header</param>
+ <param name="property">customer</param>
+ <param name="wireBeanId">customer</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, class org.milyn.javabean.BeanInstancePopulator#binding.extend.lifecycle=false, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99}]}</pre></div>
+ <div id="block-details-26" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>orderItems</b> of bean <b>order</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">order</param>
+ <param name="property">orderItems</param>
+ <param name="wireBeanId">orderItemList</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, class org.milyn.javabean.BeanInstancePopulator#binding.extend.lifecycle=false, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99}]}</pre></div>
+ <div id="block-details-27" style="display:none;">
+ <b><u>Details:</u></b><br/>
+ Extracting element data and binding it on property <b>header</b> of bean <b>order</b>.
+
+ <p/>
+ <b><u>Resource Configuration:</u></b>
+ <pre><resource-config selector="order"">
+ <resource>org.milyn.javabean.BeanInstancePopulator</resource>
+ <param name="beanId">order</param>
+ <param name="property">header</param>
+ <param name="wireBeanId">header</param>
+</resource-config></pre>
+ <p/>
+ <b><u>Execution Context State:</u></b> (After Visitor Execution)
+ <pre>{org.milyn.payload.FilterResult#CONTEXT_KEY=orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+, class org.milyn.javabean.BeanInstancePopulator#binding.extend.lifecycle=false, org.milyn.payload.FilterSource#CONTEXT_KEY=javax.xml.transform.stream.StreamSource@16d835f, org.milyn.javabean.repository.BeanRepository#CONTEXT_KEY=org.milyn.javabean.repository.BeanRepository@cbd8dc[beanMap={orderItemList=[ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98, ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99], header= Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+, customer=Fletcher, Harry, order=Order Header:
+ Customer: Fletcher, Harry
+ Date: Thu Nov 16 02:45:28 CST 2006
+ Details: ID=1, Status=0, Total=64.92
+Order Items:
+ (0): ProductID=364, Quantity=1, Title='The 40-Year-Old Virgin', Price=29.98
+ (1): ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99
+, orderItem=ProductID=299, Quantity=1, Title='Pulp Fiction', Price=29.99}]}</pre></div>
+ </div>
+ </div>
+ </div>
+
+ <div class="tabbertab" title="Result">
+ <div id="result-summary">
+ This Smooks Filtering operation produced a JavaResult. The following is an XML serialization of the JavaResult bean Map entries.
+ </div>
+ <div id="result-detail">
+ <pre>orderItemList:
+<list>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+</list>
+
+header:
+<example.model.Header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+</example.model.Header>
+
+customer:
+<example.model.Customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+</example.model.Customer>
+
+order:
+<example.model.Order>
+ <header>
+ <orderId>1</orderId>
+ <orderStatus>0</orderStatus>
+ <netAmount>59.97</netAmount>
+ <totalAmount>64.92</totalAmount>
+ <tax>4.95</tax>
+ <date>2006-11-16 02:45:28.0 CST</date>
+ <customer>
+ <userName>user1</userName>
+ <firstName>Harry</firstName>
+ <lastName>Fletcher</lastName>
+ <state>SD</state>
+ </customer>
+ </header>
+ <orderItems>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>364</productId>
+ <price>29.98</price>
+ <title>The 40-Year-Old Virgin</title>
+ </example.model.OrderItem>
+ <example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+ </example.model.OrderItem>
+ </orderItems>
+</example.model.Order>
+
+orderItem:
+<example.model.OrderItem>
+ <quantity>1</quantity>
+ <productId>299</productId>
+ <price>29.99</price>
+ <title>Pulp Fiction</title>
+</example.model.OrderItem>
+
+</pre>
+ </div>
+ </div>
+ </div>
+
+ </body>
+</html>
Property changes on: trunk/smooks/plugins/org.jboss.tools.milyn.smooks1_1_2/target/report/report.html
___________________________________________________________________
Name: svn:mime-type
+ text/plain
15 years, 6 months
JBoss Tools SVN: r16229 - trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam.
by jbosstools-commits@lists.jboss.org
Author: snjeza
Date: 2009-06-28 14:23:23 -0400 (Sun, 28 Jun 2009)
New Revision: 16229
Modified:
trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4535 Mavenized Seam project isn't created correctly when o.j.t.maven.seam is jarred
Modified: trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java
===================================================================
--- trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-06-26 18:03:33 UTC (rev 16228)
+++ trunk/maven/plugins/org.jboss.tools.maven.seam/src/org/jboss/tools/maven/seam/MavenSeamActivator.java 2009-06-28 18:23:23 UTC (rev 16229)
@@ -1,6 +1,9 @@
package org.jboss.tools.maven.seam;
-import java.io.File;
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.Reader;
import java.net.URL;
import java.util.ArrayList;
import java.util.Iterator;
@@ -12,7 +15,6 @@
import org.apache.maven.model.Exclusion;
import org.apache.maven.model.Model;
import org.apache.maven.model.Parent;
-import org.eclipse.core.resources.IContainer;
import org.eclipse.core.resources.IFile;
import org.eclipse.core.resources.IProject;
import org.eclipse.core.resources.ResourcesPlugin;
@@ -22,7 +24,6 @@
import org.eclipse.core.runtime.IPath;
import org.eclipse.core.runtime.IProgressMonitor;
import org.eclipse.core.runtime.IStatus;
-import org.eclipse.core.runtime.Path;
import org.eclipse.core.runtime.Status;
import org.eclipse.emf.common.util.EList;
import org.eclipse.jdt.core.IClasspathEntry;
@@ -30,20 +31,14 @@
import org.eclipse.jdt.core.JavaCore;
import org.eclipse.jdt.core.JavaModelException;
import org.eclipse.jst.j2ee.application.Application;
-import org.eclipse.jst.j2ee.application.ApplicationFactory;
import org.eclipse.jst.j2ee.application.EjbModule;
import org.eclipse.jst.j2ee.application.WebModule;
import org.eclipse.jst.j2ee.componentcore.util.EARArtifactEdit;
-import org.eclipse.jst.j2ee.project.facet.EarFacetRuntimeHandler;
import org.eclipse.ui.plugin.AbstractUIPlugin;
-import org.eclipse.wst.common.componentcore.ComponentCore;
import org.eclipse.wst.common.componentcore.datamodel.properties.IFacetDataModelProperties;
-import org.eclipse.wst.common.componentcore.resources.IVirtualComponent;
-import org.eclipse.wst.common.componentcore.resources.IVirtualFolder;
import org.eclipse.wst.common.frameworks.datamodel.IDataModel;
import org.eclipse.wst.common.project.facet.core.FacetedProjectFramework;
import org.eclipse.wst.common.project.facet.core.IFacetedProject;
-import org.eclipse.wst.common.project.facet.core.IFacetedProjectWorkingCopy;
import org.eclipse.wst.common.project.facet.core.ProjectFacetsManager;
import org.jboss.tools.maven.core.IJBossMavenConstants;
import org.jboss.tools.maven.core.MavenCoreActivator;
@@ -738,11 +733,12 @@
private void configureParentProject(IDataModel m2FacetModel, IDataModel seamFacetModel) {
Bundle bundle = getDefault().getBundle();
URL parentPomEntryURL = bundle.getEntry("/poms/parent-pom.xml");
+ Reader reader = null;
try {
URL resolvedURL = FileLocator.resolve(parentPomEntryURL);
- File pomFile = new File(FileLocator.toFileURL(resolvedURL).getFile());
MavenModelManager modelManager = MavenPlugin.getDefault().getMavenModelManager();
- Model model = modelManager.readMavenModel(pomFile);
+ reader = new BufferedReader(new InputStreamReader(resolvedURL.openStream()));
+ Model model = modelManager.readMavenModel(reader);
model.setArtifactId(parentArtifactId);
model.setGroupId(m2FacetModel.getStringProperty(IJBossMavenConstants.GROUP_ID));
String projectVersion = m2FacetModel.getStringProperty(IJBossMavenConstants.VERSION);
@@ -780,6 +776,12 @@
projectManager.setResolverConfiguration(project, configuration);
} catch (Exception e) {
log(e);
+ } finally {
+ if (reader != null) {
+ try {
+ reader.close();
+ } catch (IOException ignore) {}
+ }
}
}
15 years, 6 months
JBoss Tools SVN: r16228 - trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template.
by jbosstools-commits@lists.jboss.org
Author: dgolovin
Date: 2009-06-26 14:03:33 -0400 (Fri, 26 Jun 2009)
New Revision: 16228
Modified:
trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
Log:
replace catch Exception for NumberFormatException
Modified: trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java
===================================================================
--- trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java 2009-06-26 16:15:01 UTC (rev 16227)
+++ trunk/jsf/plugins/org.jboss.tools.jsf.vpe.richfaces/src/org/jboss/tools/jsf/vpe/richfaces/template/RichFacesLayoutTemplate.java 2009-06-26 18:03:33 UTC (rev 16228)
@@ -232,7 +232,7 @@
if ((null != widthStr) && widthStr.endsWith(Constants.PERCENT)) {
try {
result = Double.parseDouble(widthStr.substring(0, widthStr.length()-1));
- } catch (Exception e) {
+ } catch (NumberFormatException e) {
/*
* Cannot parse - skip.
*/
15 years, 6 months
JBoss Tools SVN: r16227 - trunk/maven/features.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-06-26 12:15:01 -0400 (Fri, 26 Jun 2009)
New Revision: 16227
Removed:
trunk/maven/features/org.jboss.tools.maven.runtime.feature/
Log:
runtime feature not required
15 years, 6 months
JBoss Tools SVN: r16226 - trunk/maven/features/org.jboss.tools.maven.sdk.feature.
by jbosstools-commits@lists.jboss.org
Author: nickboldt
Date: 2009-06-26 12:14:26 -0400 (Fri, 26 Jun 2009)
New Revision: 16226
Modified:
trunk/maven/features/org.jboss.tools.maven.sdk.feature/build.properties
Log:
add feature gen directive
Modified: trunk/maven/features/org.jboss.tools.maven.sdk.feature/build.properties
===================================================================
--- trunk/maven/features/org.jboss.tools.maven.sdk.feature/build.properties 2009-06-26 15:55:37 UTC (rev 16225)
+++ trunk/maven/features/org.jboss.tools.maven.sdk.feature/build.properties 2009-06-26 16:14:26 UTC (rev 16226)
@@ -1,3 +1,7 @@
bin.includes = feature.xml,\
license.html,\
feature.properties
+
+generate.feature(a)org.jboss.tools.maven.source.feature=org.jboss.tools.maven.feature
+generate.feature(a)org.jboss.tools.maven.seam.source.feature=org.jboss.tools.maven.seam.feature
+
15 years, 6 months
JBoss Tools SVN: r16225 - in trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors: model and 1 other directory.
by jbosstools-commits@lists.jboss.org
Author: vyemialyanchyk
Date: 2009-06-26 11:55:37 -0400 (Fri, 26 Jun 2009)
New Revision: 16225
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
Log:
https://jira.jboss.org/jira/browse/JBIDE-4285 - bug fix of JBIDE-4499 commit
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java 2009-06-26 15:55:07 UTC (rev 16224)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/actions/OpenSourceAction.java 2009-06-26 15:55:37 UTC (rev 16225)
@@ -70,10 +70,10 @@
}
protected boolean calculateEnabled() {
+ //VisualEditor part = (VisualEditor)getWorkbenchPart();
+ //return part.getSelectedElements().size() > 0;
+ /**/
VisualEditor part = (VisualEditor)getWorkbenchPart();
- return part.getSelectedElements().size() > 0;
- /** /
- VisualEditor part = (VisualEditor)getWorkbenchPart();
Set selectedElements = part.getSelectedElements();
Iterator iterator = selectedElements.iterator();
while (iterator.hasNext()) {
Modified: trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java
===================================================================
--- trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2009-06-26 15:55:07 UTC (rev 16224)
+++ trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/editors/model/OrmShape.java 2009-06-26 15:55:37 UTC (rev 16225)
@@ -224,7 +224,7 @@
}
private void setElementHidden(ModelElement element, boolean hidden) {
- Iterator<Shape> it = getChildrenIterator();
+ Iterator<Shape> it = element.getChildrenIterator();
while (it.hasNext()) {
final Shape child = it.next();
child.setHidden(hidden);
15 years, 6 months