XBRLAPI

A Java API for XBRL


org.xbrlapi.data.resource
Class InMemoryMatcherImpl

java.lang.Object
  extended by org.xbrlapi.data.resource.BaseMatcherImpl
      extended by 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)

Constructor Summary
InMemoryMatcherImpl(CacheImpl cache)
           
 
Method Summary
 URI getMatch(URI uri)
           
 
Methods inherited from class org.xbrlapi.data.resource.BaseMatcherImpl
getCache, getResourceContent, getSignature, getSignature, setCache, setSigner
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.data.resource.Matcher
getSignature, setSigner
 

Constructor Detail

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.
Method Detail

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)

SourceForge Logo