org.xbrlapi.impl
Class ContextImpl
java.lang.Object
org.xbrlapi.impl.XMLImpl
org.xbrlapi.impl.FragmentImpl
org.xbrlapi.impl.FactDimensionContainerImpl
org.xbrlapi.impl.ContextImpl
- All Implemented Interfaces:
- Serializable, Comparable<XML>, Context, FactDimensionContainer, Fragment, XML
public class ContextImpl
- extends FactDimensionContainerImpl
- implements Context
- Author:
- Geoffrey Shuetrim (geoff@galexy.net)
- See Also:
- Serialized Form
| 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 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 |
ContextImpl
public ContextImpl()
getEntity
public Entity getEntity()
throws XBRLException
- Get the entity of the context.
- Specified by:
getEntity in interface Context
- Throws:
XBRLException - if the entity is missing or if more than one entity is in the context.- See Also:
Context.getEntity()
getPeriod
public Period getPeriod()
throws XBRLException
- Get the period of the context.
- Specified by:
getPeriod in interface Context
- Throws:
XBRLException - if the period is missing from the context
or there is more than one period in the context.- See Also:
Context.getPeriod()
getScenario
public Scenario getScenario()
throws XBRLException
- Get the scenario of the context.
- Specified by:
getScenario in interface Context
- Returns:
- the scenario if one exists or null if there is no scenario.
- Throws:
XBRLException - if there is more than one scenario.- See Also:
Context.getScenario()
equals
public boolean equals(Context context)
throws XBRLException
- Tests if the context is c-equal to another context
See the XBRL 2.1 specification for a definition of c-equal.
- Specified by:
equals in interface Context
- Parameters:
context - The context being compared.
- Returns:
- true if this context is c-equal to the specified one and false otherwise.
- Throws:
XBRLException- See Also:
Context.equals(Context)
getReferencingItems
public List<Item> getReferencingItems()
throws XBRLException
- Specified by:
getReferencingItems in interface FactDimensionContainer- Overrides:
getReferencingItems in class FactDimensionContainerImpl
- Returns:
- the list of items in the instance that reference this context.
The list is empty if no facts in the instance reference this context.
- Throws:
XBRLException- See Also:
FactDimensionContainer.getReferencingItems()