XBRLAPI

A Java API for XBRL


org.xbrlapi.impl
Class MockImpl

java.lang.Object
  extended by org.xbrlapi.impl.XMLImpl
      extended by org.xbrlapi.impl.FragmentImpl
          extended by org.xbrlapi.impl.MockImpl
All Implemented Interfaces:
Serializable, Comparable<XML>, Fragment, Mock, XML

public class MockImpl
extends FragmentImpl
implements Mock

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.xbrlapi.impl.XMLImpl
logger
 
Constructor Summary
  MockImpl()
          No argument constructor.
  MockImpl(String id)
           
protected MockImpl(String id, URI namespace, String name, String qName)
           
 
Method Summary
 void appendDataElement(URI namespace, String name, String qName)
           
 void setSequenceToParentElement(String sequence)
          Set the information about the sequence to be followed to reach the parent element of the fragment.
 
Methods inherited from class org.xbrlapi.impl.FragmentImpl
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
 
Methods inherited from class org.xbrlapi.impl.XMLImpl
appendMetadataElement, compareTo, equals, finalize, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xbrlapi.Fragment
appendElementSchemeXPointer, appendID, getAllChildren, getAllChildrenIndices, getAncestorOrSelf, getChild, getChildren, getChildren, getChildrenIndices, getDataRootElement, getElementSchemeXPointerExpression, getIDXPointerExpression, getLabels, getLabels, getLabels, getLabelsWithLanguage, getLabelsWithLanguageAndResourceRole, getLabelsWithLanguageAndResourceRoleAndLinkRole, getLabelsWithResourceRole, getLanguage, getLanguage, getLanguageName, getLanguageName, getLocalname, getLocalnameFromQName, getNamespace, getNamespaceFromQName, getParent, getParentElement, getParentIndex, getPrefixFromQName, getReferences, getReferencesWithLanguage, getReferencesWithLanguageAndResourceRoleAndLinkRole, getReferencesWithLanguageAndRole, getReferencesWithResourceRole, getReferencingLocators, getSequenceToParentElement, getSequenceToParentElementAsString, getSimpleLinks, getURI, getXPath, getXPointerExpression, isAncestorOf, isChild, isNewFragment, isRoot, setParentIndex, setSequenceToParentElement, setURI
 
Methods inherited from interface org.xbrlapi.XML
appendMetadataElement, equals, getBuilder, getDocumentNode, getIndex, getMetaAttribute, getMetadataRootElement, getStore, getType, hashCode, hasMetaAttribute, isa, isa, removeMetaAttribute, removeMetadataElement, serialize, serialize, serialize, setBuilder, setIndex, setMetaAttribute, setResource, setStore, updateInStore
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MockImpl

public MockImpl()
         throws XBRLException
No argument constructor.

Throws:
XBRLException

MockImpl

public MockImpl(String id)
         throws XBRLException
Parameters:
id - The unique id of the fragment being created, within the scope of the containing data store.
Throws:
XBRLException

MockImpl

protected MockImpl(String id,
                   URI namespace,
                   String name,
                   String qName)
            throws XBRLException
Parameters:
id - The unique id of the fragment being created, within the scope of the containing DTS.
namespace - The namespace for the root element of the data in the fragment.
name - The local name for the root element of the data in the fragment.
qName - The QName for the root element of the data in the fragment.
Throws:
XBRLException
Method Detail

appendDataElement

public void appendDataElement(URI namespace,
                              String name,
                              String qName)
                       throws XBRLException
Specified by:
appendDataElement in interface Mock
Parameters:
namespace - The namespace for the root element of the data in the fragment.
name - The local name for the root element of the data in the fragment.
qName - The QName for the root element of the data in the fragment.
Throws:
XBRLException
See Also:
Mock.appendDataElement(URI, String, String)

setSequenceToParentElement

public void setSequenceToParentElement(String sequence)
                                throws XBRLException
Set the information about the sequence to be followed to reach the parent element of the fragment.

Throws:
XBRLException

Get Java XBRL API implementation at SourceForge.net.