arcroletypeimpl.java
来自「xbrlapi的源码」· Java 代码 · 共 42 行
JAVA
42 行
package org.xbrlapi.impl;
import org.w3c.dom.Element;
import org.xbrlapi.ArcroleType;
import org.xbrlapi.Networks;
import org.xbrlapi.utilities.XBRLException;
/**
* @author Geoffrey Shuetrim (geoff@galexy.net)
*/
public class ArcroleTypeImpl extends CustomTypeImpl implements ArcroleType {
/**
* Get the cyclesAllowed attribute value (one of any, directed or none).
* @return the value of the cyclesAllowed attribute (even if it is not one of the valid values).
* @throws XBRLException if no attribute value is provided.
* @see org.xbrlapi.ArcroleType#getCyclesAllowed()
*/
public String getCyclesAllowed() throws XBRLException {
Element root = getDataRootElement();
if (root.hasAttribute("cyclesAllowed")) {
return root.getAttribute("cyclesAllowed");
}
throw new XBRLException("A cyclesAllowed attribute must be specified.");
}
/**
* get the collection of networks expressed using arcs that involve this
* arc role.
*/
public Networks getNetworks() throws XBRLException {
return getStore().getNetworks(this.getCustomURI());
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?