Author: tfennelly
Date: 2010-06-04 10:49:45 -0400 (Fri, 04 Jun 2010)
New Revision: 22546
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/MANIFEST.MF
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/model/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/model/descriptor.properties
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/about.html
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/build.properties
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/libs/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/libs/xstream-1.2.2.jar
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.properties
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/pom.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/Reader.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/SmooksModel.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/Binding.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/CSVReader.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/ListBinding.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/MapBinding.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/SingleBinding.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Bean.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Binding.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/DecodeParam.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Expression.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Value.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Wiring.java
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.ftl
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/SmooksModelActivator.java
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/META-INF/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/META-INF/MANIFEST.MF
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/build.properties
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/lib/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/lib/xmlunit-1.1.jar
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/plugin.properties
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/pom.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/resources/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_2_Test.java
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_3_Test.java
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-01.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-02.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-03.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-04.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-01.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-02.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-03.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-04.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-05.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/BeanTest.java
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/config-01.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-01.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-02.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-01.xml
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-02.xml
Modified:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.runtime/META-INF/MANIFEST.MF
Log:
First chink of the model builder models... from the smooks example... still an issue with
the tests... need to figure out how to export the model descriptor file (in META-INF) in
the bundle
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/MANIFEST.MF
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/MANIFEST.MF
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/MANIFEST.MF 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,16 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %pluginName
+Bundle-SymbolicName: org.jboss.tools.smooks.model;singleton:=true
+Bundle-Version: 1.1.0.qualifier
+Bundle-ActivationPolicy: lazy
+Bundle-Localization: plugin
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-Vendor: %providerName
+Require-Bundle: org.eclipse.core.runtime,
+ org.jboss.tools.smooks.runtime
+Bundle-Activator: org.jboss.tools.smooks.model.plugin.SmooksModelActivator
+Export-Package: org.jboss.tools.smooks.model.core,
+ org.jboss.tools.smooks.model.csv,
+ org.jboss.tools.smooks.model.javabean,
+ org.jboss.tools.smooks.model.plugin
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/model/descriptor.properties
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/model/descriptor.properties
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/META-INF/org/jboss/tools/smooks/model/descriptor.properties 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,36 @@
+############################################################################################
+#
+# Smooks configuration model descriptor.
+#
+############################################################################################
+
+ # smooks core v1.1
+smooks11.namespace=http://www.milyn.org/xsd/smooks-1.1.xsd
+smooks11.schemaLocation=/META-INF/xsd/smooks-1.1.xsd
+smooks11.bindingConfigLocation=/org/jboss/tools/smooks/model/core/v1.1.xml
+smooks11.order=0
+
+ # csv v1.2
+csv12.namespace=http://www.milyn.org/xsd/smooks/csv-1.2.xsd
+csv12.schemaLocation=/META-INF/xsd/smooks/csv-1.2.xsd
+csv12.bindingConfigLocation=/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml
+
+ # csv v1.3
+csv13.namespace=http://www.milyn.org/xsd/smooks/csv-1.3.xsd
+csv13.schemaLocation=/META-INF/xsd/smooks/csv-1.3.xsd
+csv13.bindingConfigLocation=/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml
+
+ # javabean v1.1
+jb11.namespace=http://www.milyn.org/xsd/smooks/javabean-1.1.xsd
+jb11.schemaLocation=/META-INF/xsd/smooks/javabean-1.1.xsd
+jb11.bindingConfigLocation=/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml
+
+ # javabean v1.2
+jb12.namespace=http://www.milyn.org/xsd/smooks/javabean-1.2.xsd
+jb12.schemaLocation=/META-INF/xsd/smooks/javabean-1.2.xsd
+jb12.bindingConfigLocation=/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml
+
+ # javabean v1.3
+jb13.namespace=http://www.milyn.org/xsd/smooks/javabean-1.3.xsd
+jb13.schemaLocation=/META-INF/xsd/smooks/javabean-1.3.xsd
+jb13.bindingConfigLocation=/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml
Added: workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/about.html
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/about.html
(rev 0)
+++ workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/about.html 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml">
+<head>
+<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1" />
+<title>Smooks Tools - Templating</title>
+<style type="text/css" media="screen">
+<!--
+ body {
+ font-family: Sans-serif, Arial, Helvetica;
+ }
+
+-->
+</style>
+</head>
+<body>
+<h1>Smooks Tools - Templating</h1>
+
+<p>
+This plugin is part of the JBoss Tools developed by the <a
href="http://www.jboss.com">JBoss Inc.</a>
+</p>
+
+<p>Information about this plugin is available at <a
href="http://www.jboss.org/tools">JBoss Tools project
page</a></p>
+
+<p>
+This software is distributed under the terms of the Eclipse Public License - v 1.0
+(see <a
href="www.eclipse.org/legal/epl-v10.html">Eclipse Public License
- Version 1.0</a>).
+</p>
+</body>
+</html>
\ No newline at end of file
Added: workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/build.properties
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/build.properties
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/build.properties 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,8 @@
+output.. = bin/
+bin.includes = META-INF/,\
+ .,\
+ about.html,\
+ plugin.properties
+jars.compile.order = .
+source.. = src/
+source.. = src/
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/libs/xstream-1.2.2.jar
===================================================================
(Binary files differ)
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/libs/xstream-1.2.2.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.properties
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.properties
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.properties 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,8 @@
+
+# <copyright>
+# </copyright>
+#
+# $Id$
+
+providerName = JBoss by Red Hat
+pluginName = Smooks Model Plug-in
Added: workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.xml
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.xml
(rev 0)
+++ workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<?eclipse version="3.4"?>
+<plugin>
+
+</plugin>
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/plugin.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/pom.xml
===================================================================
--- workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/pom.xml
(rev 0)
+++ workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/pom.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.smooks.model</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/Reader.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/Reader.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/Reader.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,28 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.core;
+
+/**
+ * Marker interface for Smooks reader components.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public interface Reader {
+}
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/Reader.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/SmooksModel.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/SmooksModel.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/SmooksModel.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,56 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.core;
+
+import org.jboss.tools.smooks.model.javabean.Bean;
+import org.milyn.javabean.dynamic.serialize.DefaultNamespace;
+
+import java.util.ArrayList;
+import java.util.List;
+
+/**
+ * Smooks Model Root.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+@DefaultNamespace(uri = "http://www.milyn.org/xsd/smooks-1.1.xsd")
+public class SmooksModel {
+
+ public static final String MODEL_DESCRIPTOR =
"META-INF/org/jboss/tools/smooks/model/descriptor.properties";
+
+ private List<Reader> readers = new ArrayList<Reader>();
+ private List<Bean> beans = new ArrayList<Bean>();
+
+ public List<Reader> getReaders() {
+ return readers;
+ }
+
+ public void setReaders(List<Reader> readers) {
+ this.readers = readers;
+ }
+
+ public List<Bean> getBeans() {
+ return beans;
+ }
+
+ public void setBeans(List<Bean> beans) {
+ this.beans = beans;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/SmooksModel.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,7 @@
+<?xml version="1.0"?>
+<smooks-resource-list <@writeNamespaces indent="22"/>>
+
+<#list bean.readers as reader><@writeBean bean=reader /></#list>
+<#list bean.beans as bean><@writeBean bean=bean /></#list>
+
+</smooks-resource-list>
\ No newline at end of file
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,27 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!--
+ Main Smooks model bean.
+ -->
+ <jb:bean beanId="smooksModel"
class="org.smooks.model.core.SmooksModel"
createOnElement="#document">
+ <jb:wiring property="readers" beanIdRef="readers" />
+ <jb:wiring property="beans" beanIdRef="beans" />
+ </jb:bean>
+ <jb:bean beanId="readers" class="java.util.ArrayList"
createOnElement="#document">
+ <jb:wiring beanType="org.smooks.model.core.Reader" />
+ </jb:bean>
+ <jb:bean beanId="beans" class="java.util.ArrayList"
createOnElement="#document">
+ <jb:wiring beanType="org.smooks.model.javabean.Bean" />
+ </jb:bean>
+
+ <!--
+ Top level writer...
+ -->
+ <dmb:writer beanId="smooksModel"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/core/v1.1.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/core/v1.1.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/Binding.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/Binding.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/Binding.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,47 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.csv;
+
+/**
+ * CSV Reader inline binding configuration.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public abstract class Binding {
+
+ private String beanId;
+ private String beanClass;
+
+ public String getBeanId() {
+ return beanId;
+ }
+
+ public void setBeanId(String beanId) {
+ this.beanId = beanId;
+ }
+
+ public String getBeanClass() {
+ return beanClass;
+ }
+
+ public void setBeanClass(String beanClass) {
+ this.beanClass = beanClass;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/Binding.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/CSVReader.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/CSVReader.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/CSVReader.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,143 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.csv;
+
+import org.jboss.tools.smooks.model.core.Reader;
+import org.milyn.javabean.dynamic.serialize.DefaultNamespace;
+
+/**
+ * CSV Reader component.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+@DefaultNamespace(uri = "http://www.milyn.org/xsd/smooks/csv-1.3.xsd", prefix =
"csv13")
+public class CSVReader implements Reader {
+
+ private String fields;
+ private Character separator;
+ private Character quote;
+ private Integer skipLines;
+ private String rootElementName;
+ private String recordElementName;
+ private Boolean indent;
+ private Boolean strict;
+ private Boolean validateHeader;
+
+ // Only one of the following binding configs will be wired into this bean...
+ private SingleBinding singleBinding;
+ private ListBinding listBinding;
+ private MapBinding mapBinding;
+
+ public String getFields() {
+ return fields;
+ }
+
+ public void setFields(String fields) {
+ this.fields = fields;
+ }
+
+ public Character getSeparator() {
+ return separator;
+ }
+
+ public void setSeparator(Character separator) {
+ this.separator = separator;
+ }
+
+ public Character getQuote() {
+ return quote;
+ }
+
+ public void setQuote(Character quote) {
+ this.quote = quote;
+ }
+
+ public Integer getSkipLines() {
+ return skipLines;
+ }
+
+ public void setSkipLines(Integer skipLines) {
+ this.skipLines = skipLines;
+ }
+
+ public String getRootElementName() {
+ return rootElementName;
+ }
+
+ public void setRootElementName(String rootElementName) {
+ this.rootElementName = rootElementName;
+ }
+
+ public String getRecordElementName() {
+ return recordElementName;
+ }
+
+ public void setRecordElementName(String recordElementName) {
+ this.recordElementName = recordElementName;
+ }
+
+ public Boolean isIndent() {
+ return indent;
+ }
+
+ public void setIndent(Boolean indent) {
+ this.indent = indent;
+ }
+
+ public Boolean isStrict() {
+ return strict;
+ }
+
+ public void setStrict(Boolean strict) {
+ this.strict = strict;
+ }
+
+ public Boolean isValidateHeader() {
+ return validateHeader;
+ }
+
+ public void setValidateHeader(Boolean validateHeader) {
+ this.validateHeader = validateHeader;
+ }
+
+ public SingleBinding getSingleBinding() {
+ return singleBinding;
+ }
+
+ public void setSingleBinding(SingleBinding singleBinding) {
+ this.singleBinding = singleBinding;
+ }
+
+ public ListBinding getListBinding() {
+ return listBinding;
+ }
+
+ public void setListBinding(ListBinding listBinding) {
+ this.listBinding = listBinding;
+ }
+
+ public MapBinding getMapBinding() {
+ return mapBinding;
+ }
+
+ public void setMapBinding(MapBinding mapBinding) {
+ this.mapBinding = mapBinding;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/CSVReader.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/ListBinding.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/ListBinding.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/ListBinding.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,27 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.csv;
+
+/**
+ * Object List CSV binding.
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class ListBinding extends Binding {
+}
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/ListBinding.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/MapBinding.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/MapBinding.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/MapBinding.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,37 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.csv;
+
+/**
+ * {@link java.util.Map} binding.
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class MapBinding extends Binding {
+
+ private String keyField;
+
+ public String getKeyField() {
+ return keyField;
+ }
+
+ public void setKeyField(String keyField) {
+ this.keyField = keyField;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/MapBinding.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/SingleBinding.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/SingleBinding.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/SingleBinding.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,27 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.csv;
+
+/**
+ * Single object CSV binding.
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class SingleBinding extends Binding {
+}
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/SingleBinding.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,15 @@
+<#if bean.singleBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent"
/> >
+ <${nsp}:singleBinding <@writeAttribs
attribs="beanId,beanClass@class" bean=bean.singleBinding /> />
+ </${nsp}:reader>
+<#elseif bean.listBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent"
/> >
+ <${nsp}:listBinding <@writeAttribs
attribs="beanId,beanClass@class" bean=bean.listBinding /> />
+ </${nsp}:reader>
+<#elseif bean.mapBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent"
/> >
+ <${nsp}:mapBinding <@writeAttribs
attribs="beanId,beanClass@class,keyField" bean=bean.mapBinding /> />
+ </${nsp}:reader>
+<#else>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent"
/> />
+</#if>
\ No newline at end of file
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,42 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!-- Binding configs (unmarshal)... -->
+
+ <jb:bean beanId="csvReader"
class="org.smooks.model.csv.CSVReader" createOnElement="reader">
+ <jb:value property="fields" data="reader/@fields" />
+ <jb:value property="separator" data="reader/@separator"
/>
+ <jb:value property="quote" data="reader/@quote" />
+ <jb:value property="skipLines" data="reader/@skipLines"
/>
+ <jb:value property="rootElementName"
data="reader/@rootElementName" />
+ <jb:value property="recordElementName"
data="reader/@recordElementName" />
+ <jb:value property="indent" data="reader/@indent" />
+
+ <!-- only one of the following will be wired in... -->
+ <jb:wiring property="singleBinding"
beanIdRef="singleBinding" />
+ <jb:wiring property="listBinding" beanIdRef="listBinding"
/>
+ <jb:wiring property="mapBinding" beanIdRef="mapBinding"
/>
+ </jb:bean>
+ <jb:bean beanId="singleBinding"
class="org.smooks.model.csv.SingleBinding"
createOnElement="reader/singleBinding">
+ <jb:value property="beanId"
data="reader/singleBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/singleBinding/@class" />
+ </jb:bean>
+ <jb:bean beanId="listBinding"
class="org.smooks.model.csv.ListBinding"
createOnElement="reader/listBinding">
+ <jb:value property="beanId"
data="reader/listBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/listBinding/@class" />
+ </jb:bean>
+ <jb:bean beanId="mapBinding"
class="org.smooks.model.csv.MapBinding"
createOnElement="reader/mapBinding">
+ <jb:value property="beanId"
data="reader/mapBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/mapBinding/@class" />
+ <jb:value property="keyField"
data="reader/mapBinding/@keyField" />
+ </jb:bean>
+
+ <!-- Writers (marshal)... -->
+
+ <dmb:writer beanId="csvReader"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/csv/v1_2/v1.2.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_2/v1.2.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,15 @@
+<#if bean.singleBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent,strict,validateHeader"
/> >
+ <${nsp}:singleBinding <@writeAttribs
attribs="beanId,beanClass@class" bean=bean.singleBinding /> />
+ </${nsp}:reader>
+<#elseif bean.listBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent,strict,validateHeader"
/> >
+ <${nsp}:listBinding <@writeAttribs
attribs="beanId,beanClass@class" bean=bean.listBinding /> />
+ </${nsp}:reader>
+<#elseif bean.mapBinding??>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent,strict,validateHeader"
/> >
+ <${nsp}:mapBinding <@writeAttribs
attribs="beanId,beanClass@class,keyField" bean=bean.mapBinding /> />
+ </${nsp}:reader>
+<#else>
+ <${nsp}:reader <@writeAttribs
attribs="fields,separator,quote,skipLines,rootElementName,recordElementName,indent,strict,validateHeader"
/> />
+</#if>
\ No newline at end of file
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,44 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!-- Binding configs (unmarshal)... -->
+
+ <jb:bean beanId="csvReader"
class="org.smooks.model.csv.CSVReader" createOnElement="reader">
+ <jb:value property="fields" data="reader/@fields" />
+ <jb:value property="separator" data="reader/@separator"
/>
+ <jb:value property="quote" data="reader/@quote" />
+ <jb:value property="skipLines" data="reader/@skipLines"
/>
+ <jb:value property="rootElementName"
data="reader/@rootElementName" />
+ <jb:value property="recordElementName"
data="reader/@recordElementName" />
+ <jb:value property="indent" data="reader/@indent" />
+ <jb:value property="strict" data="reader/@strict" />
+ <jb:value property="validateHeader"
data="reader/@validateHeader" />
+
+ <!-- only one of the following will be wired in... -->
+ <jb:wiring property="singleBinding"
beanIdRef="singleBinding" />
+ <jb:wiring property="listBinding" beanIdRef="listBinding"
/>
+ <jb:wiring property="mapBinding" beanIdRef="mapBinding"
/>
+ </jb:bean>
+ <jb:bean beanId="singleBinding"
class="org.smooks.model.csv.SingleBinding"
createOnElement="reader/singleBinding">
+ <jb:value property="beanId"
data="reader/singleBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/singleBinding/@class" />
+ </jb:bean>
+ <jb:bean beanId="listBinding"
class="org.smooks.model.csv.ListBinding"
createOnElement="reader/listBinding">
+ <jb:value property="beanId"
data="reader/listBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/listBinding/@class" />
+ </jb:bean>
+ <jb:bean beanId="mapBinding"
class="org.smooks.model.csv.MapBinding"
createOnElement="reader/mapBinding">
+ <jb:value property="beanId"
data="reader/mapBinding/@beanId" />
+ <jb:value property="beanClass"
data="reader/mapBinding/@class" />
+ <jb:value property="keyField"
data="reader/mapBinding/@keyField" />
+ </jb:bean>
+
+ <!-- Writers (marshal)... -->
+
+ <dmb:writer beanId="csvReader"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/csv/v1_3/v1.3.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/csv/v1_3/v1.3.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Bean.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Bean.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Bean.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,99 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+import org.milyn.javabean.dynamic.serialize.DefaultNamespace;
+
+import java.util.List;
+
+/**
+ * Bean configuration.
+ * <p/>
+ * Corresponds to the top level <jb:bean> element.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+@DefaultNamespace(uri = "http://www.milyn.org/xsd/smooks/javabean-1.3.xsd",
prefix = "jb13")
+public class Bean {
+
+ private String beanId;
+ private String beanClass;
+ private String createOnElement;
+ private String createOnElementNS;
+ private List<Value> valueBindings;
+ private List<Wiring> wireBindings;
+ private List<Expression> expressionBindings;
+
+ public String getBeanId() {
+ return beanId;
+ }
+
+ public void setBeanId(String beanId) {
+ this.beanId = beanId;
+ }
+
+ public String getBeanClass() {
+ return beanClass;
+ }
+
+ public void setBeanClass(String beanClass) {
+ this.beanClass = beanClass;
+ }
+
+ public String getCreateOnElement() {
+ return createOnElement;
+ }
+
+ public void setCreateOnElement(String createOnElement) {
+ this.createOnElement = createOnElement;
+ }
+
+ public String getCreateOnElementNS() {
+ return createOnElementNS;
+ }
+
+ public void setCreateOnElementNS(String createOnElementNS) {
+ this.createOnElementNS = createOnElementNS;
+ }
+
+ public List<Value> getValueBindings() {
+ return valueBindings;
+ }
+
+ public void setValueBindings(List<Value> valueBindings) {
+ this.valueBindings = valueBindings;
+ }
+
+ public List<Wiring> getWireBindings() {
+ return wireBindings;
+ }
+
+ public void setWireBindings(List<Wiring> wireBindings) {
+ this.wireBindings = wireBindings;
+ }
+
+ public List<Expression> getExpressionBindings() {
+ return expressionBindings;
+ }
+
+ public void setExpressionBindings(List<Expression> expressionBindings) {
+ this.expressionBindings = expressionBindings;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Bean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Binding.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Binding.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Binding.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,46 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+/**
+ * Abstract base class for binding configuration sub types.
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public abstract class Binding {
+
+ private String property;
+ private String setterMethod;
+
+ public String getProperty() {
+ return property;
+ }
+
+ public void setProperty(String property) {
+ this.property = property;
+ }
+
+ public String getSetterMethod() {
+ return setterMethod;
+ }
+
+ public void setSetterMethod(String setterMethod) {
+ this.setterMethod = setterMethod;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Binding.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/DecodeParam.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/DecodeParam.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/DecodeParam.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,47 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+/**
+ * Decode Parameter.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class DecodeParam {
+
+ private String name;
+ private String value;
+
+ public String getName() {
+ return name;
+ }
+
+ public void setName(String name) {
+ this.name = name;
+ }
+
+ public String getValue() {
+ return value;
+ }
+
+ public void setValue(String value) {
+ this.value = value;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/DecodeParam.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Expression.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Expression.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Expression.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,56 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+/**
+ * Expression based binding configuration.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class Expression extends Binding {
+
+ private String execOnElement;
+ private String execOnElementNS;
+ private String initVal;
+
+ public String getExecOnElement() {
+ return execOnElement;
+ }
+
+ public void setExecOnElement(String execOnElement) {
+ this.execOnElement = execOnElement;
+ }
+
+ public String getExecOnElementNS() {
+ return execOnElementNS;
+ }
+
+ public void setExecOnElementNS(String execOnElementNS) {
+ this.execOnElementNS = execOnElementNS;
+ }
+
+ public String getInitVal() {
+ return initVal;
+ }
+
+ public void setInitVal(String initVal) {
+ this.initVal = initVal;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Expression.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Value.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Value.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Value.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,76 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+import java.util.List;
+
+/**
+ * Value binding configuration.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class Value extends Binding {
+
+ private String data;
+ private String dataNS;
+ private String decoder;
+ private String defaultVal;
+ private List<DecodeParam> decodeParams;
+
+ public String getData() {
+ return data;
+ }
+
+ public void setData(String data) {
+ this.data = data;
+ }
+
+ public String getDataNS() {
+ return dataNS;
+ }
+
+ public void setDataNS(String dataNS) {
+ this.dataNS = dataNS;
+ }
+
+ public String getDecoder() {
+ return decoder;
+ }
+
+ public void setDecoder(String decoder) {
+ this.decoder = decoder;
+ }
+
+ public String getDefaultVal() {
+ return defaultVal;
+ }
+
+ public void setDefaultVal(String defaultVal) {
+ this.defaultVal = defaultVal;
+ }
+
+ public List<DecodeParam> getDecodeParams() {
+ return decodeParams;
+ }
+
+ public void setDecodeParams(List<DecodeParam> decodeParams) {
+ this.decodeParams = decodeParams;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Value.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Wiring.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Wiring.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Wiring.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,56 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.javabean;
+
+/**
+ * Wiring binding configuration.
+ *
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class Wiring extends Binding {
+
+ private String beanIdRef;
+ private String wireOnElement;
+ private String wireOnElementNS;
+
+ public String getBeanIdRef() {
+ return beanIdRef;
+ }
+
+ public void setBeanIdRef(String beanIdRef) {
+ this.beanIdRef = beanIdRef;
+ }
+
+ public String getWireOnElement() {
+ return wireOnElement;
+ }
+
+ public void setWireOnElement(String wireOnElement) {
+ this.wireOnElement = wireOnElement;
+ }
+
+ public String getWireOnElementNS() {
+ return wireOnElementNS;
+ }
+
+ public void setWireOnElementNS(String wireOnElementNS) {
+ this.wireOnElementNS = wireOnElementNS;
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/Wiring.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,25 @@
+<#assign numChildElemenst = (bean.valueBindings?size + bean.wireBindings?size +
bean.expressionBindings?size) >
+<#if (numChildElemenst > 0)>
+ <${nsp}:bindings <@writeAttribs
attribs="beanId,beanClass@class,createOnElement,createOnElementNS"/>>
+ <#list bean.valueBindings as valueBinding>
+ <#assign numDecodeParams = (valueBinding.decodeParams?size) >
+ <#if (numDecodeParams > 0)>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,dataNS,decoder,defaultVal@default"/>>
+ <#list valueBinding.decodeParams as decodeParam>
+ <${nsp}:decodeParam <@writeAttribs bean=decodeParam
attribs="name"/>>${decodeParam.value}</${nsp}:decodeParam>
+ </#list>
+ </${nsp}:value>
+ <#else>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,dataNS,decoder,defaultVal@default"/>
/>
+ </#if>
+ </#list>
+ <#list bean.wireBindings as wireBinding>
+ <${nsp}:wiring <@writeAttribs bean=wireBinding
attribs="property,setterMethod,beanIdRef,wireOnElement,wireOnElementNS"/>
/>
+ </#list>
+ <#list bean.expressionBindings as expressionBinding>
+ <${nsp}:expression <@writeAttribs bean=expressionBinding
attribs="property,setterMethod,execOnElement,execOnElementNS"/> />
+ </#list>
+ </${nsp}:bindings>
+<#else>
+ <${nsp}:bindings <@writeAttribs
attribs="beanId,beanClass@class,createOnElement,createOnElementNS"/> />
+</#if>
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,67 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!-- Binding configs (unmarshal)... -->
+
+ <jb:bean beanId="javaBean"
class="org.smooks.model.javabean.Bean" createOnElement="bindings">
+ <jb:value property="beanId" data="bindings/@beanId" />
+ <jb:value property="beanClass" data="bindings/@class"
/>
+ <jb:value property="createOnElement"
data="bindings/@createOnElement" />
+ <jb:value property="createOnElementNS"
data="bindings/@createOnElementNS" />
+
+ <jb:wiring property="valueBindings"
beanIdRef="valueBindings" />
+ <jb:wiring property="expressionBindings"
beanIdRef="expressionBindings" />
+ <jb:wiring property="wireBindings"
beanIdRef="wireBindings" />
+ </jb:bean>
+
+ <jb:bean beanId="valueBindings" class="java.util.ArrayList"
createOnElement="bindings">
+ <jb:wiring beanIdRef="valueBinding" />
+ </jb:bean>
+ <jb:bean beanId="valueBinding"
class="org.smooks.model.javabean.Value"
createOnElement="bindings/value">
+ <jb:value property="property"
data="bindings/value/@property" />
+ <jb:value property="setterMethod"
data="bindings/value/@setterMethod" />
+ <jb:value property="data" data="bindings/value/@data"
/>
+ <jb:value property="dataNS" data="bindings/value/@dataNS"
/>
+ <jb:value property="decoder"
data="bindings/value/@decoder" />
+ <jb:value property="defaultVal"
data="bindings/value/@default" />
+ <jb:wiring property="decodeParams"
beanIdRef="decodeParams" />
+ </jb:bean>
+ <jb:bean beanId="decodeParams" class="java.util.ArrayList"
createOnElement="bindings/value">
+ <jb:wiring beanIdRef="decodeParam" />
+ </jb:bean>
+ <jb:bean beanId="decodeParam"
class="org.smooks.model.javabean.DecodeParam"
createOnElement="bindings/value/decodeParam">
+ <jb:value property="name" data="decodeParam/@name" />
+ <jb:value property="value" data="decodeParam" />
+ </jb:bean>
+
+ <jb:bean beanId="expressionBindings"
class="java.util.ArrayList" createOnElement="bindings">
+ <jb:wiring beanIdRef="expressionBinding" />
+ </jb:bean>
+ <jb:bean beanId="expressionBinding"
class="org.smooks.model.javabean.Expression"
createOnElement="bindings/expression">
+ <jb:value property="property"
data="bindings/expression/@property" />
+ <jb:value property="setterMethod"
data="bindings/expression/@setterMethod" />
+ <jb:value property="execOnElement"
data="bindings/expression/@execOnElement" />
+ <jb:value property="execOnElementNS"
data="bindings/expression/@execOnElementNS" />
+ <jb:value property="initVal"
data="bindings/expression/@initVal" />
+ </jb:bean>
+
+ <jb:bean beanId="wireBindings" class="java.util.ArrayList"
createOnElement="bindings">
+ <jb:wiring beanIdRef="wireBinding" />
+ </jb:bean>
+ <jb:bean beanId="wireBinding"
class="org.smooks.model.javabean.Wiring"
createOnElement="bindings/wiring">
+ <jb:value property="property"
data="bindings/wiring/@property" />
+ <jb:value property="setterMethod"
data="bindings/wiring/@setterMethod" />
+ <jb:value property="beanIdRef"
data="bindings/wiring/@beanIdRef" />
+ <jb:value property="wireOnElement"
data="bindings/wiring/@wireOnElement" />
+ <jb:value property="wireOnElementNS"
data="bindings/wiring/@wireOnElementNS" />
+ </jb:bean>
+
+ <!-- Writers (marshal)... -->
+
+ <dmb:writer beanId="javaBean"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_1/v1.1.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,25 @@
+<#assign numChildElemenst = (bean.valueBindings?size + bean.wireBindings?size +
bean.expressionBindings?size) >
+<#if (numChildElemenst > 0)>
+ <${nsp}:bean <@writeAttribs
attribs="beanId,beanClass@class,createOnElement,createOnElementNS"/>>
+ <#list bean.valueBindings as valueBinding>
+ <#assign numDecodeParams = (valueBinding.decodeParams?size) >
+ <#if (numDecodeParams > 0)>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,dataNS,decoder,defaultVal@default"/>>
+ <#list valueBinding.decodeParams as decodeParam>
+ <${nsp}:decodeParam <@writeAttribs bean=decodeParam
attribs="name"/>>${decodeParam.value}</${nsp}:decodeParam>
+ </#list>
+ </${nsp}:value>
+ <#else>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,dataNS,decoder,defaultVal@default"/>
/>
+ </#if>
+ </#list>
+ <#list bean.wireBindings as wireBinding>
+ <${nsp}:wiring <@writeAttribs bean=wireBinding
attribs="property,setterMethod,beanIdRef,wireOnElement,wireOnElementNS"/>
/>
+ </#list>
+ <#list bean.expressionBindings as expressionBinding>
+ <${nsp}:expression <@writeAttribs bean=expressionBinding
attribs="property,setterMethod,execOnElement,execOnElementNS,initVal"/>
/>
+ </#list>
+ </${nsp}:bean>
+<#else>
+ <${nsp}:bean <@writeAttribs
attribs="beanId,beanClass@class,createOnElement,createOnElementNS"/> />
+</#if>
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,67 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!-- Binding configs (unmarshal)... -->
+
+ <jb:bean beanId="javaBean"
class="org.smooks.model.javabean.Bean" createOnElement="bean">
+ <jb:value property="beanId" data="bean/@beanId" />
+ <jb:value property="beanClass" data="bean/@class" />
+ <jb:value property="createOnElement"
data="bean/@createOnElement" />
+ <jb:value property="createOnElementNS"
data="bean/@createOnElementNS" />
+
+ <jb:wiring property="valueBindings"
beanIdRef="valueBindings" />
+ <jb:wiring property="expressionBindings"
beanIdRef="expressionBindings" />
+ <jb:wiring property="wireBindings"
beanIdRef="wireBindings" />
+ </jb:bean>
+
+ <jb:bean beanId="valueBindings" class="java.util.ArrayList"
createOnElement="bean">
+ <jb:wiring beanIdRef="valueBinding" />
+ </jb:bean>
+ <jb:bean beanId="valueBinding"
class="org.smooks.model.javabean.Value"
createOnElement="bean/value">
+ <jb:value property="property" data="bean/value/@property"
/>
+ <jb:value property="setterMethod"
data="bean/value/@setterMethod" />
+ <jb:value property="data" data="bean/value/@data" />
+ <jb:value property="dataNS" data="bean/value/@dataNS"
/>
+ <jb:value property="decoder" data="bean/value/@decoder"
/>
+ <jb:value property="defaultVal" data="bean/value/@default"
/>
+ <jb:wiring property="decodeParams"
beanIdRef="decodeParams" />
+ </jb:bean>
+ <jb:bean beanId="decodeParams" class="java.util.ArrayList"
createOnElement="bean/value">
+ <jb:wiring beanIdRef="decodeParam" />
+ </jb:bean>
+ <jb:bean beanId="decodeParam"
class="org.smooks.model.javabean.DecodeParam"
createOnElement="bean/value/decodeParam">
+ <jb:value property="name" data="decodeParam/@name" />
+ <jb:value property="value" data="decodeParam" />
+ </jb:bean>
+
+ <jb:bean beanId="expressionBindings"
class="java.util.ArrayList" createOnElement="bean">
+ <jb:wiring beanIdRef="expressionBinding" />
+ </jb:bean>
+ <jb:bean beanId="expressionBinding"
class="org.smooks.model.javabean.Expression"
createOnElement="bean/expression">
+ <jb:value property="property"
data="bean/expression/@property" />
+ <jb:value property="setterMethod"
data="bean/expression/@setterMethod" />
+ <jb:value property="execOnElement"
data="bean/expression/@execOnElement" />
+ <jb:value property="execOnElementNS"
data="bean/expression/@execOnElementNS" />
+ <jb:value property="initVal"
data="bean/expression/@initVal" />
+ </jb:bean>
+
+ <jb:bean beanId="wireBindings" class="java.util.ArrayList"
createOnElement="bean">
+ <jb:wiring beanIdRef="wireBinding" />
+ </jb:bean>
+ <jb:bean beanId="wireBinding"
class="org.smooks.model.javabean.Wiring"
createOnElement="bean/wiring">
+ <jb:value property="property" data="bean/wiring/@property"
/>
+ <jb:value property="setterMethod"
data="bean/wiring/@setterMethod" />
+ <jb:value property="beanIdRef"
data="bean/wiring/@beanIdRef" />
+ <jb:value property="wireOnElement"
data="bean/wiring/@wireOnElement" />
+ <jb:value property="wireOnElementNS"
data="bean/wiring/@wireOnElementNS" />
+ </jb:bean>
+
+ <!-- Writers (marshal)... -->
+
+ <dmb:writer beanId="javaBean"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_2/v1.2.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.ftl
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.ftl
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.ftl 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,25 @@
+<#assign numChildElemenst = (bean.valueBindings?size + bean.wireBindings?size +
bean.expressionBindings?size) >
+<#if (numChildElemenst > 0)>
+ <${nsp}:bean <@writeAttribs
attribs="beanId,beanClass@class,createOnElement"/>>
+ <#list bean.valueBindings as valueBinding>
+ <#assign numDecodeParams = (valueBinding.decodeParams?size) >
+ <#if (numDecodeParams > 0)>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,decoder,defaultVal@default"/>>
+ <#list valueBinding.decodeParams as decodeParam>
+ <${nsp}:decodeParam <@writeAttribs bean=decodeParam
attribs="name"/>>${decodeParam.value}</${nsp}:decodeParam>
+ </#list>
+ </${nsp}:value>
+ <#else>
+ <${nsp}:value <@writeAttribs bean=valueBinding
attribs="property,setterMethod,data,decoder,defaultVal@default"/> />
+ </#if>
+ </#list>
+ <#list bean.wireBindings as wireBinding>
+ <${nsp}:wiring <@writeAttribs bean=wireBinding
attribs="property,setterMethod,beanIdRef,wireOnElement"/> />
+ </#list>
+ <#list bean.expressionBindings as expressionBinding>
+ <${nsp}:expression <@writeAttribs bean=expressionBinding
attribs="property,setterMethod,execOnElement,initVal"/> />
+ </#list>
+ </${nsp}:bean>
+<#else>
+ <${nsp}:bean <@writeAttribs
attribs="beanId,beanClass@class,createOnElement"/> />
+</#if>
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,67 @@
+<?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.4.xsd"
+
xmlns:dmb="http://www.milyn.org/xsd/smooks/dmb-1.4.xsd">
+
+ <!-- Binding configs (unmarshal)... -->
+
+ <jb:bean beanId="javaBean"
class="org.smooks.model.javabean.Bean" createOnElement="bean">
+ <jb:value property="beanId" data="bean/@beanId" />
+ <jb:value property="beanClass" data="bean/@class" />
+ <jb:value property="createOnElement"
data="bean/@createOnElement" />
+ <jb:value property="createOnElementNS"
data="bean/@createOnElementNS" />
+
+ <jb:wiring property="valueBindings"
beanIdRef="valueBindings" />
+ <jb:wiring property="expressionBindings"
beanIdRef="expressionBindings" />
+ <jb:wiring property="wireBindings"
beanIdRef="wireBindings" />
+ </jb:bean>
+
+ <jb:bean beanId="valueBindings" class="java.util.ArrayList"
createOnElement="bean">
+ <jb:wiring beanIdRef="valueBinding" />
+ </jb:bean>
+ <jb:bean beanId="valueBinding"
class="org.smooks.model.javabean.Value"
createOnElement="bean/value">
+ <jb:value property="property" data="bean/value/@property"
/>
+ <jb:value property="setterMethod"
data="bean/value/@setterMethod" />
+ <jb:value property="data" data="bean/value/@data" />
+ <jb:value property="dataNS" data="bean/value/@dataNS"
/>
+ <jb:value property="decoder" data="bean/value/@decoder"
/>
+ <jb:value property="defaultVal" data="bean/value/@default"
/>
+ <jb:wiring property="decodeParams"
beanIdRef="decodeParams" />
+ </jb:bean>
+ <jb:bean beanId="decodeParams" class="java.util.ArrayList"
createOnElement="bean/value">
+ <jb:wiring beanIdRef="decodeParam" />
+ </jb:bean>
+ <jb:bean beanId="decodeParam"
class="org.smooks.model.javabean.DecodeParam"
createOnElement="bean/value/decodeParam">
+ <jb:value property="name" data="decodeParam/@name" />
+ <jb:value property="value" data="decodeParam" />
+ </jb:bean>
+
+ <jb:bean beanId="expressionBindings"
class="java.util.ArrayList" createOnElement="bean">
+ <jb:wiring beanIdRef="expressionBinding" />
+ </jb:bean>
+ <jb:bean beanId="expressionBinding"
class="org.smooks.model.javabean.Expression"
createOnElement="bean/expression">
+ <jb:value property="property"
data="bean/expression/@property" />
+ <jb:value property="setterMethod"
data="bean/expression/@setterMethod" />
+ <jb:value property="execOnElement"
data="bean/expression/@execOnElement" />
+ <jb:value property="execOnElementNS"
data="bean/expression/@execOnElementNS" />
+ <jb:value property="initVal"
data="bean/expression/@initVal" />
+ </jb:bean>
+
+ <jb:bean beanId="wireBindings" class="java.util.ArrayList"
createOnElement="bean">
+ <jb:wiring beanIdRef="wireBinding" />
+ </jb:bean>
+ <jb:bean beanId="wireBinding"
class="org.smooks.model.javabean.Wiring"
createOnElement="bean/wiring">
+ <jb:value property="property" data="bean/wiring/@property"
/>
+ <jb:value property="setterMethod"
data="bean/wiring/@setterMethod" />
+ <jb:value property="beanIdRef"
data="bean/wiring/@beanIdRef" />
+ <jb:value property="wireOnElement"
data="bean/wiring/@wireOnElement" />
+ <jb:value property="wireOnElementNS"
data="bean/wiring/@wireOnElementNS" />
+ </jb:bean>
+
+ <!-- Writers (marshal)... -->
+
+ <dmb:writer beanId="javaBean"
class="org.milyn.javabean.dynamic.serialize.freemarker.FreeMarkerBeanWriter">
+ <param
name="template">/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.ftl</param>
+ </dmb:writer>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/javabean/v1_3/v1.3.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/SmooksModelActivator.java
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/SmooksModelActivator.java
(rev 0)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/SmooksModelActivator.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,30 @@
+/**
+ * JBoss, Home of Professional Open Source
+ * Copyright 2009, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2009, JBoss Inc.
+ */
+package org.jboss.tools.smooks.model.plugin;
+
+import org.eclipse.core.runtime.Plugin;
+
+/**
+ * Plugin Activator.
+ *
+ * @author <a
href="mailto:tom.fennelly@jboss.com">tom.fennelly@jboss.com</a>
+ */
+public class SmooksModelActivator extends Plugin {
+}
Property changes on:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.model/src/org/jboss/tools/smooks/model/plugin/SmooksModelActivator.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Modified:
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.runtime/META-INF/MANIFEST.MF
===================================================================
---
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.runtime/META-INF/MANIFEST.MF 2010-06-04
13:38:00 UTC (rev 22545)
+++
workspace/smooks-dmb/smooks/plugins/org.jboss.tools.smooks.runtime/META-INF/MANIFEST.MF 2010-06-04
14:49:45 UTC (rev 22546)
@@ -41,7 +41,14 @@
org.milyn.delivery.sax,
org.milyn.io,
org.milyn.javabean,
+ org.milyn.javabean.context,
org.milyn.javabean.decoders,
+ org.milyn.javabean.dynamic,
+ org.milyn.javabean.dynamic.ext,
+ org.milyn.javabean.dynamic.resolvers,
+ org.milyn.javabean.dynamic.serialize,
+ org.milyn.javabean.dynamic.serialize.freemarker,
+ org.milyn.javabean.dynamic.visitor,
org.milyn.json,
org.milyn.payload,
org.milyn.smooks.edi,
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/META-INF/MANIFEST.MF
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/META-INF/MANIFEST.MF
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/META-INF/MANIFEST.MF 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,15 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: %Bundle-Name.0
+Bundle-SymbolicName: org.jboss.tools.smooks.model.test
+Bundle-Version: 1.1.0.qualifier
+Bundle-ClassPath: lib/xmlunit-1.1.jar,
+ .
+Bundle-Vendor: %Bundle-Vendor.0
+Bundle-Localization: plugin
+Require-Bundle: org.junit,
+ org.jboss.tools.smooks.runtime,
+ org.eclipse.core.runtime,
+ org.jboss.tools.smooks.model
+Bundle-RequiredExecutionEnvironment: J2SE-1.5
+Bundle-ActivationPolicy: lazy
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/build.properties
===================================================================
--- workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/build.properties
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/build.properties 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,7 @@
+output.. = bin/
+bin.includes = META-INF/,\
+ plugin.properties,\
+ projects/,\
+ lib/xmlunit-1.1.jar,\
+ .
+source.. = src/
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/lib/xmlunit-1.1.jar
===================================================================
(Binary files differ)
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/lib/xmlunit-1.1.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/plugin.properties
===================================================================
--- workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/plugin.properties
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/plugin.properties 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,3 @@
+#Properties file for org.jboss.tools.smooks.test
+Bundle-Vendor.0 = JBoss by Red Hat
+Bundle-Name.0 = Smooks Tools Model Test Plug-in
\ No newline at end of file
Added: workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/pom.xml
===================================================================
--- workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/pom.xml
(rev 0)
+++ workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/pom.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,14 @@
+<project
+xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
http://maven.apache.org/xsd/maven-4.0.0.xsd"
xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <relativePath>../../../parent-pom.xml</relativePath>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.parent.pom</artifactId>
+ <version>0.0.1-SNAPSHOT</version>
+ </parent>
+ <groupId>org.jboss.tools</groupId>
+ <artifactId>org.jboss.tools.smooks.model.test</artifactId>
+ <version>1.1.0-SNAPSHOT</version>
+ <packaging>eclipse-plugin</packaging>
+</project>
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/pom.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_2_Test.java
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_2_Test.java
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_2_Test.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,103 @@
+/*
+ * Milyn - Copyright (C) 2006 - 2010
+ *
+ * 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 org.jboss.tools.smooks.model.csv;
+
+import junit.framework.TestCase;
+import org.custommonkey.xmlunit.XMLAssert;
+import org.custommonkey.xmlunit.XMLUnit;
+import org.jboss.tools.smooks.model.core.SmooksModel;
+import org.milyn.javabean.dynamic.Model;
+import org.milyn.javabean.dynamic.ModelBuilder;
+import org.xml.sax.SAXException;
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.io.StringWriter;
+
+/**
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class CSVReader_1_2_Test extends TestCase {
+
+ private ModelBuilder modelBuilder;
+
+ public CSVReader_1_2_Test() throws IOException, SAXException {
+ modelBuilder = new ModelBuilder(SmooksModel.MODEL_DESCRIPTOR, false);
+ }
+
+ public void test_01() throws IOException, SAXException {
+ test("v1_2/csv-config-01.xml");
+ }
+
+ public void test_02() throws IOException, SAXException {
+ test("v1_2/csv-config-02.xml");
+ }
+
+ public void test_03() throws IOException, SAXException {
+ test("v1_2/csv-config-03.xml");
+ }
+
+ public void test_04() throws IOException, SAXException {
+ test("v1_2/csv-config-04.xml");
+ }
+
+ public void test(String messageFile) throws IOException, SAXException {
+ Model<SmooksModel> model =
modelBuilder.readModel(getClass().getResourceAsStream(messageFile), SmooksModel.class);
+
+ StringWriter modelWriter = new StringWriter();
+ model.writeModel(modelWriter);
+// System.out.println(modelWriter);
+ XMLUnit.setIgnoreWhitespace( true );
+ XMLAssert.assertXMLEqual(new
InputStreamReader(getClass().getResourceAsStream(messageFile)), new
StringReader(modelWriter.toString()));
+ }
+
+ public void test_programmatic_build() throws IOException, SAXException {
+ SmooksModel smooksModel = new SmooksModel();
+ Model<SmooksModel> model = new Model<SmooksModel>(smooksModel,
modelBuilder);
+ CSVReader csvReader = new CSVReader();
+
+ // Populate it...
+ csvReader.setFields("name,address,age");
+ csvReader.setRootElementName("people");
+ csvReader.setRecordElementName("person");
+ csvReader.setIndent(true);
+
+ // Set strict on the model... should have no effect as it's not supported in
v1.2...
+ csvReader.setStrict(true);
+
+ // Need to register all the "namespace root" bean instances...
+
model.registerBean(csvReader).setNamespace("http://www.milyn.org/xsd...;
+
+ // Add it in the appropriate place in the object graph....
+ smooksModel.getReaders().add(csvReader);
+
+ ListBinding listBinding = new ListBinding();
+ listBinding.setBeanId("beanX");
+ listBinding.setBeanClass("com.acme.XClass");
+
+ // Add the ListBinding to the CSVReader, but no need to add it to the model since
it is
+ // not a "namespace root" object...
+ csvReader.setListBinding(listBinding);
+
+ StringWriter modelWriter = new StringWriter();
+ model.writeModel(modelWriter);
+// System.out.println(modelWriter);
+ XMLUnit.setIgnoreWhitespace( true );
+ XMLAssert.assertXMLEqual(new
InputStreamReader(getClass().getResourceAsStream("v1_2/csv-config-03.xml")), new
StringReader(modelWriter.toString()));
+ }
+}
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_2_Test.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_3_Test.java
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_3_Test.java
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_3_Test.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,104 @@
+/*
+ * Milyn - Copyright (C) 2006 - 2010
+ *
+ * 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 org.jboss.tools.smooks.model.csv;
+
+import junit.framework.TestCase;
+import org.custommonkey.xmlunit.XMLAssert;
+import org.custommonkey.xmlunit.XMLUnit;
+import org.jboss.tools.smooks.model.core.SmooksModel;
+import org.milyn.javabean.dynamic.Model;
+import org.milyn.javabean.dynamic.ModelBuilder;
+import org.xml.sax.SAXException;
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.io.StringWriter;
+
+/**
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class CSVReader_1_3_Test extends TestCase {
+
+ private ModelBuilder modelBuilder;
+
+ public CSVReader_1_3_Test() throws IOException, SAXException {
+ modelBuilder = new ModelBuilder(SmooksModel.MODEL_DESCRIPTOR, false);
+ }
+
+ public void test_01() throws IOException, SAXException {
+ test("v1_3/csv-config-01.xml");
+ }
+
+ public void test_02() throws IOException, SAXException {
+ test("v1_3/csv-config-02.xml");
+ }
+
+ public void test_03() throws IOException, SAXException {
+ test("v1_3/csv-config-03.xml");
+ }
+
+ public void test_04() throws IOException, SAXException {
+ test("v1_3/csv-config-04.xml");
+ }
+
+ public void test_05() throws IOException, SAXException {
+ test("v1_3/csv-config-05.xml");
+ }
+
+ public void test(String messageFile) throws IOException, SAXException {
+ Model<SmooksModel> model =
modelBuilder.readModel(getClass().getResourceAsStream(messageFile), SmooksModel.class);
+
+ StringWriter modelWriter = new StringWriter();
+ model.writeModel(modelWriter);
+// System.out.println(modelWriter);
+ XMLUnit.setIgnoreWhitespace( true );
+ XMLAssert.assertXMLEqual(new
InputStreamReader(getClass().getResourceAsStream(messageFile)), new
StringReader(modelWriter.toString()));
+ }
+
+ public void test_programmatic_build() throws IOException, SAXException {
+ SmooksModel smooksModel = new SmooksModel();
+ Model<SmooksModel> model = new Model<SmooksModel>(smooksModel,
modelBuilder);
+ CSVReader csvReader = new CSVReader();
+
+ // Populate it...
+ csvReader.setFields("name,address,age");
+ csvReader.setRootElementName("people");
+ csvReader.setRecordElementName("person");
+ csvReader.setIndent(true);
+
+ // Need to register all the "namespace root" bean instances...
+ model.registerBean(csvReader);
+
+ // Add it in the appropriate place in the object graph....
+ smooksModel.getReaders().add(csvReader);
+
+ ListBinding listBinding = new ListBinding();
+ listBinding.setBeanId("beanX");
+ listBinding.setBeanClass("com.acme.XClass");
+
+ // Add the ListBinding to the CSVReader, but no need to add it to the model since
it is
+ // not a "namespace root" object...
+ csvReader.setListBinding(listBinding);
+
+ StringWriter modelWriter = new StringWriter();
+ model.writeModel(modelWriter);
+// System.out.println(modelWriter);
+ XMLUnit.setIgnoreWhitespace( true );
+ XMLAssert.assertXMLEqual(new
InputStreamReader(getClass().getResourceAsStream("v1_3/csv-config-03.xml")), new
StringReader(modelWriter.toString()));
+ }
+}
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/CSVReader_1_3_Test.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-01.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-01.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-01.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,7 @@
+<?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.2.xsd">
+
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-02.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-02.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-02.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,10 @@
+<?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.2.xsd">
+
+ <!-- CSV Reader config... -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:singleBinding beanId="beanX" class="com.acme.XClass"
/>
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-02.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-03.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-03.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-03.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,9 @@
+<?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.2.xsd">
+
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:listBinding beanId="beanX" class="com.acme.XClass"
/>
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-03.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-04.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-04.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-04.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,10 @@
+<?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.2.xsd">
+
+ <!-- CSV Reader config... -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:mapBinding beanId="beanX" class="com.acme.XClass"
keyField="name" />
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_2/csv-config-04.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-01.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-01.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-01.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,7 @@
+<?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.3.xsd">
+
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-02.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-02.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-02.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,10 @@
+<?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.3.xsd">
+
+ <!-- CSV Reader config... -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:singleBinding beanId="beanX" class="com.acme.XClass"
/>
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-02.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-03.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-03.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-03.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,9 @@
+<?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.3.xsd">
+
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:listBinding beanId="beanX" class="com.acme.XClass"
/>
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-03.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-04.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-04.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-04.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,10 @@
+<?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.3.xsd">
+
+ <!-- CSV Reader config... -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true">
+ <csv:mapBinding beanId="beanX" class="com.acme.XClass"
keyField="name" />
+ </csv:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-04.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-05.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-05.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-05.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,18 @@
+<?xml version="1.0"?>
+<smooks-resource-list
xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+
xmlns:csv12="http://www.milyn.org/xsd/smooks/csv-1.2.xsd"
+
xmlns:csv13="http://www.milyn.org/xsd/smooks/csv-1.3.xsd">
+
+ <!-- Mixing configs from 2 versions of the same namespace... -->
+
+ <!-- 1.2 config -->
+ <csv12:reader fields="name,address,age"
rootElementName="people" recordElementName="person"
indent="true">
+ <csv12:mapBinding beanId="beanX" class="com.acme.XClass"
keyField="name" />
+ </csv12:reader>
+
+ <!-- 1.3 config -->
+ <csv13:reader fields="name,address,age"
rootElementName="people" recordElementName="person"
indent="true">
+ <csv13:mapBinding beanId="beanX" class="com.acme.XClass"
keyField="name" />
+ </csv13:reader>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/csv/v1_3/csv-config-05.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/BeanTest.java
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/BeanTest.java
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/BeanTest.java 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,74 @@
+/*
+ * Milyn - Copyright (C) 2006 - 2010
+ *
+ * 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 org.jboss.tools.smooks.model.javabean;
+
+import junit.framework.TestCase;
+import org.custommonkey.xmlunit.XMLAssert;
+import org.custommonkey.xmlunit.XMLUnit;
+import org.jboss.tools.smooks.model.core.SmooksModel;
+import org.milyn.javabean.dynamic.Model;
+import org.milyn.javabean.dynamic.ModelBuilder;
+import org.xml.sax.SAXException;
+
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.StringReader;
+import java.io.StringWriter;
+
+/**
+ * @author <a
href="mailto:tom.fennelly@gmail.com">tom.fennelly@gmail.com</a>
+ */
+public class BeanTest extends TestCase {
+
+ private ModelBuilder modelBuilder;
+
+ public BeanTest() throws IOException, SAXException {
+ modelBuilder = new ModelBuilder(SmooksModel.MODEL_DESCRIPTOR, false);
+ }
+
+ public void test_v11() throws IOException, SAXException {
+ test("v1_1/config-01.xml");
+ }
+
+ public void test_v12_01() throws IOException, SAXException {
+ test("v1_2/config-01.xml");
+ }
+
+ public void test_v12_02() throws IOException, SAXException {
+ // mixed namespaces...
+ test("v1_2/config-02.xml");
+ }
+
+ public void test_v13_01() throws IOException, SAXException {
+ test("v1_3/config-01.xml");
+ }
+
+ public void test_v13_02() throws IOException, SAXException {
+ // mixed namespaces...
+ test("v1_3/config-02.xml");
+ }
+
+ public void test(String messageFile) throws IOException, SAXException {
+ Model<SmooksModel> model =
modelBuilder.readModel(getClass().getResourceAsStream(messageFile), SmooksModel.class);
+
+ StringWriter modelWriter = new StringWriter();
+ model.writeModel(modelWriter);
+ System.out.println(modelWriter);
+ XMLUnit.setIgnoreWhitespace( true );
+ XMLAssert.assertXMLEqual(new
InputStreamReader(getClass().getResourceAsStream(messageFile)), new
StringReader(modelWriter.toString()));
+ }
+}
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/BeanTest.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/config-01.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/config-01.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/config-01.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,55 @@
+<?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:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+
+ <!-- The reader -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+ <!--
+ 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".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb:bindings beanId="order" class="example.model.Order"
createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItems"
/>
+ </jb:bindings>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bindings beanId="orderItems" class="java.util.ArrayList"
createOnElement="order" createOnElementNS="http://boohoo">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bindings>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of
the <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bindings beanId="header" class="example.model.Header"
createOnElement="header">
+ <jb:value property="date" decoder="Date"
data="header/date" dataNS="http://boohoo">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z
yyyy</jb:decodeParam>
+ <jb:decodeParam
name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam
name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ <jb:value property="customerNumber" decoder="Long"
data="header/customer/@number" setterMethod="setCustomerNumber" />
+ <jb:value property="customerName" data="header/customer"
/>
+ <jb:expression property="x" setterMethod="setX"
execOnElement="xEl" execOnElementNS="http://x" />
+ </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 "orderItems" ArrayList bean.
+ -->
+ <jb:bindings beanId="orderItem"
class="example.model.OrderItem" createOnElement="order-item">
+ <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>
+
+ <!-- Something else... -->
+ <jb:bindings beanId="somethingX" class="example.model.X"
createOnElement="xxx" />
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_1/config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-01.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-01.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-01.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,55 @@
+<?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.2.xsd"
+
xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+
+ <!-- The reader -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+ <!--
+ 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".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb:bean beanId="order" class="example.model.Order"
createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItems"
/>
+ </jb:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItems" class="java.util.ArrayList"
createOnElement="order" createOnElementNS="http://boohoo">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of
the <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="example.model.Header"
createOnElement="header">
+ <jb:value property="date" decoder="Date"
data="header/date" dataNS="http://boohoo">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z
yyyy</jb:decodeParam>
+ <jb:decodeParam
name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam
name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ <jb:value property="customerNumber" decoder="Long"
data="header/customer/@number" setterMethod="setCustomerNumber" />
+ <jb:value property="customerName" data="header/customer"
/>
+ <jb:expression property="x" setterMethod="setX"
execOnElement="xEl" execOnElementNS="http://x" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start
of the <order-item> element.
+ This bean is wired into the "orderItems" ArrayList bean.
+ -->
+ <jb:bean beanId="orderItem" class="example.model.OrderItem"
createOnElement="order-item">
+ <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:bean>
+
+ <!-- Something else... -->
+ <jb:bean beanId="somethingX" class="example.model.X"
createOnElement="xxx" />
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-02.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-02.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-02.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,28 @@
+<?xml version="1.0"?>
+<smooks-resource-list
xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+
xmlns:jb11="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+
xmlns:jb12="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+
xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+
+ <!-- The reader -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+ <!--
+ 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".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb12:bean beanId="order" class="example.model.Order"
createOnElement="order">
+ <jb12:wiring property="header" beanIdRef="header" />
+ <jb12:wiring property="orderItems" beanIdRef="orderItems"
/>
+ </jb12:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb11:bindings beanId="orderItems" class="java.util.ArrayList"
createOnElement="order" createOnElementNS="http://boohoo">
+ <jb11:wiring beanIdRef="orderItem" />
+ </jb11:bindings>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_2/config-02.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-01.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-01.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-01.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,55 @@
+<?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.3.xsd"
+
xmlns:csv="http://www.milyn.org/xsd/smooks/csv-1.2.xsd">
+
+ <!-- The reader -->
+ <csv:reader fields="name,address,age" rootElementName="people"
recordElementName="person" indent="true"/>
+
+ <!--
+ 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".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb:bean beanId="order" class="example.model.Order"
createOnElement="order">
+ <jb:wiring property="header" beanIdRef="header" />
+ <jb:wiring property="orderItems" beanIdRef="orderItems"
/>
+ </jb:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="orderItems" class="java.util.ArrayList"
createOnElement="order">
+ <jb:wiring beanIdRef="orderItem" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.Header" bean instance when we visit the start of
the <header> element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb:bean beanId="header" class="example.model.Header"
createOnElement="header">
+ <jb:value property="date" decoder="Date"
data="header/date">
+ <jb:decodeParam name="format">EEE MMM dd HH:mm:ss z
yyyy</jb:decodeParam>
+ <jb:decodeParam
name="locale-language">en</jb:decodeParam>
+ <jb:decodeParam
name="locale-country">IE</jb:decodeParam>
+ </jb:value>
+ <jb:value property="customerNumber" decoder="Long"
data="header/customer/@number" setterMethod="setCustomerNumber" />
+ <jb:value property="customerName" data="header/customer"
/>
+ <jb:expression property="x" setterMethod="setX"
execOnElement="xEl" />
+ </jb:bean>
+
+ <!--
+ Create an "example.beans.OrderItem" bean instance when we visit the start
of the <order-item> element.
+ This bean is wired into the "orderItems" ArrayList bean.
+ -->
+ <jb:bean beanId="orderItem" class="example.model.OrderItem"
createOnElement="order-item">
+ <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:bean>
+
+ <!-- Something else... -->
+ <jb:bean beanId="somethingX" class="example.model.X"
createOnElement="xxx" />
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-01.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-02.xml
===================================================================
---
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-02.xml
(rev 0)
+++
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-02.xml 2010-06-04
14:49:45 UTC (rev 22546)
@@ -0,0 +1,41 @@
+<?xml version="1.0"?>
+<smooks-resource-list
xmlns="http://www.milyn.org/xsd/smooks-1.1.xsd"
+
xmlns:jb11="http://www.milyn.org/xsd/smooks/javabean-1.1.xsd"
+
xmlns:jb12="http://www.milyn.org/xsd/smooks/javabean-1.2.xsd"
+
xmlns:jb13="http://www.milyn.org/xsd/smooks/javabean-1.3.xsd"
+
xmlns:csv12="http://www.milyn.org/xsd/smooks/csv-1.2.xsd"
+
xmlns:csv13="http://www.milyn.org/xsd/smooks/csv-1.3.xsd">
+
+ <!-- Reader from v1.2 -->
+ <csv12:reader fields="name,address,age"
rootElementName="people" recordElementName="person"
indent="true"/>
+
+ <!-- Reader from v1.3 -->
+ <csv13:reader fields="name,address,age"
rootElementName="people" recordElementName="person"
indent="true" strict="true"/>
+
+ <!--
+ 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".
+ Wire in the "header" and "orderItems" beans.
+ -->
+ <jb12:bean beanId="order" class="example.model.Order"
createOnElement="order">
+ <jb12:wiring property="header" beanIdRef="header" />
+ <jb12:wiring property="orderItems" beanIdRef="orderItems"
/>
+ </jb12:bean>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb11:bindings beanId="orderItems" class="java.util.ArrayList"
createOnElement="order" createOnElementNS="http://boohoo">
+ <jb11:wiring beanIdRef="orderItem" />
+ </jb11:bindings>
+
+ <!--
+ Create an ArrayList bean instance when we visit the start of the <order>
element.
+ This bean is wired into the "order" bean.
+ -->
+ <jb13:bean beanId="orderItems" class="java.util.ArrayList"
createOnElement="order">
+ <jb13:wiring beanIdRef="orderItem" />
+ </jb13:bean>
+
+</smooks-resource-list>
\ No newline at end of file
Property changes on:
workspace/smooks-dmb/smooks/tests/org.jboss.tools.smooks.model.test/src/org/jboss/tools/smooks/model/javabean/v1_3/config-02.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF