public class HTMLReportHandler extends XBRLReportHandler implements XBRLTransformationResult, javax.xml.xpath.XPathVariableResolver, LangsProvider
negatedRoleURIS
Constructor and Description |
---|
HTMLReportHandler(TransformProcessor tp)
Instantiates a new HTML report handler.
|
Modifier and Type | Method and Description |
---|---|
int |
askUserNewEoyMonth()
Shows a dialog asking the user to set a new closing of fiscal year.
|
XBRLTransformationResult |
createNewResult(DTSContainer dts)
Creates a new document container.
|
void |
endOfDocument()
Called by the transformation processor to indicate the end of a document processing
Usually a document footer is produced.
|
int |
getBoyMonth()
Returns the month that has been set as the beginning of the fiscal year in the tool
|
java.net.URI |
getConfigFile()
Returns back the URI of the configuration file.
|
javax.xml.namespace.QName |
getDefaultUnit()
The default unit to be used when no other data is available.
|
int |
getEoyMonth()
Returns the month that has been set as the end of the fiscal year in the tool
|
java.util.Iterator<java.lang.String> |
getLangs()
Gets the langs.
|
java.lang.Object |
getResult()
Obtains the result of the loading process as an object.
|
void |
init()
Inits the.
|
boolean |
isNegated(XBRLFactItem fact)
true if the user interface is using a negated label role for .
|
void |
processContexts(java.util.Iterator<XBRLContext> contexts)
Called by the transformation processor to provide the contexts for the data
that will be found later during the processing of facts
the default process updates the content of some variables.
|
java.lang.Object |
resolveVariable(javax.xml.namespace.QName variableName) |
void |
sendToResult(DTSContainer dts,
javax.xml.transform.Result outputTarget)
Serializes the generated document to the next component in the
XML pipe (Result object)
This method will be called once per document.
|
void |
setConfigFile(java.net.URI configFile)
Sets the config file.
|
void |
setEoyMonth(int newEoyMonth)
Sets a new month as the end of a fiscal year. 0 = January
|
void |
setLangs(java.util.Collection<java.lang.String> lang)
Sets the langs.
|
void |
showNewLangsAddedMessage()
an application that implements LangsProvider is informed about new
languages added to the languages lists by the labels provider.
|
void |
startOfDocument(XBRLInstance instance)
Called by the transformation processor to indicate the start of a new document.
|
getFilterContext, getTransformer
public HTMLReportHandler(TransformProcessor tp)
tp
- the tppublic void sendToResult(DTSContainer dts, javax.xml.transform.Result outputTarget) throws javax.xml.transform.TransformerException
XBRLTransformationResult
sendToResult
in interface XBRLTransformationResult
dts
- the dtsoutputTarget
- Resultjavax.xml.transform.TransformerException
- if something goes wrong or the driver does not
support this output methodpublic XBRLTransformationResult createNewResult(DTSContainer dts)
XBRLReportHandlerInterface
createNewResult
in interface XBRLReportHandlerInterface
createNewResult
in class XBRLReportHandler
dts
- the dtspublic void endOfDocument()
XBRLReportHandlerInterface
endOfDocument
in interface XBRLReportHandlerInterface
endOfDocument
in class XBRLReportHandler
public void init() throws DataTargetConfigurationFileException
XBRLReportHandlerInterface
init
in interface XBRLReportHandlerInterface
init
in class XBRLReportHandler
DataTargetConfigurationFileException
- the data target configuration file exceptionpublic void processContexts(java.util.Iterator<XBRLContext> contexts)
XBRLReportHandlerInterface
processContexts
in interface XBRLReportHandlerInterface
processContexts
in class XBRLReportHandler
contexts
- Iteratorpublic void setConfigFile(java.net.URI configFile)
XBRLReportHandlerInterface
setConfigFile
in interface XBRLReportHandlerInterface
setConfigFile
in class XBRLReportHandler
configFile
- the new config filepublic java.net.URI getConfigFile()
XBRLReportHandlerInterface
getConfigFile
in interface XBRLReportHandlerInterface
public void startOfDocument(XBRLInstance instance) throws FactHandlerException
XBRLReportHandlerInterface
startOfDocument
in interface XBRLReportHandlerInterface
startOfDocument
in class XBRLReportHandler
instance
- the instanceFactHandlerException
- the fact handler exceptionpublic java.util.Iterator<java.lang.String> getLangs()
getLangs
in interface LangsProvider
public void setLangs(java.util.Collection<java.lang.String> lang)
setLangs
in interface LangsProvider
lang
- the lang to setpublic java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
resolveVariable
in interface javax.xml.xpath.XPathVariableResolver
public java.lang.Object getResult() throws javax.xml.transform.TransformerException
XBRLTransformationResult
getResult
in interface XBRLTransformationResult
javax.xml.transform.TransformerException
- if something goes wrong or the driver does not
support this output methodpublic void showNewLangsAddedMessage()
LangsProvider
The LabelsProvider requires a LangsProvider during the creation. that LangsProvider is informed about new languages when the labels database is build.
Applications should show a message to the user or call the LabelsProviderUI.showNewLangsAddedMessage() method that shows an standard message.
.NET api can use a different UI for the same purpose
showNewLangsAddedMessage
in interface LangsProvider
public int getBoyMonth()
HasBoySupport
getBoyMonth
in interface HasBoySupport
public int getEoyMonth()
HasBoySupport
getEoyMonth
in interface HasBoySupport
public void setEoyMonth(int newEoyMonth)
HasBoySupport
setEoyMonth
in interface HasBoySupport
newEoyMonth
- the new eoy monthpublic int askUserNewEoyMonth()
HasBoySupport
askUserNewEoyMonth
in interface HasBoySupport
public boolean isNegated(XBRLFactItem fact)
NegatedSupport
isNegated
in interface NegatedSupport
fact
- the factpublic javax.xml.namespace.QName getDefaultUnit()
DefaultUnitProviderInterface
getDefaultUnit
in interface DefaultUnitProviderInterface
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa