Author: cbrisson
Date: Sun Nov 20 10:21:19 2016
New Revision: 1770549
URL: http://svn.apache.org/viewvc?rev=1770549&view=rev
Log:
[tools] include new CollectionTool in showcase webapp
Added:
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
Modified:
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
Modified:
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
URL:
http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties?rev=1770549&r1=1770548&r2=1770549&view=diff
==============================================================================
---
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
(original)
+++
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/resources/resources.properties
Sun Nov 20 10:21:19 2016
@@ -66,6 +66,7 @@ tools.header = Choose a tool
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.isStrict = Returns <code>true</cod
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.
Added:
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
URL:
http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm?rev=1770549&view=auto
==============================================================================
---
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
(added)
+++
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/collection.vm
Sun Nov 20 10:21:19 2016
@@ -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' )
Modified:
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
URL:
http://svn.apache.org/viewvc/velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm?rev=1770549&r1=1770548&r2=1770549&view=diff
==============================================================================
---
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
(original)
+++
velocity/tools/trunk/velocity-tools-examples/velocity-tools-examples-showcase/src/main/webapp/toolmenu.vm
Sun Nov 20 10:21:19 2016
@@ -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' )