DataDictionary.Generated.resolution_formula.parse C# (CSharp) 메소드

parse() 공개 메소드

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
리턴 void
        public override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl2203;
            bool fl2204;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl2203 = false ;
            fl2204 = true ;
            while (fl2204) { // BeginLoop
            if (ctxt.lookAheadString("units=")){
            indicator = 2203;
            } else {
            indicator = 2205;
            } // If
            switch (indicator) {
            case 2203: {
            // Handling attribute units
            // Also handles alien attributes with prefix units
            if (fl2203){
            ctxt.fail ("Duplicate attribute: units");
            } // If
            fl2203 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setUnits(acceptor.lAcceptEnum_resolution_formula_units(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 2205: {
            // 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 {
            fl2204 = 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 ("</resolution-formula>");
            // If formula empty
            } // If
        }