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 |
askUserNewBoyMonth()
Shows a dialog asking the user to set a new Beginning of fiscal year .
|
XBRLTransformationResult |
createNewResult(net.sf.saxon.s9api.Processor proc)
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.
|
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(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 |
setBoyMonth(int newBoyMonth)
Sets a new month as the Beginning of a fiscal year. 0 = January
|
void |
setConfigFile(java.net.URI configFile)
Sets the config file.
|
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, getTransformerpublic HTMLReportHandler(TransformProcessor tp)
tp - the tppublic void sendToResult(javax.xml.transform.Result outputTarget)
throws javax.xml.transform.TransformerException
XBRLTransformationResultsendToResult in interface XBRLTransformationResultoutputTarget - Resultjavax.xml.transform.TransformerException - if something goes wrong or the driver does not
support this output methodpublic XBRLTransformationResult createNewResult(net.sf.saxon.s9api.Processor proc)
XBRLReportHandlerInterfacecreateNewResult in interface XBRLReportHandlerInterfacecreateNewResult in class XBRLReportHandlerproc - the Saxonica Processor instancepublic void endOfDocument()
XBRLReportHandlerInterfaceendOfDocument in interface XBRLReportHandlerInterfaceendOfDocument in class XBRLReportHandlerpublic void init()
throws DataTargetConfigurationFileException
XBRLReportHandlerInterfaceinit in interface XBRLReportHandlerInterfaceinit in class XBRLReportHandlerDataTargetConfigurationFileException - the data target configuration file exceptionpublic void processContexts(java.util.Iterator<XBRLContext> contexts)
XBRLReportHandlerInterfaceprocessContexts in interface XBRLReportHandlerInterfaceprocessContexts in class XBRLReportHandlercontexts - Iteratorpublic void setConfigFile(java.net.URI configFile)
XBRLReportHandlerInterfacesetConfigFile in interface XBRLReportHandlerInterfacesetConfigFile in class XBRLReportHandlerconfigFile - the new config filepublic java.net.URI getConfigFile()
XBRLReportHandlerInterfacegetConfigFile in interface XBRLReportHandlerInterfacepublic void startOfDocument(XBRLInstance instance) throws FactHandlerException
XBRLReportHandlerInterfacestartOfDocument in interface XBRLReportHandlerInterfacestartOfDocument in class XBRLReportHandlerinstance - the instanceFactHandlerException - the fact handler exceptionpublic java.util.Iterator<java.lang.String> getLangs()
getLangs in interface LangsProviderpublic void setLangs(java.util.Collection<java.lang.String> lang)
setLangs in interface LangsProviderlang - the lang to setpublic java.lang.Object resolveVariable(javax.xml.namespace.QName variableName)
resolveVariable in interface javax.xml.xpath.XPathVariableResolverpublic java.lang.Object getResult()
throws javax.xml.transform.TransformerException
XBRLTransformationResultgetResult in interface XBRLTransformationResultjavax.xml.transform.TransformerException - if something goes wrong or the driver does not
support this output methodpublic void showNewLangsAddedMessage()
LangsProviderThe 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 LangsProviderpublic int getBoyMonth()
HasBoySupportgetBoyMonth in interface HasBoySupportpublic void setBoyMonth(int newBoyMonth)
HasBoySupportsetBoyMonth in interface HasBoySupportnewBoyMonth - the new boy monthpublic int askUserNewBoyMonth()
HasBoySupportaskUserNewBoyMonth in interface HasBoySupportpublic boolean isNegated(XBRLFactItem fact)
NegatedSupportisNegated in interface NegatedSupportfact - the factpublic javax.xml.namespace.QName getDefaultUnit()
DefaultUnitProviderInterfacegetDefaultUnit in interface DefaultUnitProviderInterface