velocity-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nbu...@apache.org
Subject svn commit: r497995 - /velocity/tools/trunk/examples/showcase/params.vm
Date Fri, 19 Jan 2007 22:57:41 GMT
Author: nbubna
Date: Fri Jan 19 14:57:40 2007
New Revision: 497995

URL: http://svn.apache.org/viewvc?view=rev&rev=497995
Log:
add demos for Locale parsing methods

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

Modified: velocity/tools/trunk/examples/showcase/params.vm
URL: http://svn.apache.org/viewvc/velocity/tools/trunk/examples/showcase/params.vm?view=diff&rev=497995&r1=497994&r2=497995
==============================================================================
--- velocity/tools/trunk/examples/showcase/params.vm (original)
+++ velocity/tools/trunk/examples/showcase/params.vm Fri Jan 19 14:57:40 2007
@@ -38,6 +38,8 @@
 #demo1( 'params' 'getDouble' 6 $desc )
 #set( $desc = 'Returns the parameter with the specified key as a java.lang.Integer, if it
exists and can be converted to that type; otherwise, returns <code>null</code>.'
)
 #demo1( 'params' 'getInteger' 6 $desc )
+#set( $desc = 'Returns the parameter with the specified key as a java.util.Locale, if it
exists and can be converted to that type; otherwise, returns <code>null</code>.'
)
+#demo1( 'params' 'getLocale' 6 $desc )
            
 #set( $desc = 'Returns the parameter(s) with the specified key in an array of the type requested,
if any exist; otherwise, returns <code>null</code>..' )
 #demo1( 'params' 'getStrings' 6 $desc )
@@ -49,6 +51,8 @@
 #demo1( 'params' 'getDoubles' 6 $desc )
 #set( $desc = 'Returns the parameter(s) with the specified key in an array of int primitives,
if any exist and can be converted to that type; otherwise, returns <code>null</code>..'
)
 #demo1( 'params' 'getInts' 6 $desc )
+#set( $desc = 'Returns the parameter(s) with the specified key in an array of java.util.Locale,
if any exists and can be converted to that type; otherwise, returns <code>null</code>.'
)
+#demo1( 'params' 'getLocales' 6 $desc )
            
 #set( $quote = '' )
 #set( $desc = 'Returns the parameter with the specified key, if it exists; otherwise, returns
the specified alternate value.' )
@@ -63,6 +67,8 @@
 #demo2( 'params' 'getInteger' 6 $desc )
 #set( $desc = 'Returns the parameter with the specified key as an int, if it exists; otherwise,
returns the specified alternate int.' )
 #demo2( 'params' 'getInt' 6 $desc )
+#set( $desc = 'Returns the parameter with the specified key as a java.util.Locale, if it
exists; otherwise, returns the specified alternate Locale.' )
+#demo2( 'params' 'getLocale' 6 $desc )
 
 #set( $desc = 'Returns the map of all parameters available for the current request.' )
 #demo( 'params' 'all' $desc )



Mime
View raw message