📄 matcher.java
字号:
package org.xbrlapi.data.resource;import java.net.URL;import org.xbrlapi.utilities.XBRLException;/** * The resource matcher interface, defining all methods that need to be * implemented by a resource matcher to support XBRLAPI data stores. * @author Geoffrey Shuetrim (geoff@galexy.net) */public interface Matcher { /** * Call this method if you need to use a different signature * generator for the resources you are working with. * @param signer The object used to generate signatures. */ public void setSigner(Signer signer); /** * @param url The URL of the resource to obtain the signature for. * @return the signature for the resource specified by the URL or null * if the resource could not be cached (generally because it does not exist). * @throws XBRLException if the signature cannot be constructed. */ public String getSignature(URL url) throws XBRLException; /** * @param url The URL of the resource to be tested for a match. * @return the URL of the matching resource in the data store if one * exists and the original URL otherwise (because it becomes the * matching URL in the data store). * @throws XBRLException */ public URL getMatch(URL url) throws XBRLException; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -