当前位置: 首页>>代码示例>>C#>>正文


C# XmlBContext.skipWhiteSpace方法代码示例

本文整理汇总了C#中XmlBooster.XmlBContext.skipWhiteSpace方法的典型用法代码示例。如果您正苦于以下问题:C# XmlBContext.skipWhiteSpace方法的具体用法?C# XmlBContext.skipWhiteSpace怎么用?C# XmlBContext.skipWhiteSpace使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在XmlBooster.XmlBContext的用法示例。


在下文中一共展示了XmlBContext.skipWhiteSpace方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: acceptHistory

 /// <summary>Top level function to parse an History from 
 /// a context. This kind of function is only made
 /// available for elements marked as MAIN in the 
 /// metadefinition</summary>
 /// <seealso cref="accept"/>
 public static History acceptHistory(XmlBContext ctxt)
 {
     History res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<History");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_History(ctxt, "</History>");
      } catch (XmlBRecoveryException e) {
       throw new XmlBException("Unexpected recovery exception: " +
      e.ToString());
     }
       ctxt.close();
     if (ctxt.errCount() > 0){
     res = null;
     throw new XmlBException (ctxt.errorMessage());
     } // If
       return res;
 }
开发者ID:nikiforovandrey,项目名称:ERTMSFormalSpecs,代码行数:26,代码来源:HistoricalData.Generated.cs

示例2: parseBody

        /// <remarks>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.</remarks>
        public override void parseBody(XmlBContext ctxt)
        {
            #pragma warning disable 0168, 0219
            int indicator=0;
            char quoteChar;
             string  tempStr;
            #pragma warning restore 0168, 0219
            bool fl1042;
            bool fl1043;

            ctxt.skipWhiteSpace();
            base.parseBody(ctxt);
            // Element Ref : StateMachine
            ctxt.skipWhiteSpace();
            // If optional...
            if (ctxt.lookAheadOpeningTag("<StateMachine")){
            // Parsing sub element
            this.setStateMachine(acceptor.lAccept_StateMachine(ctxt,"</StateMachine>"));
            setSon(this.getStateMachine());
            // Endif optional...
            } // If
            ctxt.skipWhiteSpace();
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<EnterAction")){
            ctxt.skipWhiteSpace();
            fl1042 = true ;
            while (fl1042) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1042 = false ;
            } // If
            } // While
            ctxt.accept('>');
            // Element Ref : Rule
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("<Rule");
            if (ctxt.isAlNum()){
            ctxt.fail ("White space expected after TAG");
            } // If
            // Parsing sub element
            this.setEnterAction(acceptor.lAccept_Rule(ctxt,"</Rule>"));
            setSon(this.getEnterAction());
            ctxt.skipWhiteSpace();
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</EnterAction>");
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
            // Optional Enclosed
            if (ctxt.lookAheadOpeningTag("<LeaveAction")){
            ctxt.skipWhiteSpace();
            fl1043 = true ;
            while (fl1043) { // BeginLoop
            ctxt.skipWhiteSpace();
            if (ctxt.isAlNum()){
            ctxt.skipTill ('=');
            ctxt.advance();
            ctxt.skipWhiteSpace();
            quoteChar = ctxt.acceptQuote();
            ctxt.skipTill (quoteChar);
            ctxt.accept(quoteChar);
            ctxt.skipWhiteSpace();
            } else {
            fl1043 = false ;
            } // If
            } // While
            ctxt.accept('>');
            // Element Ref : Rule
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("<Rule");
            if (ctxt.isAlNum()){
            ctxt.fail ("White space expected after TAG");
            } // If
            // Parsing sub element
            this.setLeaveAction(acceptor.lAccept_Rule(ctxt,"</Rule>"));
            setSon(this.getLeaveAction());
            ctxt.skipWhiteSpace();
            ctxt.skipWhiteSpace();
            ctxt.acceptString ("</LeaveAction>");
            } // If
            // End enclosed
            ctxt.skipWhiteSpace();
        }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:96,代码来源:DataDictionary.Generated.cs

