DataDictionary.Generated.DBField.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 fl1582;
            bool fl1583;
            bool fl1584;
            bool fl1585;
            bool fl1586;
            bool fl1587;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1582 = false ;
            fl1583 = false ;
            fl1584 = false ;
            fl1585 = false ;
            fl1586 = false ;
            fl1587 = true ;
            while (fl1587) { // BeginLoop
            switch (ctxt.current()) {
            case 'V':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("alue=")){
            indicator = 1582;
            } else {
            indicator = 1588;
            } // If
            break;
            } // Case
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 1585;
            } else {
            indicator = 1588;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1583;
            } else {
            indicator = 1588;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 1586;
            } else {
            indicator = 1588;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 1584;
            } else {
            indicator = 1588;
            } // If
            break;
            } // Case
            default:
            indicator = 1588;
            break;
            } // Switch
            switch (indicator) {
            case 1582: {
            // Handling attribute Value
            // Also handles alien attributes with prefix Value
            if (fl1582){
            ctxt.fail ("Duplicate attribute: Value");
            } // If
            fl1582 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setValue((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 1583: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1583){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1583 = 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 1584: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1584){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1584 = 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 1585: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl1585){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl1585 = 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 1586: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl1586){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl1586 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1588: {
            // 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 (!fl1582){
            this.setValue("");
            } // If
            if (!fl1586){
            this.setIsRemoved( false);
            } // If
            fl1587 = 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
        }