DataDictionary.Generated.RequirementSetReference.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 fl2078;
            bool fl2079;
            bool fl2080;
            bool fl2081;
            bool fl2082;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl2078 = false ;
            fl2079 = false ;
            fl2080 = false ;
            fl2081 = false ;
            fl2082 = true ;
            while (fl2082) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 2080;
            } else {
            indicator = 2083;
            } // If
            break;
            } // Case
            case 'R':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("efId=")){
            indicator = 2078;
            } else {
            indicator = 2083;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 2081;
            } else {
            indicator = 2083;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 2079;
            } else {
            indicator = 2083;
            } // If
            break;
            } // Case
            default:
            indicator = 2083;
            break;
            } // Switch
            switch (indicator) {
            case 2078: {
            // Handling attribute RefId
            // Also handles alien attributes with prefix RefId
            if (fl2078){
            ctxt.fail ("Duplicate attribute: RefId");
            } // If
            fl2078 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setTarget((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 2079: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl2079){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl2079 = 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 2080: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl2080){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl2080 = 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 2081: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl2081){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl2081 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 2083: {
            // 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 (!fl2078){
            ctxt.fail ("Mandatory attribute missing: RefId in RequirementSetReference");
            } // If
            if (!fl2081){
            this.setIsRemoved( false);
            } // If
            fl2082 = 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
        }