notify-dpml AT lists.ibiblio.org
Subject: DPML Notify
List archive
r1115 - trunk/main/central/src/docs/metro/tasks/components/context
- From: mcconnell at BerliOS <mcconnell AT mail.berlios.de>
- To: notify-dpml AT lists.ibiblio.org
- Subject: r1115 - trunk/main/central/src/docs/metro/tasks/components/context
- Date: Fri, 17 Feb 2006 07:35:55 +0100
Author: mcconnell
Date: 2006-02-17 07:35:51 +0100 (Fri, 17 Feb 2006)
New Revision: 1115
Modified:
trunk/main/central/src/docs/metro/tasks/components/context/entries.xml
trunk/main/central/src/docs/metro/tasks/components/context/values.xml
Log:
update docs to include array example
Modified:
trunk/main/central/src/docs/metro/tasks/components/context/entries.xml
===================================================================
--- trunk/main/central/src/docs/metro/tasks/components/context/entries.xml
2006-02-17 06:24:14 UTC (rev 1114)
+++ trunk/main/central/src/docs/metro/tasks/components/context/entries.xml
2006-02-17 06:35:51 UTC (rev 1115)
@@ -40,7 +40,8 @@
Optional declaration of a classname to be instantiated using
any enclosed values. Classnames may include any class within
the scope of the component classloader or any primitive
datatype.
- May not be used in in conjunction with the <tt>lookup</tt>
attribute.
+ The 'class' attribue not be used in in conjunction with the
+ <tt>lookup</tt> attribute.
</td>
</tr>
<tr>
@@ -138,6 +139,18 @@
<entry key="dir" value="${user.dir}/working">
]]></pre>
+ <p>
+ The following example constructs an String array (assuming that
the
+ underlying context entry declares a String[] return type).
+ </p>
+
+<pre><![CDATA[
+<entry key="names">
+ <value value="Hello"/>
+ <value value="World"/>
+</entry>
+]]></pre>
+
</subsection>
</section>
Modified:
trunk/main/central/src/docs/metro/tasks/components/context/values.xml
===================================================================
--- trunk/main/central/src/docs/metro/tasks/components/context/values.xml
2006-02-17 06:24:14 UTC (rev 1114)
+++ trunk/main/central/src/docs/metro/tasks/components/context/values.xml
2006-02-17 06:35:51 UTC (rev 1115)
@@ -115,6 +115,25 @@
</subsection>
+ <subsection name="Array Example">
+
+ <p>
+ Example of the creation of an int array. Array datatypes
+ may be declared using the "[]" postfix on the class attribute
+ value. Nested elements will be used to resolve array entry
+ values.
+ </p>
+
+<pre><![CDATA[
+<value class="int[]">
+ <value class="int" value="1"/>
+ <value class="int" value="2"/>
+ <value class="int" value="3"/>
+</value>
+]]></pre>
+
+ </subsection>
+
</section>
</body>
- r1115 - trunk/main/central/src/docs/metro/tasks/components/context, mcconnell at BerliOS, 02/17/2006
Archive powered by MHonArc 2.6.24.