private bool Contains(XmlSchemaDerivationMethod _value)
        {
            XSSchemaFinal _enumValue = EnumerationXSSchemaFinal.FromNativeValue(_value);
            IValue        _idx       = _values.Find(_enumValue);

            return(_idx.DataType != DataType.Undefined);
        }
예제 #2
0
        internal static XSSchemaFinal FromNativeValue(XmlSchemaDerivationMethod native)
        {
            switch (native)
            {
            case XmlSchemaDerivationMethod.All:
            case XmlSchemaDerivationMethod.Union:
            case XmlSchemaDerivationMethod.Restriction:
            case XmlSchemaDerivationMethod.Extension:
            case XmlSchemaDerivationMethod.List:

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

            default:
                return(null);
            }
        }
예제 #3
0
        public static EnumerationXSSchemaFinal CreateInstance()
        {
            TypeDescriptor type          = TypeManager.RegisterType("EnumerationXSSchemaFinal", typeof(EnumerationXSSchemaFinal));
            TypeDescriptor enumValueType = TypeManager.RegisterType("XSSchemaFinal", typeof(XSSchemaFinal));

            TypeManager.RegisterAliasFor(type, "ПеречислениеЗавершенностьСхемыXS");
            TypeManager.RegisterAliasFor(enumValueType, "ЗавершенностьСхемыXS");

            EnumerationXSSchemaFinal instance = new EnumerationXSSchemaFinal(type, enumValueType);

            instance.AddValue("Все", "All", instance._valuesCache[XmlSchemaDerivationMethod.All]);
            instance.AddValue("Объединение", "Union", instance._valuesCache[XmlSchemaDerivationMethod.Union]);
            instance.AddValue("Ограничение", "Restriction", instance._valuesCache[XmlSchemaDerivationMethod.Restriction]);
            instance.AddValue("Расширение", "Extension", instance._valuesCache[XmlSchemaDerivationMethod.Extension]);
            instance.AddValue("Список", "List", instance._valuesCache[XmlSchemaDerivationMethod.List]);

            return(instance);
        }
예제 #4
0
 public static XSSchemaFinal FromNativeValue(XmlSchemaDerivationMethod native)
 => EnumerationXSSchemaFinal.FromNativeValue(native);
예제 #5
0
 internal XSSchemaFinal(EnumerationXSSchemaFinal instance, XmlSchemaDerivationMethod realValue)
     : base(instance, realValue)
 {
 }