[tools] include new CollectionTool in showcase webapp

git-svn-id: https://svn.apache.org/repos/asf/velocity/tools/trunk@1770549 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
index 2c24011..50cc5fd 100644
--- a/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
+++ b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
@@ -66,6 +66,7 @@
 tools.alternator = AlternatorTool
 tools.browser = BrowserTool
 tools.class = ClassTool
+tools.collection = CollectionTool
 tools.context = ContextTool
 tools.convert = ConversionTool
 tools.cookies = CookieTool
@@ -163,6 +164,22 @@
 class.supportsNewInstance = Returns <code>true</code> if a new instance of the class being inspected can be created via $class.type.newInstance().
 class.toString = Returns the result of $class.type.toString().
 
+collection.getStringsDelimiter = Returns the delimiter to be used when splitting a string.
+collection.getStringsTrim = Returns whether or not to trim string elements found when splitting a string.
+collection.sort_Collection = Sort a collection.
+collection.sort_CollectionComparator = Sort a collection using the provided comparator.
+collection.sort_CollectionList = Sort a collection using the provided properties list.
+collection.sort_Map = Sort map values.
+collection.sort_MapComparator = Sort map values using the provided comparator.
+collection.sort_MapList = Sort map values using the provided properties list.
+collection.sort_ObjectArray = Sort an array.
+collection.sort_ObjectArrayComparator = Sort an array using the provided comparator.
+collection.sort_ObjectArrayList = Sort an array using the provided properties list.
+collection.sort_Object = Sort collection / array / map values.
+collection.sort_ObjectComparator = Sort collection / array / map values using the provided comparator.
+collection.sort_ObjectString = Sort collection / array / map values on the provided property.
+collection.split_String = Split string.
+
 # context.vm resources
 context.intro = This tool exists to provide access to the current context and various attributes of it.
 context.getThis = Returns the <code>ViewContext</code> currently being analyzed by this tool.
diff --git a/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
new file mode 100644
index 0000000..b7f5a87
--- /dev/null
+++ b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
@@ -0,0 +1,31 @@
+## Licensed to the Apache Software Foundation (ASF) under one
+## or more contributor license agreements.  See the NOTICE file
+## distributed with this work for additional information
+## regarding copyright ownership.  The ASF licenses this file
+## to you under the Apache License, Version 2.0 (the
+## "License"); you may not use this file except in compliance
+## with the License.  You may obtain a copy of the License at
+##
+##   http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing,
+## software distributed under the License is distributed on an
+## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+## KIND, either express or implied.  See the License for the
+## specific language governing permissions and limitations
+## under the License.
+#title( 'ConversionTool' )
+<p>
+$text.demo.thisPage.insert("#doclink( 'CollectionTool' true )").
+$text.collection.intro
+</p>
+
+## The demo.vm template expects the following values to be set
+#set( $toollink = $doclink )
+#set( $toolname = 'collection' )
+#set( $toolclass = $collection.class )
+#set( $toolDemo = 
+""
+)
+
+#parse( 'demo.vm' )
diff --git a/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
index eba67a3..1e98e28 100644
--- a/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
+++ b/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
@@ -25,6 +25,7 @@
 #toolMenuItem( $llink 'alternator' )
 #toolMenuItem( $llink 'browser' )
 #toolMenuItem( $llink 'class' )
+#toolMenuItem( $llink 'collection' )
 #toolMenuItem( $llink 'context' )
 #toolMenuItem( $llink 'convert' )
 #toolMenuItem( $llink 'cookies' )