/// <summary>Converts a string to a Vocabulary_Type</summary> /// <param name="stringValue"></param> /// <param name="isClosedVocabulary"></param> /// <param name="link"></param> /// <returns></returns> public static VocabularyType ToVocabularyType(this string stringValue, bool isClosedVocabulary, string link) { VocabularyType returnVal = new VocabularyType(); returnVal.SetValue(stringValue, isClosedVocabulary, link); return(returnVal); }
public Vocabulary(string name, string description, VocabularyType type) { _Description = description; _Name = name; _Type = type; _ScopeId = Null.NullInteger; _ScopeTypeId = Null.NullInteger; _VocabularyId = Null.NullInteger; _Weight = 0; }
public Vocabulary(string name, string description, VocabularyType type) { this.Description = description; this.Name = name; this.Type = type; this.ScopeId = Null.NullInteger; this.ScopeTypeId = Null.NullInteger; this.VocabularyId = Null.NullInteger; this.Weight = 0; }
public Vocabulary(string name, string description, VocabularyType type) { Description = description; Name = name; Type = type; ScopeId = Null.NullInteger; ScopeTypeId = Null.NullInteger; VocabularyId = Null.NullInteger; Weight = 0; }
/// <summary>Set the value of a Vocabulary_Type variable</summary> /// <param name="vocabularyType"></param> /// <param name="value"></param> /// <param name="isClosedVocabulary"></param> /// <param name="link"></param> public static void SetValue(this VocabularyType vocabularyType, string value, bool isClosedVocabulary, string link) { if (value == null) { return; } if (vocabularyType == null) { vocabularyType = new VocabularyType(); } vocabularyType.Value = value; vocabularyType.Type = isClosedVocabulary ? VocabularyTypeValueType.ClosedVocabulary : VocabularyTypeValueType.OpenVocabulary; vocabularyType.Link = link; }
public Vocabulary(VocabularyType type) : this(Null.NullString, Null.NullString, type) { }
public Vocabulary(VocabularyType type, string code, string name) { Type = type; Code = code; Name = name; }