C# Class Sfm2Xml.LexImportField

This class is used to contain the field element in the FW import fields xml file
Inheritance: ILexImportField
Show file Open project: sillsdev/FieldWorks Class Usage Examples

Public Methods

Method Description
ClsFieldDescriptionWith ( ClsFieldDescription fieldIn ) : ClsFieldDescription
LexImportField ( ) : System
LexImportField ( string name, string uiDest, string prop, string sig, bool list, bool multi, bool unique, string mdf ) : System
ReadNode ( System node ) : bool

Read a 'Field' node from the controled xml file that contains the ImportFields

Private Methods

Method Description
ReadBoolValue ( string boolValue, bool defaultValue ) : bool
ReadRequiredString ( string stringValue, bool &exists ) : string

This method will set exists to true if there is data in the passed in string and will return that data, otherwise it will return null and exists will be false.

Method Details

ClsFieldDescriptionWith() public method

public ClsFieldDescriptionWith ( ClsFieldDescription fieldIn ) : ClsFieldDescription
fieldIn ClsFieldDescription
return ClsFieldDescription

LexImportField() public method

public LexImportField ( ) : System
return System

LexImportField() public method

public LexImportField ( string name, string uiDest, string prop, string sig, bool list, bool multi, bool unique, string mdf ) : System
name string
uiDest string
prop string
sig string
list bool
multi bool
unique bool
mdf string
return System

ReadNode() public method

Read a 'Field' node from the controled xml file that contains the ImportFields
public ReadNode ( System node ) : bool
node System
return bool