validationstate.cs source code in C# .NET

Source code for the .NET framework in C#



/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / ndp / fx / src / Xml / System / Xml / schema / validationstate.cs / 2 / validationstate.cs

//     Copyright (c) Microsoft Corporation.  All rights reserved.
// [....] 
namespace System.Xml.Schema { 
    using System;
    using System.Collections; 
    using System.Collections.Generic;
    using System.Runtime.InteropServices;

    internal struct StateUnion {
        [FieldOffset(0)] public int State;  //DFA 
        [FieldOffset(0)] public int AllElementsRequired; //AllContentValidator 
        [FieldOffset(0)] public int CurPosIndex; //NFAContentValidator
        [FieldOffset(0)] public int NumberOfRunningPos; //RangeContentValidator 

    internal sealed class ValidationState {
        public bool              IsNill;
        public bool              IsDefault; 
        public bool              NeedValidateChildren;  // whether need to validate the children of this element 
        public bool CheckRequiredAttribute; //PSVI
        public bool ValidationSkipped; 
        public int               Depth;         // The validation state
        public XmlSchemaContentProcessing ProcessContents;
        public XmlSchemaValidity          Validity;
        public SchemaElementDecl ElementDecl;            // ElementDecl 
        public SchemaElementDecl ElementDeclBeforeXsi; //elementDecl before its changed by that of xsi:type's
        public string LocalName; 
        public string Namespace; 
        public ConstraintStruct[] Constr;
        public StateUnion   CurrentState;

        //For content model validation
        public bool HasMatched;       // whether the element has been verified correctly 

        //For NFAs 
        public BitSet[] CurPos = new BitSet[2]; 

        //For all 
        public BitSet AllElementsSet;

        //For MinMaxNFA
        public List  RunningPositions; 
        public bool                     TooComplex;


// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK