cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stevend...@apache.org
Subject svn commit: r1160989 - /cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
Date Wed, 24 Aug 2011 06:55:56 GMT
Author: stevendolg
Date: Wed Aug 24 06:55:56 2011
New Revision: 1160989

URL: http://svn.apache.org/viewvc?rev=1160989&view=rev
Log:
Fixed some Javadoc issues.

Modified:
    cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java

Modified: cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
URL: http://svn.apache.org/viewvc/cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java?rev=1160989&r1=1160988&r2=1160989&view=diff
==============================================================================
--- cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
(original)
+++ cocoon/cocoon3/trunk/cocoon-util/src/main/java/org/apache/cocoon/util/wildcard/WildcardMatcherHelper.java
Wed Aug 24 06:55:56 2011
@@ -21,7 +21,7 @@ import java.util.Map;
 import java.util.regex.Pattern;
 
 /**
- * This class is an utility class that perform wildcard-patterns matching and isolation.
+ * This class is a utility class that performs wildcard-patterns matching and isolation.
  *
  * @version $Id$
  */
@@ -40,7 +40,7 @@ public class WildcardMatcherHelper {
     // ~ Methods ------------------------------------------------------------------------------------
 
     /**
-     * Match a pattern against a string and isolates wildcard replacement into a <code>Map</code>.
<br>
+     * Match a pattern against a string and isolate wildcard replacements into a <code>Map</code>.
<br>
      * Here is how the matching algorithm works:
      *
      * <ul>
@@ -56,19 +56,19 @@ public class WildcardMatcherHelper {
      * The '**' wildcard is greedy and thus the following sample matches as {"foo/bar","baz","bug"}:
      * <dl>
      * <dt>pattern</dt>
-     * <dd>STAR,STAR,PATHSEP,STAR,PATHSEP,STAR,STAR (why can't I express it literally?)</dt>
+     * <dd>&#42;&#42;/&#42;/&#42;&#42;</dt>
      * <dt>string</dt>
      * <dd>foo/bar/baz/bug</dt>
      * </dl>
      * The first '**' in the pattern will suck up as much as possible without making the
match fail.
      *
      * @param pat The pattern string.
-     * @param str The string to math agains the pattern
+     * @param str The string to match against the pattern
      *
      * @return a <code>Map</code> containing the representation of the extracted
pattern. The extracted patterns are
-     *         keys in the <code>Map</code> from left to right beginning with
"1" for te left most, "2" for the next,
+     *         keys in the <code>Map</code> from left to right beginning with
"1" for the left most, "2" for the next,
      *         a.s.o. The key "0" is the string itself. If the return value is null, string
does not match to the
-     *         pattern .
+     *         pattern.
      */
     public static Map<String, String> match(final String pat, final String str) {
         Matcher matcher;



Mime
View raw message