Mail Archive Home | clif-commits List | Febuary 2007 Index
| <-- Date Index --> | <-- Thread Index --> |
Date: Wednesday, February 21, 2007 @ 13:40:37
Author: dillense
Path: /cvsroot/clif/dist/isac/plugins/CSVProvider
Modified: gui.xml plugin.properties plugin.xml
refactoring to the New ISAC plugin wizard conventions.
-------------------+
gui.xml | 87 +++++++++++++++++++++--------------------
plugin.properties | 2
plugin.xml | 110 ++++++++++++++++++++++++----------------------------
3 files changed, 98 insertions(+), 101 deletions(-)
Index: dist/isac/plugins/CSVProvider/gui.xml
diff -u dist/isac/plugins/CSVProvider/gui.xml:1.5
dist/isac/plugins/CSVProvider/gui.xml:1.6
--- dist/isac/plugins/CSVProvider/gui.xml:1.5 Tue Feb 6 17:26:57 2007
+++ dist/isac/plugins/CSVProvider/gui.xml Wed Feb 21 13:40:33 2007
@@ -1,41 +1,46 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE gui PUBLIC "-//objectweb.org//DTD CLIF IsacGUI 1.0//EN"
"classpath:org/objectweb/clif/scenario/isac/dtd/gui.dtd">
-
-<gui>
- <object name="CSVProvider" >
- <params>
- <param name="filename" label="filename" type="String">
- <field />
- </param>
- <param name="separator" label="separator"
type="String">
- <field text="," />
- </param>
- <param name="fields" label="fields" type="String">
- <field />
- </param>
- <param name="macintosh_line_separator" label="MacOS9
line separator" type="String">
- <checkbox>
- <choice value="enable" default="false" />
- </checkbox>
- </param>
- <param name="shared" label="shared" type="String">
- <checkbox>
- <choice value="enable" default="false" />
- </checkbox>
- </param>
- <param name="loop" label="loop" type="String">
- <checkbox>
- <choice value="enable" default="true" />
- </checkbox>
- </param>
- </params>
- </object>
-
- <control name="next" label="next" number="0"/>
-
- <control name="reset" label="reset" number="1"/>
-
- <test name="endOfFile" label="end of file reached" number="0"/>
-
- <test name="notEndOfFile" label="end of file not reached" number="1"/>
-</gui>
\ No newline at end of file
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE gui PUBLIC "-//objectweb.org//DTD CLIF IsacGUI 1.0//EN"
"classpath:org/objectweb/clif/scenario/isac/dtd/gui.dtd">
+
+<gui>
+ <object name="CSVProvider">
+ <params>
+ <param label="File name" name="filename">
+ <field text="" size="8"></field>
+ </param>
+ <param label="Field separator" name="separator">
+ <field text="," size="8"></field>
+ </param>
+ <param label="fields names (separated by the given separator)"
name="fields">
+ <field text="" size="8"></field>
+ </param>
+ <param label="MacOS9 line separator" name="macintosh_line_separator">
+ <checkbox>
+ <choice value="enable" default="false"></choice>
+ </checkbox>
+ </param>
+ <param label="shared" name="shared">
+ <checkbox>
+ <choice value="enable" default="false"></choice>
+ </checkbox>
+ </param>
+ <param label="loop" name="loop">
+ <checkbox>
+ <choice value="enable" default="true"></choice>
+ </checkbox>
+ </param>
+ </params>
+ </object>
+ <test name="endOfFile">
+ <params></params>
+ </test>
+ <test name="notEndOfFile">
+ <params></params>
+ </test>
+ <control name="next">
+ <params></params>
+ </control>
+ <control name="reset">
+ <params></params>
+ </control>
+</gui>
+
Index: dist/isac/plugins/CSVProvider/plugin.properties
diff -u dist/isac/plugins/CSVProvider/plugin.properties:1.2
dist/isac/plugins/CSVProvider/plugin.properties:1.3
--- dist/isac/plugins/CSVProvider/plugin.properties:1.2 Thu Nov 3 16:27:46
2005
+++ dist/isac/plugins/CSVProvider/plugin.properties Wed Feb 21 13:40:33
2007
@@ -1,3 +1,3 @@
plugin.name=CSVProvider
-plugin.xmlFile=plugin.xml
plugin.guiFile=gui.xml
+plugin.xmlFile=plugin.xml
Index: dist/isac/plugins/CSVProvider/plugin.xml
diff -u dist/isac/plugins/CSVProvider/plugin.xml:1.9
dist/isac/plugins/CSVProvider/plugin.xml:1.10
--- dist/isac/plugins/CSVProvider/plugin.xml:1.9 Tue Feb 6 17:26:57
2007
+++ dist/isac/plugins/CSVProvider/plugin.xml Wed Feb 21 13:40:33 2007
@@ -1,59 +1,51 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<!DOCTYPE plugin PUBLIC "-//objectweb.org//DTD CLIF Isac 1.0//EN"
"classpath:org/objectweb/clif/scenario/isac/dtd/plugin.dtd">
-<plugin name="CSVProvider">
- <object class="org.objectweb.clif.isac.plugins.CSVProvider">
- <params>
- <param name="filename" type="String" />
- <param name="separator" type="String" />
- <param name="fields" type="String" />
- <param name="macintosh_line_separator" type="String"
/>
- <param name="shared" type="String" />
- <param name="loop" type="String" />
- </params>
- <help>
-Provides a data set whose data are read from a CSV (comma-separated values)
file.
-Call the "next" control to read next line from the file. When automatic
looping is not unabled,
-class the "reset" control to go back to the first line.
-For each line, fields/values are available through variables:
-- either with array-like notation [0], [1] etc. (e.g. ${plugin_id:[0]})
-- or with chosen names when defined in plug-in import parameters (e.g.
{plugin_id:phone_field})
-The number of lines is available through variable named # (e.g.
${pluginId:#})
-Parameters are:
-- filename (required): the full path to the CSV file.
-- separator (optional): the separator character. The default separator is
the comma (',').
-- fields (optional): alternate names for the variables, separated by the
defined separator.
-- macintosh_line_separator: use CR instead of LF as line separator.
-- shared: when set, progression in the lines is shared by all session
objects. In other words,
-each session object will get a different line instead of all getting the
same sequence of lines.
-- loop: when set, the line sequence wraps up to the first line when the end
of file has been
-reached. Otherwise, an alarm is thrown when trying to get a field value
while the end of file
-has been reached, and the empty string is used as value.
- </help>
- </object>
-
- <control name="next" number="0">
- <help>
-Get next line. When loop is enabled, wraps up to the first line once the
last line has been read.
- </help>
- </control>
-
- <control name="reset" number="1">
- <help>
-Go to the first line.
- </help>
- </control>
-
- <test name="endOfFile" number="0">
- <help>
-True if there is no more line available (including at current position),
false if current line
-has a value. Always false when loop option is enabled.
- </help>
- </test>
-
- <test name="notEndOfFile" number="1">
- <help>
-True if current line has a value, false if the end of the CSV file has been
reached.
-Always true when loop option is enabled.
- </help>
- </test>
-</plugin>
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plugin PUBLIC "-//objectweb.org//DTD CLIF Isac 1.0//EN"
"classpath:org/objectweb/clif/scenario/isac/dtd/plugin.dtd">
+
+<plugin name="CSVProvider">
+ <object class="org.objectweb.clif.isac.plugins.CSVProvider">
+ <params>
+ <param name="filename" type="String"></param>
+ <param name="separator" type="String"></param>
+ <param name="macintosh_line_separator" type="String"></param>
+ <param name="shared" type="String"></param>
+ <param name="loop" type="String"></param>
+ <param name="fields" type="String"></param>
+ </params>
+ <help>Provides a data set whose data are read from a CSV
(comma-separated values) file.
+Call the "next" control to read next line from the file. When automatic
looping is not unabled,
+class the "reset" control to go back to the first line.
+For each line, fields/values are available through variables:
+- either with array-like notation [0], [1] etc. (e.g. ${plugin_id:[0]})
+- or with chosen names when defined in plug-in import parameters (e.g.
{plugin_id:phone_field})
+The number of lines is available through variable named # (e.g.
${pluginId:#})
+Parameters are:
+- filename (required): the full path to the CSV file.
+- separator (optional): the separator character. The default separator is
the comma (',').
+- fields (optional): alternate names for the variables, separated by the
defined separator.
+- macintosh_line_separator: use CR instead of LF as line separator.
+- shared: when set, progression in the lines is shared by all session
objects. In other words,
+each session object will get a different line instead of all getting the
same sequence of lines.
+- loop: when set, the line sequence wraps up to the first line when the end
of file has been
+reached. Otherwise, an alarm is thrown when trying to get a field value
while the end of file
+has been reached, and the empty string is used as value.</help>
+ </object>
+ <test name="endOfFile" number="0">
+ <params></params>
+ <help>True if there is no more line available (including at current
position), false if current line
+has a value. Always false when loop option is enabled.</help>
+ </test>
+ <test name="notEndOfFile" number="1">
+ <params></params>
+ <help>True if current line has a value, false if the end of the CSV file
has been reached.
+Always true when loop option is enabled.</help>
+ </test>
+ <control name="next" number="2">
+ <params></params>
+ <help>Go to next line. When loop is enabled, wraps up to the first line
once the last line has been read.</help>
+ </control>
+ <control name="reset" number="3">
+ <params></params>
+ <help>Jump to the first line.</help>
+ </control>
+</plugin>
+
| <-- Date Index --> | <-- Thread Index --> |
Powered by MHonArc.
Copyright © 2006-2007, OW2 Consortium | contact | webmaster.