Class SupaCsiColumn
Provides the mapping from an import CSV column to the corresponding destination SUPA record field.
Inheritance
System.Object
SupaCsiColumn
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
Namespace: Subsembly.Supa
Assembly: Subsembly.Sepa.dll
Syntax
public class SupaCsiColumn
Fields
HeaderNames
List of alternative header names, e.g. different languages, for an import CSV column.
May be null
if the CSV file does not have headers.
Declaration
public string[] HeaderNames
Field Value
Type | Description |
---|---|
System.String[] |
Position
Zero based column position of import CSV column.
Declaration
public int Position
Field Value
Type | Description |
---|---|
System.Int32 |
Remarks
This defaults to -1 to indicate that the position is not defined.
Tag
The destination SUPA record field tag.
Declaration
public string Tag
Field Value
Type | Description |
---|---|
System.String |
Properties
HeaderName
The first header name from HeaderNames.
Declaration
public string HeaderName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Remarks
If no HeaderNames have been set, then this returns the value of Tag.
Methods
ContainsHeaderName(String)
Declaration
public bool ContainsHeaderName(string sHeaderName)
Parameters
Type | Name | Description |
---|---|---|
System.String | sHeaderName |
Returns
Type | Description |
---|---|
System.Boolean |
CreateJson()
Declaration
public JsonObject CreateJson()
Returns
Type | Description |
---|---|
JsonObject |
ParseJson(JsonObject)
Declaration
public static SupaCsiColumn ParseJson(JsonObject jsCsiColumn)
Parameters
Type | Name | Description |
---|---|---|
JsonObject | jsCsiColumn |
Returns
Type | Description |
---|---|
SupaCsiColumn |
ToString()
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System.String |
Overrides
System.Object.ToString()