DataDictionary.Generated.Structure.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 ( XmlBContext ctxt, string endingTag ) : void
ctxt 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 fl711;
            bool fl712;
            bool fl713;
            bool fl714;
            bool fl715;
            bool fl716;
            bool fl717;
            bool fl718;
            bool fl719;
            bool fl720;
            bool fl721;
            bool fl722;
            bool fl723;
            bool fl724;
            bool fl725;
            bool fl726;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl711 = false ;
            fl712 = false ;
            fl713 = false ;
            fl714 = false ;
            fl715 = false ;
            fl716 = false ;
            fl717 = false ;
            fl718 = false ;
            fl719 = false ;
            fl720 = false ;
            fl721 = false ;
            fl722 = false ;
            fl723 = false ;
            fl724 = false ;
            fl725 = false ;
            fl726 = true ;
            while (fl726) { // BeginLoop
            switch (ctxt.current()) {
            case 'Y':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 714;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'X':
            {
            ctxt.advance();
            if (ctxt.lookAhead1('=')){
            indicator = 713;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'W':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("idth=")){
            indicator = 715;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'V':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("erified=")){
            indicator = 720;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 724;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'P':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("inned=")){
            indicator = 718;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("edsRequirement=")){
            indicator = 721;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'a':
            {
            ctxt.advance();
            if (ctxt.lookAhead3('m','e','=')){
            indicator = 722;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            default:
            indicator = 727;
            break;
            } // Switch
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 's':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'R':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("emoved=")){
            indicator = 725;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'A':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("bstract=")){
            indicator = 711;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            default:
            indicator = 727;
            break;
            } // Switch
            break;
            } // Case
            case 'm':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("plemented=")){
            indicator = 719;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            default:
            indicator = 727;
            break;
            } // Switch
            break;
            } // Case
            case 'H':
            {
            ctxt.advance();
            switch (ctxt.current()) {
            case 'i':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("dden=")){
            indicator = 717;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'e':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ight=")){
            indicator = 716;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            default:
            indicator = 727;
            break;
            } // Switch
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 723;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            case 'D':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("efault=")){
            indicator = 712;
            } else {
            indicator = 727;
            } // If
            break;
            } // Case
            default:
            indicator = 727;
            break;
            } // Switch
            switch (indicator) {
            case 711: {
            // Handling attribute IsAbstract
            // Also handles alien attributes with prefix IsAbstract
            if (fl711){
            ctxt.fail ("Duplicate attribute: IsAbstract");
            } // If
            fl711 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsAbstract(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 712: {
            // Handling attribute Default
            // Also handles alien attributes with prefix Default
            if (fl712){
            ctxt.fail ("Duplicate attribute: Default");
            } // If
            fl712 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setDefault((acceptor.lAcceptPcData(ctxt,-1, quoteChar, XmlBContext.WS_PRESERVE)));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 713: {
            // Handling attribute X
            // Also handles alien attributes with prefix X
            if (fl713){
            ctxt.fail ("Duplicate attribute: X");
            } // If
            fl713 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setX(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 714: {
            // Handling attribute Y
            // Also handles alien attributes with prefix Y
            if (fl714){
            ctxt.fail ("Duplicate attribute: Y");
            } // If
            fl714 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setY(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 715: {
            // Handling attribute Width
            // Also handles alien attributes with prefix Width
            if (fl715){
            ctxt.fail ("Duplicate attribute: Width");
            } // If
            fl715 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setWidth(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 716: {
            // Handling attribute Height
            // Also handles alien attributes with prefix Height
            if (fl716){
            ctxt.fail ("Duplicate attribute: Height");
            } // If
            fl716 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setHeight(ctxt.fetchInteger());
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 717: {
            // Handling attribute Hidden
            // Also handles alien attributes with prefix Hidden
            if (fl717){
            ctxt.fail ("Duplicate attribute: Hidden");
            } // If
            fl717 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setHidden(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 718: {
            // Handling attribute Pinned
            // Also handles alien attributes with prefix Pinned
            if (fl718){
            ctxt.fail ("Duplicate attribute: Pinned");
            } // If
            fl718 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setPinned(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 719: {
            // Handling attribute Implemented
            // Also handles alien attributes with prefix Implemented
            if (fl719){
            ctxt.fail ("Duplicate attribute: Implemented");
            } // If
            fl719 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setImplemented(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 720: {
            // Handling attribute Verified
            // Also handles alien attributes with prefix Verified
            if (fl720){
            ctxt.fail ("Duplicate attribute: Verified");
            } // If
            fl720 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setVerified(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 721: {
            // Handling attribute NeedsRequirement
            // Also handles alien attributes with prefix NeedsRequirement
            if (fl721){
            ctxt.fail ("Duplicate attribute: NeedsRequirement");
            } // If
            fl721 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setNeedsRequirement(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            case 722: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl722){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl722 = 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 723: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl723){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl723 = 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 724: {
            // Handling attribute Updates
            // Also handles alien attributes with prefix Updates
            if (fl724){
            ctxt.fail ("Duplicate attribute: Updates");
            } // If
            fl724 = 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 725: {
            // Handling attribute IsRemoved
            // Also handles alien attributes with prefix IsRemoved
            if (fl725){
            ctxt.fail ("Duplicate attribute: IsRemoved");
            } // If
            fl725 = true ;
            quoteChar = ctxt.acceptQuote();
            this.setIsRemoved(acceptor.lAcceptBoolean(ctxt));
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            break;
            } // End of dispatch label
            // Final default label
            case 727: {
            // 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 (!fl711){
            this.setIsAbstract( false);
            } // If
            if (!fl713){
            this.setX(-1);
            } // If
            if (!fl714){
            this.setY(-1);
            } // If
            if (!fl715){
            this.setWidth(0);
            } // If
            if (!fl716){
            this.setHeight(0);
            } // If
            if (!fl717){
            this.setHidden( false);
            } // If
            if (!fl718){
            this.setPinned( false);
            } // If
            if (!fl719){
            this.setImplemented( false);
            } // If
            if (!fl720){
            this.setVerified( false);
            } // If
            if (!fl721){
            this.setNeedsRequirement( true);
            } // If
            if (!fl725){
            this.setIsRemoved( false);
            } // If
            fl726 = 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
        }