My project has objects structured in a tree and needs to implement wild card and pattern matching, path expansion for accessing the said objects. This functionality is very similar to what Bash does with its command line.
A sample query might be
find .\[NC]*\Hospitals\Addresses\*
This would recursively search all nodes below the current one for the Addresses of all hospitals that are located in the states which name starts with N or C (ie Nevada, Nebraska, California, etc).
Are there any existing and fairly lightweight libraries or frameworks for Java to do this? I dont want to reinvent the wheel.