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


C++ DocumentType::getNotations方法代码示例

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


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

示例1: runTest

    /*
     * Runs the test case.
     */
    void runTest()
    {
        Document doc;
        DocumentType docType;
        NamedNodeMap notations;
        Node notationNode;
        String notationName;
        doc = (Document) baseT::load("staff", false);
        docType = doc.getDoctype();
        baseT::assertNotNull(docType, __LINE__, __FILE__);
        notations = docType.getNotations();
        baseT::assertNotNull(notations, __LINE__, __FILE__);
        notationNode = notations.getNamedItem(SA::construct_from_utf8("notation1"));
        baseT::skipIfNull(notationNode);
        notationName = notationNode.getNodeName();
        baseT::assertEquals("notation1", notationName, __LINE__, __FILE__);

    }
开发者ID:kthguru,项目名称:arabica,代码行数:21,代码来源:nodenotationnodename.hpp

示例2: runTest

   /*
    * Runs the test case.
    */
   void runTest()
   {
      Document doc;
      DocumentType docType;
      NamedNodeMap notations;
      Notation notationNode;
      String systemId;
      doc = (Document) baseT::load("staff", false);
      docType = doc.getDoctype();
      baseT::assertNotNull(docType, __LINE__, __FILE__);
      notations = docType.getNotations();
      baseT::assertNotNull(notations, __LINE__, __FILE__);
      notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2"));
      baseT::skipIfNull(notationNode);
      systemId = notationNode.getSystemId();
      baseT::assertURIEquals("uriEquals", "", "", "", "notation2File", "", "", "", false, systemId);

   }
开发者ID:QuentinFiard,项目名称:arabica,代码行数:21,代码来源:notationgetsystemid.hpp

示例3: runTest

 /*
  * Runs the test case.
  */
 void runTest()
 {
    Document doc;
    DocumentType docType;
    NamedNodeMap notations;
    Notation notationNode;
    String publicId;
    doc = (Document) baseT::load("staff", false);
    docType = doc.getDoctype();
    baseT::assertNotNull(docType, __LINE__, __FILE__);
    notations = docType.getNotations();
    baseT::assertNotNull(notations, __LINE__, __FILE__);
    notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation2"));
    baseT::skipIfNull(notationNode);
    publicId = notationNode.getPublicId();
    baseT::assertNull(publicId, __LINE__, __FILE__);
    
 }
开发者ID:QuentinFiard,项目名称:arabica,代码行数:21,代码来源:notationgetpublicidnull.hpp

示例4: runTest

 /*
  * Runs the test case.
  */
 void runTest()
 {
    Document doc;
    DocumentType docType;
    NamedNodeMap notationList;
    Node notation;
    int notationType;
    doc = (Document) baseT::load("staff", false);
    docType = doc.getDoctype();
    baseT::assertNotNull(docType, __LINE__, __FILE__);
    notationList = docType.getNotations();
    baseT::assertNotNull(notationList, __LINE__, __FILE__);
    for (unsigned int indexN65609 = 0; indexN65609 != notationList.getLength(); indexN65609++) {
        notation = (Node) notationList.item(indexN65609);
  notationType = (int) notation.getNodeType();
    baseT::assertEquals(12, notationType, __LINE__, __FILE__);
  }
    
 }
开发者ID:QuentinFiard,项目名称:arabica,代码行数:22,代码来源:documenttypegetnotationstype.hpp

示例5: runTest

 /*
  * Runs the test case.
  */
 void runTest()
 {
    Document doc;
    NodeList addressList;
    Node testAddress;
    NamedNodeMap attributes;
    DocumentType docType;
    NamedNodeMap notations;
    Notation notationNode;
    String notationName;
    doc = (Document) baseT::load("staff", false);
    docType = doc.getDoctype();
    baseT::assertNotNull(docType, __LINE__, __FILE__);
    notations = docType.getNotations();
    baseT::assertNotNull(notations, __LINE__, __FILE__);
    notationNode = (Notation) notations.getNamedItem(SA::construct_from_utf8("notation1"));
    baseT::skipIfNull(notationNode);
    addressList = doc.getElementsByTagName(SA::construct_from_utf8("address"));
    testAddress = addressList.item(0);
    attributes = testAddress.getAttributes();
    baseT::assertSize(2, attributes, __LINE__, __FILE__);
    
 }
开发者ID:QuentinFiard,项目名称:arabica,代码行数:26,代码来源:elementretrieveallattributes.hpp


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