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


C# XmlBContext.errCount方法代码示例

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


在下文中一共展示了XmlBContext.errCount方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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: acceptSourceTextComment

 /// <summary>Top level function to parse an SourceTextComment 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 SourceTextComment acceptSourceTextComment(XmlBContext ctxt)
 {
     SourceTextComment res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<SourceTextComment");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_SourceTextComment(ctxt, "</SourceTextComment>");
      } 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:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:26,代码来源:DataDictionary.Generated.cs

示例3: acceptRequirementSetReference

 /// <summary>Top level function to parse an RequirementSetReference 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 RequirementSetReference acceptRequirementSetReference(XmlBContext ctxt)
 {
     RequirementSetReference res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<RequirementSetReference");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_RequirementSetReference(ctxt, "</RequirementSetReference>");
      } 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:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:26,代码来源:DataDictionary.Generated.cs

示例4: acceptParagraphRevision

 /// <summary>Top level function to parse an ParagraphRevision 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 ParagraphRevision acceptParagraphRevision(XmlBContext ctxt)
 {
     ParagraphRevision res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<ParagraphRevision");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_ParagraphRevision(ctxt, "</ParagraphRevision>");
      } 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:GautierBerck,项目名称:ERTMSFormalSpecs,代码行数:26,代码来源:DataDictionary.Generated.cs

示例5: acceptRuleCheckIdentifier

 /// <summary>Top level function to parse an RuleCheckIdentifier 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 RuleCheckIdentifier acceptRuleCheckIdentifier(XmlBContext ctxt)
 {
     RuleCheckIdentifier res;
     ctxt.skipWhiteSpace();
     try {
     ctxt.acceptString ("<RuleCheckIdentifier");
     if (ctxt.isAlNum()){
     ctxt.fail ("White space expected after TAG");
     } // If
       res = lAccept_RuleCheckIdentifier(ctxt, "</RuleCheckIdentifier>");
      } 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:ERTMSSolutions,项目名称:ERTMSFormalSpecs,代码行数:26,代码来源:DataDictionary.Generated.cs


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