C# Class Sfm2Xml.ClsHierarchyEntry

This class implements the data structure for the "hierarchy" mapping element. This element contains any number of "level" elements which define a hierarchy level. Attributes of "level" are: - name : (R) the name of this type - partOf : (R) this is a list of "levels" that this one can belong to. - beginFields : (R) this is a list of "field"-"sfm" values that defines which fields can be used to start a new "level". - additionalFields : (O) this is a list of "field"-"sfm" values that are allowed for this type. - multiFields : (O) this is a list of "field"-"sfm" values that can have multiple entries at this current level. - uniqueFields: (O) this is a list of "field"-"sfm" values that can only be used one time in each entry. It is used to override allowing multiple begin fields that are different to be combined in a given field/object.
Afficher le fichier Open project: sillsdev/FieldWorks Class Usage Examples

Méthodes publiques

Méthode Description
AddAdditionalField ( string sfm ) : bool
AddAncestor ( string ancestor ) : bool
AddBeginField ( string sfm ) : bool
AddMultiField ( string sfm ) : bool
AddUniqueField ( string sfm ) : bool
AdditionalFieldsContains ( string sfm ) : bool
BeginFieldsContains ( string sfm ) : bool
ClsHierarchyEntry ( ) : System
ClsHierarchyEntry ( string name ) : System
ClsHierarchyEntry ( string name, string partof, string beginFields, string additionalFields, string multiFields, string uniqueFields ) : System
ContainsAncestor ( string ancestor ) : bool
FindRootFromHash ( Hashtable hierarchy ) : string
MultiFieldsContains ( string sfm ) : bool
ReadXmlNode ( System Level ) : bool
RemoveAdditionalField ( string sfm ) : void
RemoveAncestor ( string ancestor ) : void
RemoveBeginField ( string sfm ) : void
RemoveMultiField ( string sfm ) : void
RemoveUniqueField ( string sfm ) : void
ToString ( ) : string
ToXmlString ( ) : string
UniqueFieldsContains ( string sfm ) : bool
UsesSFM ( string sfm ) : bool

Méthodes protégées

Méthode Description
TestMethodAddAncestors ( ICollection names ) : void

Private Methods

Méthode Description
Init ( ) : void
SplitString ( string xyz, Hashtable &list ) : void

Method Details

AddAdditionalField() public méthode

public AddAdditionalField ( string sfm ) : bool
sfm string
Résultat bool

AddAncestor() public méthode

public AddAncestor ( string ancestor ) : bool
ancestor string
Résultat bool

AddBeginField() public méthode

public AddBeginField ( string sfm ) : bool
sfm string
Résultat bool

AddMultiField() public méthode

public AddMultiField ( string sfm ) : bool
sfm string
Résultat bool

AddUniqueField() public méthode

public AddUniqueField ( string sfm ) : bool
sfm string
Résultat bool

AdditionalFieldsContains() public méthode

public AdditionalFieldsContains ( string sfm ) : bool
sfm string
Résultat bool

BeginFieldsContains() public méthode

public BeginFieldsContains ( string sfm ) : bool
sfm string
Résultat bool

ClsHierarchyEntry() public méthode

public ClsHierarchyEntry ( ) : System
Résultat System

ClsHierarchyEntry() public méthode

public ClsHierarchyEntry ( string name ) : System
name string
Résultat System

ClsHierarchyEntry() public méthode

public ClsHierarchyEntry ( string name, string partof, string beginFields, string additionalFields, string multiFields, string uniqueFields ) : System
name string
partof string
beginFields string
additionalFields string
multiFields string
uniqueFields string
Résultat System

ContainsAncestor() public méthode

public ContainsAncestor ( string ancestor ) : bool
ancestor string
Résultat bool

FindRootFromHash() public static méthode

public static FindRootFromHash ( Hashtable hierarchy ) : string
hierarchy System.Collections.Hashtable
Résultat string

MultiFieldsContains() public méthode

public MultiFieldsContains ( string sfm ) : bool
sfm string
Résultat bool

ReadXmlNode() public méthode

public ReadXmlNode ( System Level ) : bool
Level System
Résultat bool

RemoveAdditionalField() public méthode

public RemoveAdditionalField ( string sfm ) : void
sfm string
Résultat void

RemoveAncestor() public méthode

public RemoveAncestor ( string ancestor ) : void
ancestor string
Résultat void

RemoveBeginField() public méthode

public RemoveBeginField ( string sfm ) : void
sfm string
Résultat void

RemoveMultiField() public méthode

public RemoveMultiField ( string sfm ) : void
sfm string
Résultat void

RemoveUniqueField() public méthode

public RemoveUniqueField ( string sfm ) : void
sfm string
Résultat void

TestMethodAddAncestors() protected méthode

protected TestMethodAddAncestors ( ICollection names ) : void
names ICollection
Résultat void

ToString() public méthode

public ToString ( ) : string
Résultat string

ToXmlString() public méthode

public ToXmlString ( ) : string
Résultat string

UniqueFieldsContains() public méthode

public UniqueFieldsContains ( string sfm ) : bool
sfm string
Résultat bool

UsesSFM() public méthode

public UsesSFM ( string sfm ) : bool
sfm string
Résultat bool