public class ExcelDataSource extends AbstractWorksheetDataSource
| Constructor and Description |
|---|
ExcelDataSource() |
| Modifier and Type | Method and Description |
|---|---|
void |
endOfDocument(XBRLInstance instance)
Called by the MapEngine when a new instance is finished
Can be used to close connections to data sources.
|
java.lang.Object |
getFootnote(java.lang.String mapIdentifier,
int index,
XBRLFact fact)
After a fact is produced the data source is asked for a footnote to be
added to the instance document by doing a call to this method.
|
java.lang.String |
getFootnoteLang(java.lang.String mapIdentifier,
int index,
XBRLFact fact,
java.lang.Object footnoteContent)
Every footnote MUST have an xml:lang attribute.
|
java.lang.Object |
getSampleData(java.lang.Object data)
This method is used by the mapper editor during test cycles of the mapper
The implemented class should use the incoming data to produce an object that
the mapper can use later to produce an instance document .
|
SheetPointFactory |
getSheetPointFactory()
Gets the sheet point factory.
|
java.lang.String |
getTooltip()
This is the method that must be implemented by classes that provides the tooltip
historical information.
|
net.sf.saxon.value.AtomicValue |
getValue(java.lang.String mapIdentifier,
int index,
XBRLContext context,
net.sf.saxon.type.SimpleType type)
Each data item has mapIdentifier string each used concept in the taxonomy
has at least one mapIdentifier
returns the Value to be sent to the fact item. null is allowed and will
be considered as no input data available
|
boolean |
isNil(java.lang.String mapIdentifier,
int index,
XMLElementDefinition concept)
Return true if the concept content is xsi:nil so there will be no request for a value.
|
void |
startOfDocument(XBRLInstance instance,
java.lang.Object[] inputs,
DTSLoadingBarInterface bar)
Called by the MapEngine when a new instance that requires this data source is
going to be created.
|
addMap, addOrModifyRound, addRuleMap, createConfigFileContent, createOrGetRoundIdentifier, deleteRegion, delRound, delRuleMap, endOfFact, getApiMessages, getCells, getComments, getConfigFile, getContext, getDataFile, getDefaultZeroValuePolicyType, getExactMode, getExactModeValue, getFootnoteCellAndLang, getFormat, getFormatValue, getHistoricalMessage, getMapId, getMapIdentifierReferences, getMapIterator, getMapSheetPoint, getMethod, getMethod, getMult, getMult, getNumberOfValues, getRound, getRoundingIdentifiers, getRoundMode, getRuleCells, getSourceReference, getUnit, getZeroValuePolicy, init, isConfigfileRequired, isInputFileRequired, isMapIdentifierInUse, isTupleSourceRequired, moveRegion, removeMap, save, setConfigFile, setDataFile, setDefaultRounding, startOfFact, verifyRuleequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodepublic void startOfDocument(XBRLInstance instance, java.lang.Object[] inputs, DTSLoadingBarInterface bar) throws MapException
XBRLDataSourceinstance - this is the XBRLInstance document.inputs - Input parameters, they are different objects for each driver.bar - this is an optional parameter, if not null, the driver can send messages to inform about the initialization processMapException - the map exceptionpublic void endOfDocument(XBRLInstance instance)
XBRLDataSourceendOfDocument in interface XBRLDataSourceendOfDocument in class AbstractWorksheetDataSourceinstance - this is the XBRLInstance document.public boolean isNil(java.lang.String mapIdentifier,
int index,
XMLElementDefinition concept)
XBRLDataSourceisNil in interface XBRLDataSourceisNil in class AbstractWorksheetDataSourcemapIdentifier - the map identifierindex - the indexconcept - the conceptpublic net.sf.saxon.value.AtomicValue getValue(java.lang.String mapIdentifier,
int index,
XBRLContext context,
net.sf.saxon.type.SimpleType type)
throws MapException
XBRLDataSourcemapIdentifier - Stringindex - intcontext - XBRLContext the XBRL Context for the fact being reported. The context
should not be modified here.type - This is that target schema type obtained from the element definitionMapException - the map exceptionpublic java.lang.Object getFootnote(java.lang.String mapIdentifier,
int index,
XBRLFact fact)
XBRLDataSourcegetFootnote in interface XBRLDataSourcegetFootnote in class AbstractWorksheetDataSourcemapIdentifier - Stringindex - intfact - XBRLFactItempublic java.lang.String getFootnoteLang(java.lang.String mapIdentifier,
int index,
XBRLFact fact,
java.lang.Object footnoteContent)
XBRLDataSourcegetFootnoteLang in interface XBRLDataSourcegetFootnoteLang in class AbstractWorksheetDataSourcemapIdentifier - the map identifierindex - the indexfact - the factfootnoteContent - the footnote contentpublic java.lang.Object getSampleData(java.lang.Object data)
throws MapException
XBRLDataSourcedata - objectMapException - in the case the input object cannot be usedpublic SheetPointFactory getSheetPointFactory()
AbstractWorksheetDataSourcegetSheetPointFactory in class AbstractWorksheetDataSourcepublic java.lang.String getTooltip()
HasSomethingToSayCopyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa