public abstract class BaseMatcherImpl extends java.lang.Object implements Matcher
Constructor and Description |
---|
BaseMatcherImpl(Cache cache,
Signer signature) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getSignature(java.net.URI uri) |
int |
hashCode() |
void |
setSigner(Signer signer)
Call this method if you need to use a different signature
generator for the resources you are working with.
|
getClass, notify, notifyAll, toString, wait, wait, wait
delete, getAllMatchingURIs, getMatch, hasURI
public BaseMatcherImpl(Cache cache, Signer signature) throws XBRLException
cache
- The resource cache to be used by the matcher when accessing
resources to determine their signature.signature
- The object used to generate resource signatures.XBRLException
- if either parameter is null.public void setSigner(Signer signer)
Matcher
public java.lang.String getSignature(java.net.URI uri) throws XBRLException
getSignature
in interface Matcher
uri
- The URI of the resource to obtain the signature for.XBRLException
- if the signature cannot be constructed.Matcher.getSignature(URI)
public int hashCode()
hashCode
in class java.lang.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object