public class MapperDoc
extends java.lang.Object
Constructor and Description |
---|
MapperDoc(DTSContainer dts,
MapperBase mapperBase,
XMLDocumentImpl xmlDocumentImpl)
Instantiates a new mapper xbrlMap document.
|
Modifier and Type | Method and Description |
---|---|
void |
addContext(MapperContext newMapperContext)
Adds a new MapperContext node.
|
void |
addSection(MapperSection newMapperSection)
Adds a new MapperSection node.
|
void |
addSource(XBRLDataSource ds,
java.net.URI uriOfConfigFile,
java.lang.String key)
Adds a XBRLDataSource as a MapperSource child node.
|
void |
addUnit(XBRLUnit newUnit)
Adds a new unit.
|
void |
clear() |
void |
commit() |
void |
delContext(MapperContext mapperContext)
Deletes a MapperContext node.
|
void |
delSection(MapperSection mapperSection)
Deletes a MapperSection node.
|
void |
delUnit(XBRLUnit unit)
Deletes a unit.
|
java.lang.String |
getCompany()
Gets the MapperContexts company.
|
DTSContainer |
getContainer()
Returns the DTS Container object.
|
MapperDataSources |
getDataSources()
Gets the MapperDataSources node.
|
MapperDts |
getDts()
Gets the MapperDts node.
|
MapperFacts |
getFacts() |
MapperInstance |
getInstance()
Obtains the MapperInstance instance.
|
java.lang.String |
getKeyForSource(XBRLDataSource ds)
Gets de source key associated from the XBRLDataSource specified.
|
MapperBase |
getMapperBase()
Gets the MapperBase.
|
MapperFacts |
getOrCreateMapperFacts() |
MapperRootNode |
getRootNode() |
java.lang.String |
getScheme()
Gets the MapperContexts scheme.
|
MapperSection |
getSectionForKey(java.lang.String key)
Gets the MapperSection for key or null if not found.
|
java.util.Collection<MapperSection> |
getSections()
Gets all MapperSection as a Collection.
|
XBRLDataSource |
getSourceForKey(java.lang.String key)
Get the XBRLDataSource from the source key specified or null if not found.
|
java.util.Set<java.lang.String> |
getSourceKeys()
Gets the set of source keys.
|
java.util.Iterator<MapperSource> |
getSources()
Gets a iterator over MapperSource child nodes.
|
java.net.URI |
getUriOfConfigFile()
Gets the uri of config file.
|
XMLDocumentImpl |
getXMLDocumentImpl()
Gets the XMLDocumentImpl.
|
void |
setCompany(java.lang.String company)
Sets the company for MapperContexts node.
|
void |
setDataSources(MapperDataSources mapperDataSources)
Sets the MapperDataSources node.
|
void |
setDts(MapperDts mapperDts)
Sets the MapperDts node.
|
void |
setInstance(MapperInstance mapperInstance)
Sets the MapperInstance node.
|
void |
setRootNode(MapperRootNode mapperRootNode) |
void |
setScheme(java.lang.String scheme)
Sets the scheme for MapperContexts node.
|
void |
setUriOfConfigFile(java.net.URI uriOfConfigFile)
Sets the uri of config file.
|
void |
setXMLDocumentImpl(XMLDocumentImpl xmlDocumentImpl)
Sets the XMLDocumentImpl.
|
public MapperDoc(DTSContainer dts, MapperBase mapperBase, XMLDocumentImpl xmlDocumentImpl)
dts
- the containermapperBase
- the MapperBasexmlDocumentImpl
- the XMLDocumentImpl or nullpublic void addUnit(XBRLUnit newUnit)
newUnit
- the new unitpublic void delUnit(XBRLUnit unit)
unit
- to deletepublic DTSContainer getContainer()
public MapperDataSources getDataSources()
public MapperDts getDts()
public XMLDocumentImpl getXMLDocumentImpl()
public void setDts(MapperDts mapperDts)
mapperDts
- the new dtspublic void commit()
public MapperFacts getFacts()
public MapperFacts getOrCreateMapperFacts()
public MapperRootNode getRootNode()
public void setRootNode(MapperRootNode mapperRootNode)
public java.lang.String getScheme()
public java.lang.String getCompany()
public void setInstance(MapperInstance mapperInstance)
mapperInstance
- the new instancepublic MapperInstance getInstance()
public void addSection(MapperSection newMapperSection)
newMapperSection
- the new mapper sectionpublic void delSection(MapperSection mapperSection)
mapperSection
- the mapper sectionpublic void addSource(XBRLDataSource ds, java.net.URI uriOfConfigFile, java.lang.String key)
ds
- the XBRLDataSourceuriOfConfigFile
- the uri of config filekey
- the keypublic void setDataSources(MapperDataSources mapperDataSources)
mapperDataSources
- the new data sourcespublic void setXMLDocumentImpl(XMLDocumentImpl xmlDocumentImpl)
xmlDocumentImpl
- public void setUriOfConfigFile(java.net.URI uriOfConfigFile)
uriOfConfigFile
- the new uri of config filepublic java.net.URI getUriOfConfigFile()
public void delContext(MapperContext mapperContext)
mapperContext
- the mapper contextpublic void addContext(MapperContext newMapperContext)
newMapperContext
- the new mapper contextpublic MapperBase getMapperBase()
public XBRLDataSource getSourceForKey(java.lang.String key) throws MapConfigurationFileException
key
- the keyMapConfigurationFileException
- the map configuration file exceptionpublic java.lang.String getKeyForSource(XBRLDataSource ds) throws MapConfigurationFileException
ds
- the XBRLDataSourceMapConfigurationFileException
- the map configuration file exceptionpublic java.util.Set<java.lang.String> getSourceKeys()
public java.util.Iterator<MapperSource> getSources()
public void setScheme(java.lang.String scheme)
scheme
- the new schemepublic void setCompany(java.lang.String company)
company
- the new companypublic java.util.Collection<MapperSection> getSections()
public MapperSection getSectionForKey(java.lang.String key)
key
- the keypublic void clear() throws java.lang.Throwable
java.lang.Throwable
Copyright 2006-2015 Reporting Standard S.L., C/ Torrecilla del Puerto 1, 28043, Madrid, Espaņa