Author: nbubna
Date: Tue Feb  3 19:39:02 2009
New Revision: 740390

URL: http://svn.apache.org/viewvc?rev=740390&view=rev
Log:
update $convert demo

Modified:
    velocity/tools/trunk/examples/showcase/convert.vm

Modified: velocity/tools/trunk/examples/showcase/convert.vm
URL: 
http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/convert.vm?rev=740390&r1=740389&r2=740390&view=diff
==============================================================================
--- velocity/tools/trunk/examples/showcase/convert.vm (original)
+++ velocity/tools/trunk/examples/showcase/convert.vm Tue Feb  3 19:39:02 2009
@@ -16,76 +16,26 @@
 ## under the License.
 #title( 'ConversionTool' )
 <p>
-#set( $demo = $text.demo )
-$demo.thisPage.insert("#doclink( 'ConversionTool' true )").
+$text.demo.thisPage.insert("#doclink( 'ConversionTool' true )").
+$text.convert.intro
 </p>
 
-#demoTableStart()
-
-#set( $quote = '' )
-#set( $desc = 'Converts an object to an instance of String if the object is 
not already an instance of String.' )
-#demo1( 'convert' 'toString' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Strings.' )
-#demo1( 'convert' 'toStrings' 4 $desc )
-
-#set( $desc = 'Converts an object to an instance of Boolean if the object is 
not already an instance of Boolean.' )
-#demo1( 'convert' 'toBoolean' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Booleans.' )
-#demo1( 'convert' 'toBooleans' 4 $desc )
-
-#set( $desc = 'Converts an object to an instance of Locale if the object is 
not already an instance of Locale.' )
-#demo1( 'convert' 'toLocale' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Locales.' )
-#demo1( 'convert' 'toLocales' 4 $desc )
-
-#set( $desc = 'Converts an object to an instance of Integer using the format 
returned by $convert.numberFormat and the Locale returned by $convert.locale if 
the object is not already an instance of Integer.' )
-#demo1( 'convert' 'toInteger' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Ints.' )
-#demo1( 'convert' 'toInts' 4 $desc )
-
-#set( $desc = 'Converts an object to an instance of Double using the format 
returned by $convert.numberFormat and the Locale returned by $convert.locale if 
the object is not already an instance of Double.' )
-#demo1( 'convert' 'toDouble' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Doubles.' )
-#demo1( 'convert' 'toDoubles' 4 $desc )
-
-#set( $desc = 'Converts an object to an instance of Number using the format 
returned by $convert.numberFormat and the Locale returned by $convert.locale if 
the object is not already an instance of Number.' )
-#demo1( 'convert' 'toNumber' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Numbers.' )
-#demo1( 'convert' 'toNumbers' 4 $desc )
-
-#set( $quote = '"' )
-#set( $desc = 'Parses a String to an instance of Number using the specified 
format and the Locale returned by $convert.locale.' )
-#demo2( 'convert' 'parseNumber' 4 $desc )
-
-#set( $desc = 'Parses a String to an instance of Number using the specified 
format and Locale.' )
-#demo3( 'convert' 'parseNumber' 3 $desc )
-
-#set( $quote = '' )
-#set( $desc = 'Converts an object to an instance of Date using the format 
returned by $convert.dateFormat and the Locale returned by $convert.locale.' )
-#demo1( 'convert' 'toDate' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Dates.' )
-#demo1( 'convert' 'toDates' 4 $desc )
-
-#set( $quote = '"' )
-#set( $desc = 'Parses a String to an instance of Date using the specified 
format and the Locale returned by $convert.locale.' )
-#demo2( 'convert' 'parseDate' 4 $desc )
-
-#set( $desc = 'Parses a String to an instance of Date using the specified 
format and Locale' )
-#demo3( 'convert' 'parseDate' 3 $desc )
-
-#set( $quote = '' )
-#set( $desc = 'Converts an object to an instance of Calendar using the format 
returned by $convert.dateFormat and the Locale returned by $convert.locale.' )
-#demo1( 'convert' 'toCalendar' 4 $desc )
-
-#set( $desc = 'Converts an array, Collection, delimited String, or object to 
an array of Calendars.' )
-#demo1( 'convert' 'toCalendars' 4 $desc )
-
-#demoCustom( 'convert' )
-</table>
+## The demo.vm template expects the following values to be set
+#set( $toollink = $doclink )
+#set( $toolname = 'convert' )
+#set( $toolclass = $convert.class )
+#set( $toolDemo = 
+""
+)
+
+#set( $skip = [
+    'parseDate_StringString',
+    'parseNumber_StringString',
+    'toBooleans_Collection',
+    'toNumbers_Collection',
+    'toCalendars_Collection',
+    'toDates_Collection',
+    'toLocales_Collection',
+    'toString_Collection'
+] )
+#parse( 'demo.vm' )


Reply via email to