public class XmlConnector extends BaseDataSetConnector implements DataSetConnector<XmlConnectorParams,ConnectorResult>
DEFAULT_IMPORTAPP, COMMAND, ETL_DRIVER, FORMATTER, IDE_NODE, NO_RANK, WIDGET| Constructor and Description |
|---|
XmlConnector() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canRead()
Checks if connector can read data.
|
boolean |
canWrite()
Checks if connector can write data.
|
void |
cleanUp(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Cleans up after DataSetConnector populated or persisted DataSet.
|
XmlConnectorParams |
getDataSetConnectorParams()
Gets the DataSetConnectorParams.
|
String |
getDisplayName()
Gets the display name.
|
String |
getExt()
Gets the file ext.
|
String |
getName()
Gets the name.
|
String |
getVendor()
Gets the vendor.
|
String |
getVersion()
Gets the version of the extension module.
|
String |
getXmlConfigFileName()
Gets the path to the xml configuration file for the module.
|
String |
initQueryLabel()
The init query label.
|
void |
inlinePersist(XmlConnectorParams params,
DataSet dataSet,
Driver driver,
DataSetRecord record,
int row,
int records)
Persists data set row.
|
boolean |
isFileConnector()
Checks if this is a connector to the file based data source.
|
boolean |
isTextFormat()
Checks if this is a connector for the text-based data format, such as
JOSN, XML, etc.
|
ConnectorResult |
persist(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Persists data set.
|
ConnectorResult |
populate(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Populates data set.
|
void |
postPersist(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Called when DataSetConnector finished persisting data set.
|
void |
prePersist(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Called when DataSetConnector starts persisting data set.
|
boolean |
supportsNested()
Supports nested.
|
boolean |
supportsReadStreaming()
Supports read streaming.
|
boolean |
supportsWriteStreaming()
Supports write streaming.
|
String |
transform(InputStream xml,
OutputStream out,
String xsltFileName)
Transforms given xml using style sheet.
|
void |
transform(OutputStream out,
Source xmlSource,
Source xsltSource)
Transforms given xmlSource which must be formatted as xml using the
xsltSource.
|
String |
transform(String xmlFileName,
String outputFileName,
String xsltFileName)
Transforms given xml file using style sheet.
|
ConnectorResult |
writeMetaData(XmlConnectorParams params,
DataSet dataSet,
Driver driver)
Writes meta data.
|
addValue, basePostPersist, getCommitPolicy, getInputStream, getIoProcessor, getLicensePropertyName, getReader, getType, postPersistWhenEmpty, setCommitPolicy, stream, supportsWorksheets, testConnectioncompareTo, getConfigFileName, getExtensionRank, getIconPath, getLocalUnitClassPathclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportsReordering, supportsWorksheets, testConnectionpublic boolean canRead()
DataSetConnectorcanRead in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public boolean canWrite()
DataSetConnectorcanWrite in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public void cleanUp(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorcleanUp in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic XmlConnectorParams getDataSetConnectorParams()
DataSetConnectorgetDataSetConnectorParams in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public String getDisplayName()
ExtensionModulegetDisplayName in interface ExtensionModulepublic String getExt()
BaseDataSetConnectorgetExt in interface DataSetConnector<XmlConnectorParams,ConnectorResult>getExt in class BaseDataSetConnectorpublic String getName()
DataSetConnectorgetName in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public String getVendor()
ExtensionModulegetVendor in interface ExtensionModulepublic String getVersion()
ExtensionModulegetVersion in interface ExtensionModulepublic String getXmlConfigFileName()
ExtensionModulegetXmlConfigFileName in interface ExtensionModulegetXmlConfigFileName in class BaseExtensionpublic void inlinePersist(XmlConnectorParams params, DataSet dataSet, Driver driver, DataSetRecord record, int row, int records) throws Exception
DataSetConnectorinlinePersist in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverrecord - the recordrow - the rowrecords - the total number of recordsException - in case of any errorpublic boolean isFileConnector()
DataSetConnectorisFileConnector in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public boolean isTextFormat()
DataSetConnectorisTextFormat in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public ConnectorResult persist(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpersist in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic ConnectorResult populate(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpopulate in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic void postPersist(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorpostPersist in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic void prePersist(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorprePersist in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic String transform(InputStream xml,
OutputStream out,
String xsltFileName)
throws Exception
xml - the xmlout - the output streamxsltFileName - the xslt file nameException - in case of any errorpublic void transform(OutputStream out,
Source xmlSource,
Source xsltSource)
throws Exception
out - the output streamxmlSource - the xmlxsltSource - the xsl style sheetException - in case of any errorpublic String transform(String xmlFileName,
String outputFileName,
String xsltFileName)
throws Exception
xmlFileName - the xml file nameoutputFileName - the output file namexsltFileName - the xslt file nameException - in case of any errorpublic ConnectorResult writeMetaData(XmlConnectorParams params, DataSet dataSet, Driver driver) throws Exception
DataSetConnectorwriteMetaData in interface DataSetConnector<XmlConnectorParams,ConnectorResult>params - the DataSetConnectorParamsdataSet - the data setdriver - the driverException - in case of any errorpublic String initQueryLabel()
DataSetConnectorinitQueryLabel in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public boolean supportsReadStreaming()
DataSetConnectorsupportsReadStreaming in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public boolean supportsWriteStreaming()
DataSetConnectorsupportsWriteStreaming in interface DataSetConnector<XmlConnectorParams,ConnectorResult>public boolean supportsNested()
DataSetConnectorsupportsNested in interface DataSetConnector<XmlConnectorParams,ConnectorResult>Copyright © 2010-2020 Toolsverse. All Rights Reserved.