org.xbrlapi.data.resource
Class InMemoryMatcherImpl
java.lang.Object
org.xbrlapi.data.resource.BaseMatcherImpl
org.xbrlapi.data.resource.InMemoryMatcherImpl
- All Implemented Interfaces:
- Matcher
public class InMemoryMatcherImpl
- extends BaseMatcherImpl
- implements Matcher
The in-memory resource matcher implementation, for use with the
DOM data store implementation. Note that this matcher is not persistent.
Sub-class if you want to use an alternative signature.
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InMemoryMatcherImpl
public InMemoryMatcherImpl(CacheImpl cache)
throws XBRLException
- Parameters:
cache - The resource cache to be used by the matcher when accessing
resources to determine their signature.
- Throws:
XBRLException - if the cache parameter is null.
getMatch
public URI getMatch(URI uri)
throws XBRLException
- Specified by:
getMatch in interface Matcher
- Parameters:
uri - The URI of the resource to be tested for a match.
- Returns:
- the URI of the matching resource in the data store if one
exists and the original URI otherwise (because it becomes the
matching URI in the data store).
- Throws:
XBRLException- See Also:
Matcher.getMatch(URI)