DataDictionary.Generated.Shortcut.parse C# (CSharp) Méthode

parse() public méthode

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
Résultat void
        public override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl1822;
            bool fl1823;
            bool fl1824;
            bool fl1825;
            bool fl1826;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl1822 = false ;
            fl1823 = false ;
            fl1824 = false ;
            fl1825 = false ;
            fl1826 = true ;
            while (fl1826) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 1824;
            } else {
            indicator = 1827;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 1822;
            } else {
            indicator = 1827;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 1825;
            } else {
            indicator = 1827;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 1823;
            } else {
            indicator = 1827;
            } // If
            break;
            } // Case
            default:
            indicator = 1827;
            break;
            } // Switch
            switch (indicator) {
            case 1822: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl1822){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl1822 = 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 1823: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl1823){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl1823 = 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 1824: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl1824){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl1824 = 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 1825: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl1825){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl1825 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 1827: {
            // 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 (!fl1825){
            this.setIsRemoved( false);
            } // If
            fl1826 = 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
        }