Skip to content

a68db287 f0b1 0ac4 5f2d 5bd8ee3b83c4

Fernando Garcia edited this page May 8, 2018 · 1 revision

TransformFileBehaviorModel Class

Additional header content

A Specialization of BaseBehaviorModel class.
Which represents a transform file behavior. If the writer that we are using generates a Xml transform file, this element allows us to define their behavior. Allows indicate if you want save it, where and if Xml code generated will indented.

Inheritance Hierarchy

System.Object
  iTin.Export.Model.BaseModel(BaseBehaviorModel)
    iTin.Export.Model.BaseBehaviorModel
      iTin.Export.Model.TransformFileBehaviorModel
Namespace: iTin.Export.Model
Assembly: iTin.Export.Core (in iTin.Export.Core.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

[SerializableAttribute]
public class TransformFileBehaviorModel : BaseBehaviorModel

VB

<SerializableAttribute>
Public Class TransformFileBehaviorModel
	Inherits BaseBehaviorModel

The TransformFileBehaviorModel type exposes the following members.

Constructors

 

Name Description
Public method TransformFileBehaviorModel Initializes a new instance of the TransformFileBehaviorModel class.
  Back to Top

Properties

 

Name Description
Public propertyCode example CanExecute Gets or sets a value indicating whether executes behavior. (Inherited from BaseBehaviorModel.)
Public propertyStatic member Default Gets a reference to default behavior.
Public propertyCode example Indented Gets or sets a value that determines whether transform file is saved indented.
Public property IsDefault Gets a value indicating whether this instance is default. (Overrides BaseBehaviorModel.IsDefault.)
Public propertyCode example Path Gets or sets the path of transformation file, applies only in desktop mode.
Public property Properties Gets or sets a reference to user-defined property list for this element. (Inherited from BaseModel(T).)
Public propertyCode example Save Gets or sets a value that determines whether to save the transform file. If the writer has been designed to generate transform files, set this attribute to Yes for get a copy of the file.
  Back to Top

Methods

 

Name Description
Public method Equals (Inherited from Object.)
Public method Execute(IWriter) Execute behavior. (Inherited from BaseBehaviorModel.)
Public method Execute(IWriter, ExportSettings) Execute behavior. (Inherited from BaseBehaviorModel.)
Protected method ExecuteBehavior Code for execute download behavior. (Overrides BaseBehaviorModel.ExecuteBehavior(IWriter, ExportSettings).)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Protected method GetStaticBindingValue Gets the static binding value by reflection. (Inherited from BaseModel(T).)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method SaveToFile(String) Saves to file. (Inherited from BaseModel(T).)
Public method SaveToFile(String, Exception) Serializes current BaseModel object into file (Inherited from BaseModel(T).)
Public method Serialize Serializes current BaseModel object into an Xml document. (Inherited from BaseModel(T).)
Public method SetOwner Sets a reference to the owner object that contains this instance. (Inherited from BaseBehaviorModel.)
Public method ToString Returns a string that represents the current object. (Inherited from BaseModel(T).)
  Back to Top

Remarks

Belongs to: Behaviors. For more information, please see BehaviorsModel.
ITEE Object Element Usage

<TransformFile .../>

Attributes

Attribute Optional Description
CanExecute Yes Determines whether executes behavior. The default is Yes.
Indented Yes Determines whether transform the file is saved indented. The default is Yes.
Save Yes If the writer has been designed to generate transform files, set this attribute to Yes for get a copy of the file. The default is No.
Path Yes Sets the file path of transformation, if omitted used the same output element path. To specify a relative path use the character (~). The default is "Default". />.
Applies only in desktop mode.
Compatibility table with native writers.
Comma-Separated Values
CsvWriter
Tab-Separated Values
TsvWriter
SQL Script
SqlScriptWriter
XML Spreadsheet 2003
Spreadsheet2003TabularWriter
X X X X
A X value indicates that the writer supports this element.

Examples

XML

<Behaviors>
  <Downdload LocalCopy="Yes"/>
  <TransformFile Execute="Yes" Indented="Yes" Save="Yes" Path="~\Output"/>
</Behaviors>

See Also

Reference

iTin.Export.Model Namespace

Clone this wiki locally