TFORMer SDK - NET
8
|
Specialized DataSource for XML data. More...
Public Member Functions | |
ComputedField | AddComputedField (string name) |
Creates and adds a ComputedField to the DataSource. | |
DSFieldMapping | AddFieldMapping (string name) |
Creates and adds a DSFieldMapping to the DataSource. | |
DataSourceParameter | AddParameter (string name) |
Creates and adds a DataSourceParameter to the DataSource. | |
void | Dispose () |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. | |
ComputedField | GetComputedField (string name) |
Gets a ComputedField defined in the DataSource. | |
DSFieldMapping | GetFieldMapping (string name) |
Gets a DSFieldMapping defined in the DataSource. | |
DataSourceParameter | GetParameter (string name) |
Gets a DataSourceParameter defined in the DataSource. | |
void | RemoveComputedField (string name) |
Removes the ComputedField from the DataSource. | |
void | RemoveComputedField (ComputedField computedField) |
Removes the ComputedField from the DataSource. | |
void | RemoveFieldMapping (string name) |
Removes the DSFieldMapping from the DataSource. | |
void | RemoveFieldMapping (DSFieldMapping fieldMapping) |
Removes the DSFieldMapping from the DataSource. | |
void | RemoveParameter (string name) |
Removes the DataSourceParameter from the DataSource. | |
void | RemoveParameter (DataSourceParameter datasourceParameter) |
Removes the DataSourceParameter from the DataSource. | |
override string | ToString () |
Returns a string representation of the instance. | |
Properties | |
string | Comment [get, set] |
Gets/Sets the comment for the DataSource. | |
string | CopyColumnName [get, set] |
Gets/Sets the CopyColumnName of the DataSource. | |
string | Description [get, set] |
Gets/Sets the description of the DataSource. | |
string | Filename [get, set] |
Gets/Sets the filename of the XML-file. | |
ComputedField | FirstComputedField [get] |
Gets the first ComputedField defined in the DataSource. | |
DSFieldMapping | FirstFieldMapping [get] |
Gets the first DSFieldMapping defined in the DataSource. | |
DataSourceParameter | FirstParameter [get] |
Gets the first DataSourceParameter defined in the DataSource. | |
bool | HandleEscapeSequences [get, set] |
Gets/Sets if escape sequences should be translated on data retrieval or not. | |
bool | IsDefault [get] |
Gets a value indicating whether this object stores the default DataSource. | |
string | Name [get, set] |
Gets/Sets the name of the DataSource. | |
DataSource | Next [get] |
Gets the next DataSource instance defined in the Project. | |
int | NumberOfComputedFields [get] |
Gets the number of ComputedFields defined in the DataSource. | |
int | NumberOfFieldMappings [get] |
Gets the number of DSFieldMappings defined in the DataSource. | |
int | NumberOfParameters [get] |
Gets the number of DataSourceParameters defined in the DataSource. | |
DataSourceType | Type [get] |
Gets the type of the DataSource. | |
string | XsltFilename [get, set] |
Gets/Sets the filename of the XSLT file for transforming the XML file. |
Specialized DataSource for XML data.
DataSourceXml is a specialized DataSource for importing data from XML-Files. This class is used to manipulate existing DataSourceXml objects. To create a new DataSource use TFORMer Designer or Project.AddDataSource.
The main properties to characterize a DataSourceXml are:
Sample source code for modifying an existing DataSourceXml:
// Retrieve the global Project // DataSources are defined in a Project or a global Project Project project = repository.GlobalProject; // Retrieve the DataSource by name // Since we know the type of the DataSource, we can cast it to DataSourceXml DataSourceXml dataSource = (DataSourceXml)project.GetDataSource("XML"); // Modify some DataSource properties dataSource.XsltFilename = ""; // clear XSLT filename
ComputedField AddComputedField | ( | string | name | ) | [inherited] |
Creates and adds a ComputedField to the DataSource.
name | The name of the ComputedField |
DSFieldMapping AddFieldMapping | ( | string | name | ) | [inherited] |
Creates and adds a DSFieldMapping to the DataSource.
name | The name of the DataField for which a DSFieldMapping should be created. |
DataSourceParameter AddParameter | ( | string | name | ) | [inherited] |
Creates and adds a DataSourceParameter to the DataSource.
name | The name of the DataSourceParameter |
void Dispose | ( | ) | [inherited] |
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
ComputedField GetComputedField | ( | string | name | ) | [inherited] |
Gets a ComputedField defined in the DataSource.
name | The name of the ComputedField |
null
DSFieldMapping GetFieldMapping | ( | string | name | ) | [inherited] |
Gets a DSFieldMapping defined in the DataSource.
Retrieves the DSFieldMapping for a given DataField name from the DataSource
name | The name of a DataField |
null
DataSourceParameter GetParameter | ( | string | name | ) | [inherited] |
Gets a DataSourceParameter defined in the DataSource.
name | The name of the DataSourceParameter |
null
void RemoveComputedField | ( | string | name | ) | [inherited] |
Removes the ComputedField from the DataSource.
name | The name of the ComputedField |
void RemoveComputedField | ( | ComputedField | computedField | ) | [inherited] |
Removes the ComputedField from the DataSource.
computedField | The ComputedField |
void RemoveFieldMapping | ( | string | name | ) | [inherited] |
Removes the DSFieldMapping from the DataSource.
name | The name of the DataField for which the mapping should be deleted |
void RemoveFieldMapping | ( | DSFieldMapping | fieldMapping | ) | [inherited] |
Removes the DSFieldMapping from the DataSource.
fieldMapping | The DSFieldMapping |
void RemoveParameter | ( | string | name | ) | [inherited] |
Removes the DataSourceParameter from the DataSource.
name | The name of the DataSourceParameter |
void RemoveParameter | ( | DataSourceParameter | datasourceParameter | ) | [inherited] |
Removes the DataSourceParameter from the DataSource.
datasourceParameter | The DataSourceParameter |
override string ToString | ( | ) |
Returns a string representation of the instance.
Reimplemented from DataSource.
string Comment [get, set, inherited] |
Gets/Sets the comment for the DataSource.
string CopyColumnName [get, set, inherited] |
Gets/Sets the CopyColumnName of the DataSource.
string Description [get, set, inherited] |
Gets/Sets the description of the DataSource.
string Filename [get, set] |
Gets/Sets the filename of the XML-file.
ComputedField FirstComputedField [get, inherited] |
Gets the first ComputedField defined in the DataSource.
null
DSFieldMapping FirstFieldMapping [get, inherited] |
Gets the first DSFieldMapping defined in the DataSource.
null
DataSourceParameter FirstParameter [get, inherited] |
Gets the first DataSourceParameter defined in the DataSource.
null
bool HandleEscapeSequences [get, set, inherited] |
Gets/Sets if escape sequences should be translated on data retrieval or not.
true
if escape sequences should be translated.bool IsDefault [get, inherited] |
Gets a value indicating whether this object stores the default DataSource.
true
if this DataSource is the default DataSource.string Name [get, set, inherited] |
Gets/Sets the name of the DataSource.
DataSource Next [get, inherited] |
Gets the next DataSource instance defined in the Project.
A Project stores a list of DataSource objects. To retrieve the first DataSource in the Project see Project.FirstDataSource.
null
if there aren't other instances in the Project, otherwise a valid instance of this class (DataSourceCsv, DataSourceOdbc or DataSourceXml)int NumberOfComputedFields [get, inherited] |
Gets the number of ComputedFields defined in the DataSource.
int NumberOfFieldMappings [get, inherited] |
Gets the number of DSFieldMappings defined in the DataSource.
int NumberOfParameters [get, inherited] |
Gets the number of DataSourceParameters defined in the DataSource.
DataSourceType Type [get, inherited] |
Gets the type of the DataSource.
The DataSourceType is read-only, and is set on creation. It specifies the type of a DataSource (e.g. DataSourceOdbc, DataSourceCsv, DataSourceXml).
string XsltFilename [get, set] |
Gets/Sets the filename of the XSLT file for transforming the XML file.
© 2006-2024 - all rights reserved by TEC-IT Datenverarbeitung GmbH | |
Generated on Wed Aug 7 2024 17:29:42 for TFORMer SDK - NET with doxygen 1.7.6.1 |