Beispiel #1
0
        internal static XSProhibitedSubstitutions FromNativeValue(XmlSchemaDerivationMethod native)
        {
            switch (native)
            {
            case XmlSchemaDerivationMethod.All:
            case XmlSchemaDerivationMethod.Restriction:
            case XmlSchemaDerivationMethod.Extension:

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

            default:
                return(null);
            }
        }
Beispiel #2
0
        public static EnumerationXSProhibitedSubstitutions CreateInstance()
        {
            TypeDescriptor type          = TypeManager.RegisterType("EnumerationXSProhibitedSubstitutions", typeof(EnumerationXSProhibitedSubstitutions));
            TypeDescriptor enumValueType = TypeManager.RegisterType("XSProhibitedSubstitutions", typeof(XSProhibitedSubstitutions));

            TypeManager.RegisterAliasFor(type, "ПеречислениеЗапрещенныеПодстановкиXS");
            TypeManager.RegisterAliasFor(enumValueType, "ЗапрещенныеПодстановкиXS");

            EnumerationXSProhibitedSubstitutions instance = new EnumerationXSProhibitedSubstitutions(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);
        }
Beispiel #3
0
 public static XSProhibitedSubstitutions FromNativeValue(XmlSchemaDerivationMethod native)
 => EnumerationXSProhibitedSubstitutions.FromNativeValue(native);
Beispiel #4
0
 internal XSProhibitedSubstitutions(EnumerationXSProhibitedSubstitutions instance, XmlSchemaDerivationMethod realValue)
     : base(instance, realValue)
 {
 }