[ 
https://issues.apache.org/jira/browse/JCR-1662?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608202#action_12608202
 ] 

Michael Dürig commented on JCR-1662:
------------------------------------

The pattern matching operates on instances of org.apache.jackrabbit.spi.Path, 
not on strings. Matching a Path by its sting representation is problematic 
since it depends on the implementation. 

My current use case is specific to my current spi connector project. Since I 
have written the code anyway and it might be generally useful for spi connector 
implementations I provided it here.

For example usage see the test cases. 

> Add pattern matching for paths
> ------------------------------
>
>                 Key: JCR-1662
>                 URL: https://issues.apache.org/jira/browse/JCR-1662
>             Project: Jackrabbit
>          Issue Type: New Feature
>          Components: jackrabbit-spi-commons
>            Reporter: Michael Dürig
>         Attachments: JCR-1662.patch
>
>
> I suggest to add utility classes to spi-commons which can be used to do 
> pattern matching on paths similar to regular expressions. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to