java.io.Serializable
public class XBRL
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Class | Description |
---|---|---|
static class |
XBRL.SegmentScope |
Modifier and Type | Field | Description |
---|---|---|
static Fact |
EMPTY |
|
static java.util.List |
EMPTYList |
Constructor | Description |
---|---|
XBRL() |
Default constructor
|
XBRL(boolean isSchemaRef,
boolean isLinkbaseRef,
boolean isImport) |
Basic class which represents all XBRL data and provides the basic access to
the data.
|
Modifier and Type | Method | Description |
---|---|---|
void |
close() |
Closes all related collectioins
|
java.util.List<Fact> |
find() |
Finds all child facts
|
java.util.List<Fact> |
find(Fact.Type type) |
Finds the child facts
|
java.util.Collection<Fact> |
find(java.lang.String value) |
Search text in the index
|
java.util.Collection<Fact> |
find(java.lang.String value,
Fact.Type type) |
Finds all matching child facts
|
java.util.Collection<Fact> |
find(java.lang.String value,
java.util.Collection<Fact.Type> types) |
Find w/o setting up the value attributes
|
java.util.List<Fact> |
find(java.util.Collection<Fact.Type> types) |
Finds the child facts
|
java.util.Collection<Fact> |
find(java.util.Collection<java.lang.String> values,
java.util.Collection<Fact.Type> types) |
Find multiple values
|
java.util.List<FactValue> |
findValues() |
Finds all child value facts
|
java.util.List<FactValue> |
findValues(Fact.DataType type) |
Finds child value facts of the indicated data type
|
java.util.List<FactValue> |
findValues(java.lang.String value) |
Finds child value facts
|
Fact |
first(java.util.Collection<Fact> facts) |
Returns the first fact form the collection.
|
java.util.List<FactValue> |
getCombinedTextValues() |
Concatenates all Texts for the same date into a single text.
|
ICompany |
getCompanyInfo() |
|
java.lang.String |
getCompanyNumber() |
|
java.util.List<Context> |
getContext(XBRL.SegmentScope scope) |
|
java.util.List<Context> |
getContext(java.lang.String dimension) |
Determines the contexts for the indicated dimension
|
java.util.Collection<java.lang.String> |
getDimensions() |
Determines all existing dimensions
|
EdgarFiling |
getFilingInfo() |
Determines the information from the last filing (file name and form)
|
java.lang.String |
getImportFileName(java.lang.String fileWithPath) |
Returns the import file name for the indicated path
|
IndexAPI |
getIndex() |
Provides access to the index
|
LabelAPI |
getLabelAPI() |
Access to the LabelAPI
|
java.util.Collection<java.net.URL> |
getLoadedURLs() |
Returns all urls which were loaded either via the load method or indirectly
by the system because the content of the url contains references to other
urls.
|
int |
getMaxFieldSize() |
|
java.util.Set<java.lang.String> |
getParameterNames() |
Determines all parameter names
|
java.util.Set<java.lang.String> |
getParameterNames(Fact.DataType dataType) |
Determines the parameter names with the indicated type
|
PresentationAPI |
getPresentationAPI() |
Access to PresentationAPI
|
java.util.List<java.lang.String> |
getValueAttributes() |
Returns the collection of all attribute names
|
IValueFormatter |
getValueFormatter(Fact.DataType type) |
|
boolean |
isEmpty() |
Check if we have any data available.
|
boolean |
isExtendedCompanyInformation() |
|
boolean |
isPostProcessingDone() |
|
boolean |
isSetupValueAttributes() |
|
void |
load(java.io.File file) |
Loads a file or files in a directory
|
boolean |
load(java.net.URL url) |
Loads the data from the URL
|
XBRL |
setCompanyInfo(ICompany company) |
|
void |
setCompanyNumber(java.lang.String cik) |
|
void |
setConvertHtmlToText(boolean convert) |
We convert any html to text
|
void |
setExtendedCompanyInformation(boolean extendedCompanyInformation) |
|
void |
setIgnoreHtml(boolean ignore) |
We make sure that we do not store any html information to save on memory.
|
void |
setMaxFieldSize(int maxFieldSize) |
|
void |
setPostProcessingDone(boolean postProcessingDone) |
|
void |
setSetupValueAttributes(boolean setupValueAttributes) |
|
void |
setValueFormatter(Fact.DataType type,
IValueFormatter formatter) |
|
ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> |
toTable() |
Converts all the values with an empty segment into a ITable
|
ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> |
toTable(java.util.function.Predicate<FactValue> p) |
Converts all the values with an empty segment into a ITable
|
java.lang.String |
toValueCSV() |
Provides the value elements as csv
|
void |
tryLoad(java.io.File f,
java.util.Collection<java.lang.Exception> errors) |
Try to load a file.
|
public static Fact EMPTY
public static java.util.List EMPTYList
public XBRL()
public XBRL(boolean isSchemaRef, boolean isLinkbaseRef, boolean isImport)
isSchemaRef
- isLinkbaseRef
- isImport
- public LabelAPI getLabelAPI()
public PresentationAPI getPresentationAPI()
public IndexAPI getIndex()
public void load(java.io.File file)
file
- public void tryLoad(java.io.File f, java.util.Collection<java.lang.Exception> errors)
f
- errors
- public boolean load(java.net.URL url) throws org.xml.sax.SAXException, java.io.IOException, javax.xml.parsers.ParserConfigurationException
url
- org.xml.sax.SAXException
java.io.IOException
javax.xml.parsers.ParserConfigurationException
public java.lang.String getImportFileName(java.lang.String fileWithPath)
fileWithPath
- public java.lang.String getCompanyNumber()
public void setCompanyNumber(java.lang.String cik)
public java.util.Collection<Fact> find(java.lang.String value, Fact.Type type)
value
- type
- public java.util.Collection<Fact> find(java.lang.String value, java.util.Collection<Fact.Type> types)
value
- types
- public java.util.Collection<Fact> find(java.util.Collection<java.lang.String> values, java.util.Collection<Fact.Type> types)
values
- types
- public java.util.Collection<Fact> find(java.lang.String value)
value
- public java.util.List<Fact> find()
public java.util.List<FactValue> findValues()
public java.util.List<FactValue> findValues(java.lang.String value)
public java.util.List<FactValue> findValues(Fact.DataType type)
public java.util.List<FactValue> getCombinedTextValues()
public java.util.Set<java.lang.String> getParameterNames(Fact.DataType dataType) throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
dataType
- java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public java.util.Set<java.lang.String> getParameterNames() throws java.io.IOException, org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException
java.io.IOException
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
public java.util.List<Fact> find(Fact.Type type)
type
- public java.util.List<Fact> find(java.util.Collection<Fact.Type> types)
types
- public java.util.Collection<java.net.URL> getLoadedURLs()
public Fact first(java.util.Collection<Fact> facts)
facts
- public void setIgnoreHtml(boolean ignore)
ignore
- public void setConvertHtmlToText(boolean convert)
public void setValueFormatter(Fact.DataType type, IValueFormatter formatter)
public IValueFormatter getValueFormatter(Fact.DataType type)
public java.util.List<java.lang.String> getValueAttributes()
public java.lang.String toValueCSV()
public ICompany getCompanyInfo()
public java.util.List<Context> getContext(XBRL.SegmentScope scope)
public java.util.List<Context> getContext(java.lang.String dimension)
dimension
- public java.util.Collection<java.lang.String> getDimensions()
public boolean isSetupValueAttributes()
public void setSetupValueAttributes(boolean setupValueAttributes)
public boolean isExtendedCompanyInformation()
public void setExtendedCompanyInformation(boolean extendedCompanyInformation)
public boolean isPostProcessingDone()
public void setPostProcessingDone(boolean postProcessingDone)
public int getMaxFieldSize()
public void setMaxFieldSize(int maxFieldSize)
public ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> toTable()
public ch.pschatzmann.common.table.ITableEx<ch.pschatzmann.common.table.Value> toTable(java.util.function.Predicate<FactValue> p)
public boolean isEmpty()
public EdgarFiling getFilingInfo()
public void close()