⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fragment.java

📁 xbrlapi的源码
💻 JAVA
📖 第 1 页 / 共 2 页
字号:
    
    /**
     * Sets the sequence of child element counts that describe the
     * path through the parent fragment from its root to the element
     * that has this fragment's root as a child element.
     * @param children The vector of long integers giving the children counts for the parent fragment.
     * @throws XBRLException
     */
    public void setSequenceToParentElement(Vector<Long> children) throws XBRLException;
    
    /**
     * Get the number of children that precede this fragment's root element
     * in document order in the element that contains it (in the parent element).
     * @return The required number of preceding siblings.
     * @throws XBRLException
     */
    public String getPrecedingSiblings() throws XBRLException;
    
    /**
     * Set the number of children that precede this fragment's root element
     * in document order in the element that contains it (in the parent element).
     * @param children The list of children counts for the parent fragment.
     * @throws XBRLException if the parent fragment index cannot be set.
     */
    public void setPrecedingSiblings(Vector<Long> children) throws XBRLException;
    

    
    /**
     * Remove a DTS relationship to the fragment, identifying another
     * DTS fragment that this fragment is no longer related to.
     * @param index The index of the target of the relationship to be removed.
     * @throws XBRLException.
     */
    public void removeRelationship(String index) throws XBRLException;
    
    /**
     * Add an ID (used in XPointer resolution) to the metadata.
     * @param id The value of the ID.
     * @throws XBRLException.
     */
    public void appendID(String id) throws XBRLException;
    
    /**
     * Remove an ID from the metadata.
     * @param id The id to remove.
     * @throws XBRLException
     */
    public void removeID(String id) throws XBRLException;
    
    
    
    /**
     * Add an element Scheme XPointer Expression to the metadata.
     * @param expression The XPointer expression
     * @throws XBRLException.
     */
    public void appendElementSchemeXPointer(String expression) throws XBRLException;
    
    /**
     * Remove an element Scheme XPointer Expression from the metadata.
     * @param expression The XPointer expression.
     * @throws XBRLException.
     */
    public void removeElementSchemeXPointer(String expression) throws XBRLException;
    
    /**
     * Get the namespace of the fragment root element.
     *
     * @throws XBRLException
     */
    public String getNamespaceURI() throws XBRLException;
    


    /**
     * Get the local name of the fragment's root element
     *
     * @throws XBRLException
     */
    public String getLocalname() throws XBRLException;
    


    /**
     * Get the element in the parent fragment that has this fragment as its child.
     * @param parentDataRootElement The root element of the parent fragment's data.
     * @return the element of the parent fragment that has this fragment as
     * its child (or null if no parent exists).
     * @throws XBRLException
     */
    public Element getParentElement(Element parentDataRootElement) throws XBRLException;

    /**
     * Get the parent fragment of this fragment or null if there is none.
     * @return the parent fragment or null if none exists.
     * @throws XBRLException
     */
    public Fragment getParent() throws XBRLException;
    
    
    /**
     * Gets all child fragments.
     * @return the fragment list of children fragments or the empty list if no child
     * fragments exist in the data store.
     * @throws XBRLException
     */
    public FragmentList<Fragment> getAllChildren() throws XBRLException;
    
    /**
     * @return the list of simple links that are children of this fragment.
     * @throws XBRLException
     */
    public FragmentList<SimpleLink> getSimpleLinks() throws XBRLException;    
    
    /**
     * Gets the ancestor (or self) fragment with the specified fragment type.
     * @param type The required fragment type of the ancestor (or self).
     * @return the first ancestor (or self) fragment that matches the specified fragment type
     * working up the XML document structure from the supplied fragment to the root
     * of the XML document.
     * TODO Modify to use Generics so the fragment returned can be of a specific type.
     * @throws XBRLException if no such ancestor fragment exists.
     */
    public Fragment getAncestorOrSelf(String type) throws XBRLException;
    
    /**
     * Returns the Namespace for a QName in the context of a node in the fragment.
     * @param qname The qName value to resolve
     * @param node The node in the fragment data (as a DOM representation) to start QName resolution from.
     * @return the namespace declared on the fragment for the QName
     * @throws XBRLException if the namespace is not declared
     */
    public String getNamespaceFromQName(String qname, Node node) throws XBRLException;
    
    /**
     * Returns the local name for a QName
     * 
     * @param qname The qName value to resolve
     * @return the local name for the QName.
     */
    public String getLocalnameFromQName(String qname);
    
    /**
     * Returns the Namespace prefix for a QName
     * 
     * @param qname The qName value to resolve
     * @return the namespace prefix in the QName
     * @throws XBRLException 
     */
    public String getPrefixFromQName(String qname);
 
    /**
     * @return a list of label resources for the fragment.
     * @throws XBRLException
     */
    public FragmentList<LabelResource> getLabels() throws XBRLException;
    
    /**
     * @param role The XLink role value
     * @return the list of labels for this fragment with the specified XLink role.
     * @throws XBRLException
     */
    public FragmentList<LabelResource> getLabelsWithRole(String role) throws XBRLException;
    
    /**
     * @param language The xml:lang language codevalue
     * @return the list of labels for this fragment with the specified language code.
     * @throws XBRLException
     */
    public FragmentList<LabelResource> getLabelsWithLanguage(String language) throws XBRLException;

    /**
     * @param language The xml:lang language codevalue
     * @param role The XLink role value
     * @return the list of labels for this fragment with the specified language code and XLink role.
     * @throws XBRLException
     */
    public FragmentList<LabelResource> getLabelsWithLanguageAndRole(String language, String role) throws XBRLException;    
    
    /**
     * @return a list of references for the fragment based on XBRL 2.1 reference arcs.
     * @throws XBRLException
     */
    public FragmentList<ReferenceResource> getReferences() throws XBRLException;    
    
    /**
     * @param superType The specified fragment type to test against.
     * @return true if the fragment is an extension of the specified fragment type.
     * @throws XBRLException
     */
    public boolean isa(String superType) throws XBRLException;
   
    /**
     * @return the collection of networks including
     * relationships that involve this node as a source 
     * or a target.  Note that the networks are not 
     * completed in the sense that arcs are followed to
     * nodes that are then used to gather further relationships. 
     * @throws XBRLException
     */
    public Networks getNetworks() throws XBRLException;
    
    /**
     * @param arcrole the required arcrole value.
     * @return the collection of networks including
     * relationships that involve this node as a source 
     * or a target and that are expressed by arcs with the given
     * arcrole value.  Note that the networks are not 
     * completed in the sense that arcs are followed to
     * nodes that are then used to gather further relationships. 
     * @throws XBRLException
     */
    public Networks getNetworksWithArcrole(String arcrole) throws XBRLException;
    
    
	/**
	 * Override the Object equals method to base equality on the
	 * fragment index.
	 * @throws ClassCastException if the object that the fragment
	 * being compared to does not cast to a fragment.
	 */
	public boolean equals(Object o1) throws ClassCastException;
    
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -