Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
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;
        }
Esempio n. 3
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;
        }
Esempio n. 4
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;
        }
Esempio n. 5
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;
        }
Esempio n. 6
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;
        }
Esempio n. 7
0
 public Vocabulary(VocabularyType type) : this(Null.NullString, Null.NullString, type)
 {
 }
Esempio n. 8
0
 public Vocabulary(VocabularyType type)
     : this(Null.NullString, Null.NullString, type)
 {
 }
Esempio n. 9
0
 public Vocabulary(VocabularyType type, string code, string name)
 {
     Type = type;
     Code = code;
     Name = name;
 }