DataDictionary.Generated.SourceText.parse C# (CSharp) Method

parse() public method

This method is used by XMLBooster-generated code internally. Please refrain from using it, as it might produce unexpected results, and might change or even disappear in the future.
public parse ( XmlBooster.XmlBContext ctxt, string endingTag ) : void
ctxt XmlBooster.XmlBContext
endingTag string
return void
        public override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl1723;
            bool fl1724;
            bool fl1725;
            bool fl1726;
            bool fl1727;
            bool fl1728;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1723 = false ;
            fl1724 = false ;
            fl1725 = false ;
            fl1726 = false ;
            fl1727 = false ;
            fl1728 = true ;
            while (fl1728) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 1726;
            } else {
            indicator = 1729;
            } // If
            break;
            } // Case
            case 'R':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("egularExpression=")){
            indicator = 1723;
            } else {
            indicator = 1729;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1724;
            } else {
            indicator = 1729;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 1727;
            } else {
            indicator = 1729;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 1725;
            } else {
            indicator = 1729;
            } // If
            break;
            } // Case
            default:
            indicator = 1729;
            break;
            } // Switch
            switch (indicator) {
            case 1723: {
            // Handling attribute RegularExpression
            // Also handles alien attributes with prefix RegularExpression
            if (fl1723){
            ctxt.fail ("Duplicate attribute: RegularExpression");
            } // If
            fl1723 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setRegularExpression(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1724: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1724){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1724 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setName((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1725: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1725){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1725 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setGuid((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1726: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl1726){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl1726 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setUpdates((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1727: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl1727){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl1727 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1729: {
            // Taking ignorable attributes into account
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            if (!fl1723){
            this.setRegularExpression( false);
            } // If
            if (!fl1727){
            this.setIsRemoved( false);
            } // If
            fl1728 = false ;
            } // If
            break;
            } // End of dispatch label
            } // Dispatch
            } // While
            }
            ctxt.skipWhiteSpace();
            if (ctxt.current() == '/'){
            ctxt.advance();
            ctxt.accept('>');
            } else {
            ctxt.accept('>');
            parseBody(ctxt);
            ctxt.acceptString(endingTag);
            // If formula empty
            } // If
        }