示例3: parse

        /// <remarks>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.</remarks>
        public override void parse(XmlBContext ctxt,  string  endingTag)
        {
            #pragma warning disable 0168, 0219
            int indicator = 0;
            char quoteChar;
             string  tempStr = null;
            bool fl911;
            bool fl912;
            bool fl913;
            bool fl914;
            bool fl915;
            #pragma warning restore 0168, 0219

            ctxt.skipWhiteSpace();
            {
            // Accept Attributes
            fl911 = false ;
            fl912 = false ;
            fl913 = false ;
            fl914 = false ;
            fl915 = true ;
            while (fl915) { // BeginLoop
            switch (ctxt.current()) {
            case 'U':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("pdates=")){
            indicator = 913;
            } else {
            indicator = 916;
            } // If
            break;
            } // Case
            case 'N':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("ame=")){
            indicator = 911;
            } else {
            indicator = 916;
            } // If
            break;
            } // Case
            case 'I':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("sRemoved=")){
            indicator = 914;
            } else {
            indicator = 916;
            } // If
            break;
            } // Case
            case 'G':
            {
            ctxt.advance();
            if (ctxt.lookAheadString("uid=")){
            indicator = 912;
            } else {
            indicator = 916;
            } // If
            break;
            } // Case
            default:
            indicator = 916;
            break;
            } // Switch
            switch (indicator) {
            case 911: {
            // Handling attribute Name
            // Also handles alien attributes with prefix Name
            if (fl911){
            ctxt.fail ("Duplicate attribute: Name");
            } // If
            fl911 = 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 912: {
            // Handling attribute Guid
            // Also handles alien attributes with prefix Guid
            if (fl912){
            ctxt.fail ("Duplicate attribute: Guid");
            } // If
            fl912 = 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 913: {
            // Handling attribute Updates
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例4: lAccept_Poly_ReqRelated

 /// <remarks>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.</remarks>
 public static ReqRelated lAccept_Poly_ReqRelated(XmlBContext ctxt, 
                   string  endingTag)
 {
     char quoteChar;
     ReqRelated res = null;
     ctxt.skipWhiteSpace();
     ctxt.acceptString ("xsi:type=");
     quoteChar = ctxt.acceptQuote();
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ariable")){
     ctxt.accept(quoteChar);
     res = lAccept_Variable(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("estCase")){
     ctxt.accept(quoteChar);
     res = lAccept_TestCase(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('t')){
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ucture")){
     switch (ctxt.current()) {
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("lement")){
     ctxt.accept(quoteChar);
     res = lAccept_StructureElement(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('t','e')){
     switch (ctxt.current()) {
     case 'M':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("achine")){
     ctxt.accept(quoteChar);
     res = lAccept_StateMachine(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_State(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_State(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     } else {
     res = null;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例5: lAccept_Poly_Namable

 /// <remarks>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.</remarks>
 public static Namable lAccept_Poly_Namable(XmlBContext ctxt, 
                   string  endingTag)
 {
     char quoteChar;
     Namable res = null;
     ctxt.skipWhiteSpace();
     ctxt.acceptString ("xsi:type=");
     quoteChar = ctxt.acceptQuote();
     switch (ctxt.current()) {
     case 'V':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ariable")){
     ctxt.accept(quoteChar);
     res = lAccept_Variable(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'T':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("anslation")){
     switch (ctxt.current()) {
     case 'D':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ictionary")){
     ctxt.accept(quoteChar);
     res = lAccept_TranslationDictionary(ctxt, endingTag);
     } else {
     ctxt.accept(quoteChar);
     res = lAccept_Translation(ctxt, endingTag);
     } // If
     break;
     } // Case
     default:
     ctxt.accept(quoteChar);
     res = lAccept_Translation(ctxt, endingTag);
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("stCase")){
     ctxt.accept(quoteChar);
     res = lAccept_TestCase(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     break;
     } // Case
     case 'S':
     {
     ctxt.advance();
     switch (ctxt.current()) {
     case 'u':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('b','S')){
     switch (ctxt.current()) {
     case 't':
     {
     ctxt.advance();
     if (ctxt.lookAhead2('e','p')){
     ctxt.accept(quoteChar);
     res = lAccept_SubStep(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'e':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("quence")){
     ctxt.accept(quoteChar);
     res = lAccept_SubSequence(ctxt, endingTag);
     } else {
     res = null;
//.........这里部分代码省略.........
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:101,代码来源:DataDictionary.Generated.cs

示例6: lAccept_Poly_Type

 /// <remarks>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.</remarks>
 public static Type lAccept_Poly_Type(XmlBContext ctxt, 
                   string  endingTag)
 {
     char quoteChar;
     Type res = null;
     ctxt.skipWhiteSpace();
     ctxt.acceptString ("xsi:type=");
     quoteChar = ctxt.acceptQuote();
     switch (ctxt.current()) {
     case 'S':
     {
     ctxt.advance();
     if (ctxt.lookAhead1('t')){
     switch (ctxt.current()) {
     case 'r':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ucture")){
     ctxt.accept(quoteChar);
     res = lAccept_Structure(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'a':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("teMachine")){
     ctxt.accept(quoteChar);
     res = lAccept_StateMachine(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'R':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ange")){
     ctxt.accept(quoteChar);
     res = lAccept_Range(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'F':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("unction")){
     ctxt.accept(quoteChar);
     res = lAccept_Function(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'E':
     {
     ctxt.advance();
     if (ctxt.lookAhead3('n','u','m')){
     ctxt.accept(quoteChar);
     res = lAccept_Enum(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     case 'C':
     {
     ctxt.advance();
     if (ctxt.lookAheadString("ollection")){
     ctxt.accept(quoteChar);
     res = lAccept_Collection(ctxt, endingTag);
     } else {
     res = null;
     } // If
     break;
     } // Case
     default:
     res = null;
     break;
     } // Switch
       return res;
 }
开发者ID:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:99,代码来源:DataDictionary.Generated.cs


注:本文中的XmlBooster.XmlBContext.skipWhiteSpace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。