Author: mcucchiara
Date: Thu Apr 11 09:53:39 2013
New Revision: 1466816
URL: http://svn.apache.org/r1466816
Log:
Fixed broken links
Modified:
commons/proper/functor/trunk/src/site/xdoc/examples.xml
Modified: commons/proper/functor/trunk/src/site/xdoc/examples.xml
URL:
http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/site/xdoc/examples.xml?rev=1466816&r1=1466815&r2=1466816&view=diff
==============================================================================
--- commons/proper/functor/trunk/src/site/xdoc/examples.xml (original)
+++ commons/proper/functor/trunk/src/site/xdoc/examples.xml Thu Apr 11 09:53:39
2013
@@ -169,13 +169,13 @@ for( Integer number : numbers ) {
</p>
<p>
The
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java">FlexiMap
example</a>
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/FlexiMapExample.java">FlexiMap
example</a>
applies this design to <code>java.util.Map</code>, demonstrating how
"pluggable" functors can be applied to a generic <code>Map</code>
structure in order
- to introduce new behaviors. The <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/map">map</a>
+ to introduce new behaviors. The <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/map">map</a>
package is a more complete example of this, implementing a number of
the Commons-Collections Maps
derived from a base
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/map/FunctoredMap.java">FunctoredMap</a>.
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/map/FunctoredMap.java">FunctoredMap</a>.
</p>
</subsection>
@@ -220,7 +220,7 @@ CompositeUnaryProcedure<Integer> c
filteredGenerator.run(compositeProcedure.of(doubler));
</source>
<p>
- The <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/lines/">lines</a>
+ The <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/lines/">lines</a>
package demonstrates a functional approach to IO using Generators and
the Algorithms class.
</p>
</subsection>
@@ -233,14 +233,14 @@ filteredGenerator.run(compositeProcedure
</p>
<p>
First such set of example involves the usage of the <i>nostore</i>
<code>Aggregator</code>. Code can be found in
- <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/aggregator/nostore/">org.apache.commons.functor.example.aggregator.nostore</a>.
+ <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/aggregator/nostore/">org.apache.commons.functor.example.aggregator.nostore</a>.
This shows how can you use an aggregator which doesn't store the data
series and processes them on the fly.
Also, there are examples provided which show how can you implement
your own aggregation function
to be used with this <code>Aggregator</code> type.
</p>
<p>
For using an <code>Aggregator</code> which stores the data series in
a list, examples are in
- <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/aggregator/list/">org.apache.commons.functor.example.aggregator.list</a>.
+ <a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/aggregator/list/">org.apache.commons.functor.example.aggregator.list</a>.
This shows how can you use the <code>ArrayList</code>-backed
aggregator or provide your own <code>List</code>-based implementation.
Also, there are examples provided which show how can you implement
your own aggregation function
to be used with this <code>Aggregator</code> type.
@@ -264,33 +264,33 @@ filteredGenerator.run(compositeProcedure
Commons-Functor library.
</p>
<dl>
- <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/one/">Kata
One: Supermarket Pricing</a></dt>
+ <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/one/">Kata
One: Supermarket Pricing</a></dt>
<dd>
Dave's <a
href="http://pragprog.com/pragdave/Practices/Kata/KataOne.rdoc,v">Kata One</a>
asks how
one might implement supermarket pricing rules, like "three for a
dollar" or "buy two get one free".
By encapsulating tiny bits of logic, functors provide a useful
solution to this problem, as
illustrated in the
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/one/SupermarketPricingExample.java">SupermarketPricingExample</a>.
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/one/SupermarketPricingExample.java">SupermarketPricingExample</a>.
</dd>
- <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/">Kata
Two: Binary Chop</a></dt>
+ <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/two/">Kata
Two: Binary Chop</a></dt>
<dd>
<a
href="http://pragprog.com/pragdave/Practices/Kata/KataTwo.rdoc,v">Kata Two</a>
asks us
to create several different implementations of the binary search
algorithm, which once you
get past three or four implementations, is more difficult that it
sounds.
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java">TestBinaryChop</a>
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/two/TestBinaryChop.java">TestBinaryChop</a>
presents several implementations, with functor and non-functor
variations.
</dd>
- <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/four/">Kata
Four: Data Munging</a></dt>
+ <dt><a
href="http://svn.apache.org/viewvc/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/four/">Kata
Four: Data Munging</a></dt>
<dd>
<a
href="http://pragprog.com/pragdave/Practices/Kata/KataFour.doc,v">Kata Four</a>
asks us
to explore extreme reuse. Our
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/four/DataMunger.java">DataMunger</a>
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/four/DataMunger.java">DataMunger</a>
allosubsubsectionws for very small implementations of the
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/four/TestWeather.java">weather</a>
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/four/TestWeather.java">weather</a>
and
- <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/kata/four/TestSoccer.java">soccer
(football)</a>
+ <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/kata/four/TestSoccer.java">soccer
(football)</a>
parsers.
</dd>
</dl>
@@ -298,7 +298,7 @@ filteredGenerator.run(compositeProcedure
<subsection name="A Quicksort Implementation">
<p>
- The <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/src/test/java/org/apache/commons/functor/example/QuicksortExample.java">Quicksort
example</a>
+ The <a
href="http://svn.apache.org/repos/asf/commons/proper/functor/trunk/core/src/test/java/org/apache/commons/functor/example/QuicksortExample.java">Quicksort
example</a>
presents an implementation of the Quicksort sorting algorithm
written in a functional programming
style using Commons Functor.
</p>