Пример #1
0
        private bool Contains(XmlSchemaDerivationMethod _value)
        {
            XSSubstitutionGroupExclusions _enumValue = EnumerationXSSubstitutionGroupExclusions.FromNativeValue(_value);
            IValue _idx = _values.Find(_enumValue);

            return(_idx.DataType != DataType.Undefined);
        }
Пример #2
0
        internal static XSSubstitutionGroupExclusions FromNativeValue(XmlSchemaDerivationMethod native)
        {
            switch (native)
            {
            case XmlSchemaDerivationMethod.All:
            case XmlSchemaDerivationMethod.Restriction:
            case XmlSchemaDerivationMethod.Extension:

                EnumerationXSSubstitutionGroupExclusions enumeration = GlobalsManager.GetEnum <EnumerationXSSubstitutionGroupExclusions>();
                return(enumeration._valuesCache[native]);

            default:
                return(null);
            }
        }
Пример #3
0
        public static EnumerationXSSubstitutionGroupExclusions CreateInstance()
        {
            TypeDescriptor type          = TypeManager.RegisterType("EnumerationXSSubstitutionGroupExclusions", typeof(EnumerationXSSubstitutionGroupExclusions));
            TypeDescriptor enumValueType = TypeManager.RegisterType("XSSubstitutionGroupExclusions", typeof(XSSubstitutionGroupExclusions));

            TypeManager.RegisterAliasFor(type, "ПеречислениеИсключенияГруппПодстановкиXS");
            TypeManager.RegisterAliasFor(enumValueType, "ИсключенияГруппПодстановкиXS");

            EnumerationXSSubstitutionGroupExclusions instance = new EnumerationXSSubstitutionGroupExclusions(type, enumValueType);

            instance.AddValue("Все", "All", instance._valuesCache[XmlSchemaDerivationMethod.All]);
            instance.AddValue("Ограничение", "Restriction", instance._valuesCache[XmlSchemaDerivationMethod.Restriction]);
            instance.AddValue("Расширение", "Extension", instance._valuesCache[XmlSchemaDerivationMethod.Extension]);

            return(instance);
        }
Пример #4
0
 public static XSSubstitutionGroupExclusions FromNativeValue(XmlSchemaDerivationMethod native)
 => EnumerationXSSubstitutionGroupExclusions.FromNativeValue(native);
Пример #5
0
 internal XSSubstitutionGroupExclusions(EnumerationXSSubstitutionGroupExclusions instance, XmlSchemaDerivationMethod realValue)
     : base(instance, realValue)
 {
 }