亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xbrlxlinkhandlerimpl.java

?? xbrlapi的源碼
?? JAVA
字號:
package org.xbrlapi.xlink.handler;import java.net.MalformedURLException;import java.net.URL;import org.apache.log4j.Logger;import org.xbrlapi.Arc;import org.xbrlapi.ExtendedLink;import org.xbrlapi.Locator;import org.xbrlapi.Resource;import org.xbrlapi.SimpleLink;import org.xbrlapi.Title;import org.xbrlapi.SAXHandlers.ElementState;import org.xbrlapi.impl.ArcImpl;import org.xbrlapi.impl.EntityResourceImpl;import org.xbrlapi.impl.ExtendedLinkImpl;import org.xbrlapi.impl.FootnoteResourceImpl;import org.xbrlapi.impl.LabelResourceImpl;import org.xbrlapi.impl.LocatorImpl;import org.xbrlapi.impl.ReferenceResourceImpl;import org.xbrlapi.impl.ResourceImpl;import org.xbrlapi.impl.SimpleLinkImpl;import org.xbrlapi.impl.TitleImpl;import org.xbrlapi.loader.Loader;import org.xbrlapi.utilities.Constants;import org.xbrlapi.utilities.XBRLException;import org.xbrlapi.xlink.XLinkException;import org.xbrlapi.xlink.XLinkHandlerDefaultImpl;import org.xbrlapi.xmlbase.BaseURLSAXResolver;import org.xbrlapi.xmlbase.XMLBaseException;import org.xbrlapi.xpointer.resolver.PointerResolver;import org.xml.sax.Attributes;/** * XBRL XLink Handler *  * This class provides a real world example of an XLink handler for XBRL. *  *  * @author Geoffrey Shuetrim (geoff@galexy.net)*/public class XBRLXLinkHandlerImpl extends XLinkHandlerDefaultImpl {	protected static Logger logger = Logger.getLogger(XBRLXLinkHandlerImpl.class);			/**	 * The XBRL DTS loader that is using this XLink handler	 */	private Loader loader;		/**	 * The XPointer Resolver implementation to be used by the	 * XLink handler	 */	private PointerResolver xptrResolver;	/**	 * The base URL resolver used by the XLink handler	 */	private BaseURLSAXResolver baseURLResolver;			/**	 * The depth of the element being examined for XLink 	 * characteristics in the containing tree.  This is updated	 * by the content handler each time a new element is started	 * by the content handler.	 */	private long depth;	    /**     * Data required to track the element scheme XPointer      * expressions that can be used to identify XBRL fragments.     */	private ElementState state;		/**	 * XBRL XLink handler constructor	 */	public XBRLXLinkHandlerImpl() {		super();		this.baseURLResolver = null;		this.xptrResolver = null;		this.loader = null;	}	/**	 * Set the XBRL DTS loader	 * @param loader The XBRL DTS loader	 */	public void setLoader(Loader loader) {		this.loader = loader;	}		/**	 * Set the base URL resolver for the XBRL XLink handler.	 * @param resolver the base URL resolver used by the XLink handler.	 */	public void setBaseURLSAXResolver(BaseURLSAXResolver resolver) {		baseURLResolver = resolver;	}		/**	 * Set the XPointer resolver for the XBRL XLink handler.	 * @param resolver the XPointer resolver used by the XLink handler.	 */	public void setXPointerResolver(PointerResolver resolver) {		xptrResolver = resolver;	}		/**	 * Handle the XML Base attribute discovery	 * @param value the Value of the XML Base attribute	 */	public void xmlBaseStart(String value) throws XLinkException {		try {			baseURLResolver.addBaseURL(value);		} catch (XMLBaseException e) {			throw new XLinkException("The Base URL Resolver could not update the base URL",e);		}	}	/**	 * Creates and stores an XLink title fragment.	 */	public void startTitle(String namespaceURI, String lName, String qName,			Attributes attrs) throws XLinkException {		Title title = null;		try {			Loader loader = this.getLoader();			title = new TitleImpl();			title.setFragmentIndex(getLoader().getNextFragmentId());			loader.addFragment(title,depth, state);		} catch (XBRLException e) {			throw new XLinkException("The title could not be created and stored.",e);		}	}		/**	 * Handle the change of XML Base scope as you step back up the tree	 */	public void xmlBaseEnd() throws XLinkException {			try {				 baseURLResolver.removeBaseURL();			} catch (XMLBaseException e) {				throw new XLinkException("The Base URL Resolver could not revert to the previous base URL",e);			}	}	/**	 * The extended link processing algorithm, central to this implementation, 	 * operates as follows:	 * <ul>	 * <li>Store all locators and resources that are found in the extended link 	 * in a map of lists where the map is indexed by XLink label attribute values	 * and each list is made up of the locators and resources that have been found	 * in the extended link that carry the same XLink label.	 * </li>	 * <li> 	 * Preprocess the XLink href attribute values on locators to determine those	 * locators linking to XML resources that have already been discovered and 	 * parsed and those linking to XML resources that are yet to be parsed.  For 	 * locators linking to parsed XML resources, add a relationship element to the	 * locator containing the DTS index of the resource and add a relationship	 * element to the resource containing the DTS index of the locator (The DTS	 * index is the index attribute value unique within the DTS that is given to 	 * various elements during the discovery process.)  For locators linked to 	 * unparsed XML resources, place them in map of unprocessed locators, indexed	 * by the href attribute value of the locator so that a resource can quickly 	 * find all locators that point to them using the map and knowing their location.	 * </li>	 * <li>	 * Store all arcs that are found in the extended link in a stack ready for 	 * processing once the end of the extended link has been found.	 * </li>	 * </ul>	 */	public void startExtendedLink(			String namespaceURI, 			String lName,			String qName, 			Attributes attrs, 			String role, 			String title)			throws XLinkException {				// Create the extended link fragment		try {			ExtendedLink link = new ExtendedLinkImpl();			link.setFragmentIndex(getLoader().getNextFragmentId());			if (attrs.getValue("id") != null) {				link.appendID(attrs.getValue("id"));				state.setId(attrs.getValue("id"));			}			getLoader().addFragment(link,depth, state);		} catch (XBRLException e) {			throw new XLinkException("The extended link could not be created.",e);		}	}	/**	 * Nothing needs to be done at the end of the extended link discovery.	 */	public void endExtendedLink(String namespaceURI, String sName, String qName)			throws XLinkException {		;	}		/**	 * TODO Avoid using classes to differentiate XLink resources.	 * Create the resource and add it to the map of arc anchors ready to be processed	 * once the end of the containing extended link has been found.	 */	public void startResource(			String namespaceURI, 			String lName, 			String qName,			Attributes attrs, 			String role, 			String title, 			String label)			throws XLinkException {		try {			Resource resource = null;			if (namespaceURI.equals(Constants.XBRL21LinkNamespace)) {				if (lName.equals("label")) {					resource = new LabelResourceImpl();				} else if (lName.equals("reference")) {					resource = new ReferenceResourceImpl();				} else if (lName.equals("footnote")) {					resource = new FootnoteResourceImpl();				} else {					resource = new ResourceImpl();								}			} else if (namespaceURI.equals(Constants.GenericLabelNamespace)) {				if (lName.equals("label")) {					resource = new LabelResourceImpl();							} else {	                resource = new ResourceImpl();	            }			} else if (namespaceURI.equals(Constants.GenericReferenceNamespace)) {				if (lName.equals("reference")) {					resource = new ReferenceResourceImpl();								} else {	                resource = new ResourceImpl();	            }            } else if (namespaceURI.equals(Constants.XBRLAPIEntitiesNamespace)) {                if (lName.equals("identifier")) {                    resource = new EntityResourceImpl();                             } else {                    resource = new ResourceImpl();                }			} else {				resource = new ResourceImpl();			}			resource.setFragmentIndex(getLoader().getNextFragmentId());			if (attrs.getValue("id") != null) {				resource.appendID(attrs.getValue("id"));				state.setId(attrs.getValue("id"));			}			getLoader().addFragment(resource,depth, state);		} catch (XBRLException e) {			throw new XLinkException("The resource could not be created.",e);		}	}	/**	 * Handle the end of the resource.	 */	public void endResource(String namespaceURI, String sName, String qName) throws XLinkException {		;// Do Nothing.	}		/**	 * Create the locator fragment and then add it to the map of arc anchors.	 * Finally queue up the locator href value in the exploration queue.	 */	public void startLocator(			String namespaceURI, 			String lName, 			String qName,			Attributes attrs, 			String href, 			String role, 			String title,			String label) 	throws XLinkException {		try {			URL url = new URL(baseURLResolver.getBaseURL(),href);			Loader loader = getLoader();			Locator locator = new LocatorImpl();			locator.setFragmentIndex(loader.getNextFragmentId());			locator.setTarget(url);			loader.addFragment(locator,depth, state);			loader.stashURL(url);		} catch (MalformedURLException e) {			throw new XLinkException("The locator href is malformed.",e);		} catch (XMLBaseException e) {			throw new XLinkException("The locator href could not be queued up for processing.",e);		} catch (XBRLException e) {			throw new XLinkException("The locator href could not be queued up for processing.",e);		}	}	/**	 * Handle the end of the locator.	 */	public void endLocator(String namespaceURI, String sName, String qName) throws XLinkException {		;	}		/**	 * Create the arc fragment first. Then add the arc to the 	 * stack of arcs to be processed.	 */	public void startArc(			String namespaceURI, 			String lName, 			String qName,			Attributes attrs, 			String from, 			String to, 			String arcrole,			String title, 			String show, 			String actuate) throws XLinkException {		try {			Arc arc = new ArcImpl();				    		arc.setFragmentIndex(getLoader().getNextFragmentId());			getLoader().addFragment(arc,depth, state);		} catch (XBRLException e) {			throw new XLinkException("The arc could not be created.",e);		}	}		/**	 * Handle the end of the arc.	 */	public void endArc(String namespaceURI, String sName, String qName) throws XLinkException {		;	}		/**	 * Add the href to the set of XML documents to be explored and 	 * create the fragment for the simple link.	 * TODO Should simple links generate relationship metadata?	 */	public void startSimpleLink(			String namespaceURI, 			String lName,			String qName, 			Attributes attrs, 			String href, 			String role,			String arcrole, 			String title, 			String show, 			String actuate)			throws XLinkException {				try {			URL url = new URL(baseURLResolver.getBaseURL(),href);			Loader loader = getLoader();			SimpleLink link = new SimpleLinkImpl();			link.setFragmentIndex(getLoader().getNextFragmentId());			link.setTarget(url);			loader.addFragment(link,depth, state);			loader.stashURL(url);					} catch (MalformedURLException e) {			throw new XLinkException("The URL on a simple link was malformed.",e);		} catch (XBRLException e) {			throw new XLinkException("The URL on a simple link could not be queued up for exploration in DTS discovery.",e);		} catch (XMLBaseException e) {			throw new XLinkException("The URL on a simple link could not be queued up for exploration in DTS discovery.",e);		}			}		/**	 * Handle the end of the simple link	 */	public void endSimpleLink(String namespaceURI, String sName, String qName) throws XLinkException {		;// Do nothing	}			/**	 * Returns the XBRL DTS loader that is using this XLink handler.	 * @return The XBRL DTS loader that is using this XLink handler.	 * @throws XBRLException if the XLink handler has no loader to work with.	 */	private Loader getLoader() throws XBRLException {		if (loader == null)			throw new XBRLException("The XLink Handler has no XBRL DTS loader to work with.");		return loader;	}	public void setDepth(long depth) {		this.depth = depth; 	}		private long getDepth() {		return depth; 	}		public void setState(ElementState state) {		this.state = state; 	}		private ElementState getState() {		return state; 	}		}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美嫩在线观看| 国产福利视频一区二区三区| 色综合天天综合狠狠| 国产精品久久午夜| 91亚洲资源网| 亚洲国产中文字幕| 日韩片之四级片| 国产美女精品在线| 亚洲欧美成人一区二区三区| 欧美羞羞免费网站| 老司机一区二区| 欧美国产精品劲爆| 色婷婷激情综合| 麻豆精品在线视频| 国产精品久久久久永久免费观看| 99视频一区二区三区| 午夜精品在线视频一区| 亚洲精品在线观看网站| 高清不卡一区二区| 亚洲国产日韩a在线播放性色| 日韩欧美你懂的| 不卡区在线中文字幕| 日韩精品电影在线观看| 久久久99精品免费观看不卡| 91美女蜜桃在线| 经典三级视频一区| 亚洲精品第1页| 精品国产在天天线2019| 99r精品视频| 精品一二三四区| 一区二区三区中文字幕电影| 日韩欧美在线123| 色爱区综合激月婷婷| 激情丁香综合五月| 一区二区三区免费看视频| 欧美精品一区二区三区蜜桃视频 | 日韩av电影免费观看高清完整版 | 精品免费视频.| 色菇凉天天综合网| 国产成人亚洲综合色影视| 亚洲gay无套男同| 国产精品久久99| 精品1区2区在线观看| 欧美丰满美乳xxx高潮www| 99久久精品国产一区二区三区| 久久精品国产第一区二区三区| 夜夜揉揉日日人人青青一国产精品| 精品国产3级a| 欧美电影影音先锋| 91精品91久久久中77777| 国产福利一区二区| 国产一区二区在线免费观看| 五月婷婷激情综合网| 一区二区三区精品在线观看| 国产精品麻豆欧美日韩ww| 日韩欧美视频一区| 欧美一区二区在线看| 欧美网站一区二区| 在线亚洲一区二区| 91在线视频网址| av资源网一区| 成人av电影观看| 国产激情视频一区二区在线观看| 轻轻草成人在线| 日韩制服丝袜先锋影音| 亚洲午夜久久久久中文字幕久| 国产精品久久福利| 国产精品乱子久久久久| 国产喷白浆一区二区三区| 久久先锋影音av鲁色资源| 久久久www免费人成精品| 精品区一区二区| 久久久久久综合| 久久综合九色综合97婷婷| 久久久久久久网| 欧美国产精品专区| 亚洲欧美综合另类在线卡通| 亚洲欧洲三级电影| 136国产福利精品导航| 亚洲视频在线一区| 亚洲一区二区三区中文字幕| 午夜日韩在线观看| 日本视频一区二区| 久久精品国产久精国产爱| 美国毛片一区二区三区| 精品亚洲免费视频| 国产成人精品亚洲777人妖| 成人一级黄色片| 一本一道久久a久久精品 | 蜜臀a∨国产成人精品| 久久精品国产一区二区三| 国产毛片一区二区| jvid福利写真一区二区三区| 99国产精品久久久久久久久久| 色嗨嗨av一区二区三区| 欧美日韩的一区二区| 日韩一区二区三区在线视频| xfplay精品久久| 国产精品家庭影院| 亚洲影视在线播放| 裸体健美xxxx欧美裸体表演| 国产精品一区专区| 91年精品国产| 日韩欧美成人一区二区| 国产精品网曝门| 亚洲成av人在线观看| 精品一区二区三区蜜桃| av网站免费线看精品| 欧美精品色一区二区三区| 日韩精品一区二区三区视频在线观看| 久久久精品人体av艺术| 一区二区三区精品在线| 精品亚洲国内自在自线福利| 91老司机福利 在线| 欧美高清视频www夜色资源网| 欧美大尺度电影在线| 日韩理论片一区二区| 玖玖九九国产精品| 91美女精品福利| 制服丝袜中文字幕一区| 中文在线资源观看网站视频免费不卡 | 欧美日韩国产成人在线91| 欧美精品一区二区三区一线天视频 | 岛国精品在线观看| 91精品国产综合久久香蕉的特点| 久久久久久久网| 69av一区二区三区| 男女男精品视频网| 国产精品国产三级国产aⅴ入口| 国产亚洲一区二区在线观看| 最新不卡av在线| 蜜臀av一级做a爰片久久| 欧美一级xxx| 国产精品久久夜| 日本伊人色综合网| 色综合中文字幕国产| 欧美老年两性高潮| 综合婷婷亚洲小说| 国产精品自拍在线| 欧美精品99久久久**| 国产成人在线视频网站| 7777精品伊人久久久大香线蕉完整版| 日韩三级在线观看| 亚洲精品成人精品456| 国产成人aaa| 精品国精品国产| 蜜臀久久久久久久| 欧美日韩精品二区第二页| 有码一区二区三区| 99re热这里只有精品免费视频| 日韩欧美高清一区| 亚洲成人综合视频| 欧美丝袜自拍制服另类| 亚洲精品国产一区二区精华液| 国产xxx精品视频大全| 久久久精品天堂| 国产精品一区不卡| 国产亚洲成年网址在线观看| 美女国产一区二区三区| 日韩视频在线观看一区二区| 男男gaygay亚洲| 欧美一区二区三区四区久久| 日韩一区欧美二区| 欧美高清你懂得| 免费成人在线观看视频| 欧美一区二区大片| 免费一级欧美片在线观看| 69堂亚洲精品首页| 免费观看一级欧美片| 日韩一区二区三区电影在线观看 | 国产精品久99| 一本到一区二区三区| 一区二区三区自拍| 欧美日韩卡一卡二| 日韩高清一级片| 日韩欧美www| 国产一区二区剧情av在线| 国产亚洲欧美激情| 99精品欧美一区二区三区小说| 综合网在线视频| 欧美三级蜜桃2在线观看| 日本aⅴ亚洲精品中文乱码| 精品国产乱码91久久久久久网站| 久久不见久久见免费视频1| 国产三级精品三级| 99国产欧美另类久久久精品| 亚洲最新视频在线观看| 欧美裸体bbwbbwbbw| 久久精品久久99精品久久| 欧美激情综合五月色丁香| 91丨porny丨蝌蚪视频| 亚洲一区在线视频| 精品区一区二区| 99免费精品在线| 日韩精品一级中文字幕精品视频免费观看| 91精品国产综合久久久蜜臀图片| 国产专区欧美精品| 亚洲精品亚洲人成人网| 91麻豆精品国产91久久久资源速度 | 日韩一区二区视频|