SLING-6161 : Should Path.matches support glob pattern as parameter?

git-svn-id: https://svn.apache.org/repos/asf/sling/trunk@1765241 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/src/main/java/org/apache/sling/api/resource/path/Path.java b/src/main/java/org/apache/sling/api/resource/path/Path.java
index f91b0ec..ed81e95 100644
--- a/src/main/java/org/apache/sling/api/resource/path/Path.java
+++ b/src/main/java/org/apache/sling/api/resource/path/Path.java
@@ -90,8 +90,10 @@
     }
 
     /**
-     * Return the path.
+     * Return the path if this {@code Path} object holds a path,
+     * returns the pattern otherwise.
      * @return The path.
+     * @see #isPattern()
      */
     public String getPath() {
         return this.path;