test_class.declarator: LF = "\n"
test_class.modifier: private static
test_class.original_string: private static String LF = "\n";
test_class.type: String
test_class.var_name: LF
test_class.file: de.tudarmstadt.ukp.wikipedia.parser/src/test/java/de/tudarmstadt/ukp/wikipedia/parser/ParsedPageTest.java
test_class.identifier: ParsedPageTest
test_class.superclass: extends BaseJWPLTest
test_case.body: @Test
  	public void testParsedPage(){
          String title = "Wikipedia API";
          Page p = null;
          try {
              p = wiki.getPage(title);
          } catch (WikiApiException e) {
              e.printStackTrace();
              fail("A WikiApiException occurred while getting the page " + title);
          }
  
  
          String text = "Wikipedia API ist die wichtigste Software überhaupt." + LF +
          	"Wikipedia API. Nicht zu übertreffen. Unglaublich http://www.ukp.tu-darmstadt.de en:Wikipedia API";
  
  
          MediaWikiParserFactory pf = new MediaWikiParserFactory(Language.english);
          MediaWikiParser parser = pf.createParser();
  
  		ParsedPage pp = parser.parse(p.getText());
          assertNotNull(pp);
  
          int i=0;
          for (Link link : pp.getSection(0).getLinks()) {
              if (i==0) {
                  assertEquals("Software", link.getText());
              }
              else if (i==1) {
                  assertEquals("Wikipedia API", link.getText());
                  assertEquals("JWPL", link.getTarget());
              }
              i++;
          }
          String parsedPageText = pp.getText();
          assertNotNull(parsedPageText);
          assertEquals(text, parsedPageText);
  	}
test_case.class_method_signature: ParsedPageTest.testParsedPage()
test_case.full_signature: @Test public void testParsedPage()
test_case.identifier: testParsedPage
test_case.invocations: getPage printStackTrace fail createParser parse getText assertNotNull getLinks getSection assertEquals getText assertEquals getText assertEquals getTarget getText assertNotNull assertEquals
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testParsedPage()
focal_class.declarator: name
focal_class.modifier: private
focal_class.original_string: private String name;
focal_class.type: String
focal_class.var_name: name
focal_class.declarator: pageId
focal_class.modifier: private
focal_class.original_string: private int pageId;
focal_class.type: int
focal_class.var_name: pageId
focal_class.declarator: superSection
focal_class.modifier: private
focal_class.original_string: private SectionContainer superSection;
focal_class.type: SectionContainer
focal_class.var_name: superSection
focal_class.declarator: categories
focal_class.modifier: private
focal_class.original_string: private ContentElement categories;
focal_class.type: ContentElement
focal_class.var_name: categories
focal_class.declarator: languages
focal_class.modifier: private
focal_class.original_string: private ContentElement languages;
focal_class.type: ContentElement
focal_class.var_name: languages
focal_class.declarator: firstParagraphNr
focal_class.modifier: private
focal_class.original_string: private int firstParagraphNr;
focal_class.type: int
focal_class.var_name: firstParagraphNr
focal_class.file: de.tudarmstadt.ukp.wikipedia.parser/src/main/java/de/tudarmstadt/ukp/wikipedia/parser/ParsedPage.java
focal_class.identifier: ParsedPage
focal_class.class_method_signature: ParsedPage.ParsedPage()
focal_class.full_signature: public  ParsedPage()
focal_class.identifier: ParsedPage
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.signature:  ParsedPage()
focal_class.class_method_signature: ParsedPage.setName( String name )
focal_class.full_signature: public void setName( String name )
focal_class.identifier: setName
focal_class.modifiers: public
focal_class.parameters: ( String name )
focal_class.return: void
focal_class.signature: void setName( String name )
focal_class.class_method_signature: ParsedPage.getName()
focal_class.full_signature: public String getName()
focal_class.identifier: getName
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getName()
focal_class.class_method_signature: ParsedPage.setPageId( int pageId )
focal_class.full_signature: public void setPageId( int pageId )
focal_class.identifier: setPageId
focal_class.modifiers: public
focal_class.parameters: ( int pageId )
focal_class.return: void
focal_class.signature: void setPageId( int pageId )
focal_class.class_method_signature: ParsedPage.getPageId()
focal_class.full_signature: public int getPageId()
focal_class.identifier: getPageId
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getPageId()
focal_class.class_method_signature: ParsedPage.setCategoryElement( ContentElement categories )
focal_class.full_signature: public void setCategoryElement( ContentElement categories )
focal_class.identifier: setCategoryElement
focal_class.modifiers: public
focal_class.parameters: ( ContentElement categories )
focal_class.return: void
focal_class.signature: void setCategoryElement( ContentElement categories )
focal_class.class_method_signature: ParsedPage.getCategoryElement()
focal_class.full_signature: public ContentElement getCategoryElement()
focal_class.identifier: getCategoryElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ContentElement
focal_class.signature: ContentElement getCategoryElement()
focal_class.class_method_signature: ParsedPage.getCategories()
focal_class.full_signature: public List<Link> getCategories()
focal_class.identifier: getCategories
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Link>
focal_class.signature: List<Link> getCategories()
focal_class.class_method_signature: ParsedPage.setFirstParagraphNr(int nr)
focal_class.full_signature: public void setFirstParagraphNr(int nr)
focal_class.identifier: setFirstParagraphNr
focal_class.modifiers: public
focal_class.parameters: (int nr)
focal_class.return: void
focal_class.signature: void setFirstParagraphNr(int nr)
focal_class.class_method_signature: ParsedPage.getFirstParagraphNr()
focal_class.full_signature: public int getFirstParagraphNr()
focal_class.identifier: getFirstParagraphNr
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getFirstParagraphNr()
focal_class.class_method_signature: ParsedPage.getFirstParagraph()
focal_class.full_signature: public Paragraph getFirstParagraph()
focal_class.identifier: getFirstParagraph
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Paragraph
focal_class.signature: Paragraph getFirstParagraph()
focal_class.class_method_signature: ParsedPage.setLanguagesElement( ContentElement languages )
focal_class.full_signature: public void setLanguagesElement( ContentElement languages )
focal_class.identifier: setLanguagesElement
focal_class.modifiers: public
focal_class.parameters: ( ContentElement languages )
focal_class.return: void
focal_class.signature: void setLanguagesElement( ContentElement languages )
focal_class.class_method_signature: ParsedPage.getLanguagesElement()
focal_class.full_signature: public ContentElement getLanguagesElement()
focal_class.identifier: getLanguagesElement
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: ContentElement
focal_class.signature: ContentElement getLanguagesElement()
focal_class.class_method_signature: ParsedPage.getLanguages()
focal_class.full_signature: public List<Link> getLanguages()
focal_class.identifier: getLanguages
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Link>
focal_class.signature: List<Link> getLanguages()
focal_class.class_method_signature: ParsedPage.setSections( List<Section> sections )
focal_class.full_signature: public void setSections( List<Section> sections )
focal_class.identifier: setSections
focal_class.modifiers: public
focal_class.parameters: ( List<Section> sections )
focal_class.return: void
focal_class.signature: void setSections( List<Section> sections )
focal_class.class_method_signature: ParsedPage.setSections( SectionContainer s )
focal_class.full_signature: public void setSections( SectionContainer s )
focal_class.identifier: setSections
focal_class.modifiers: public
focal_class.parameters: ( SectionContainer s )
focal_class.return: void
focal_class.signature: void setSections( SectionContainer s )
focal_class.class_method_signature: ParsedPage.getSection(int i)
focal_class.full_signature: public Section getSection(int i)
focal_class.identifier: getSection
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: Section
focal_class.signature: Section getSection(int i)
focal_class.class_method_signature: ParsedPage.getSections()
focal_class.full_signature: public List<Section> getSections()
focal_class.identifier: getSections
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Section>
focal_class.signature: List<Section> getSections()
focal_class.class_method_signature: ParsedPage.toString()
focal_class.full_signature: public String toString()
focal_class.identifier: toString
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_class.class_method_signature: ParsedPage.nrOfParagraphs()
focal_class.full_signature: public int nrOfParagraphs()
focal_class.identifier: nrOfParagraphs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int nrOfParagraphs()
focal_class.class_method_signature: ParsedPage.getParagraph(int i)
focal_class.full_signature: public Paragraph getParagraph(int i)
focal_class.identifier: getParagraph
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: Paragraph
focal_class.signature: Paragraph getParagraph(int i)
focal_class.class_method_signature: ParsedPage.getParagraphs()
focal_class.full_signature: public List<Paragraph> getParagraphs()
focal_class.identifier: getParagraphs
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Paragraph>
focal_class.signature: List<Paragraph> getParagraphs()
focal_class.class_method_signature: ParsedPage.nrOfTables()
focal_class.full_signature: public int nrOfTables()
focal_class.identifier: nrOfTables
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int nrOfTables()
focal_class.class_method_signature: ParsedPage.getTable(int i)
focal_class.full_signature: public Table getTable(int i)
focal_class.identifier: getTable
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: Table
focal_class.signature: Table getTable(int i)
focal_class.class_method_signature: ParsedPage.getTables()
focal_class.full_signature: public List<Table> getTables()
focal_class.identifier: getTables
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Table>
focal_class.signature: List<Table> getTables()
focal_class.class_method_signature: ParsedPage.nrOfNestedLists()
focal_class.full_signature: public int nrOfNestedLists()
focal_class.identifier: nrOfNestedLists
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int nrOfNestedLists()
focal_class.class_method_signature: ParsedPage.getNestedList(int i)
focal_class.full_signature: public NestedList getNestedList(int i)
focal_class.identifier: getNestedList
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: NestedList
focal_class.signature: NestedList getNestedList(int i)
focal_class.class_method_signature: ParsedPage.getNestedLists()
focal_class.full_signature: public List<NestedListContainer> getNestedLists()
focal_class.identifier: getNestedLists
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<NestedListContainer>
focal_class.signature: List<NestedListContainer> getNestedLists()
focal_class.class_method_signature: ParsedPage.nrOfDefinitionLists()
focal_class.full_signature: public int nrOfDefinitionLists()
focal_class.identifier: nrOfDefinitionLists
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int nrOfDefinitionLists()
focal_class.class_method_signature: ParsedPage.getDefinitionList(int i)
focal_class.full_signature: public DefinitionList getDefinitionList(int i)
focal_class.identifier: getDefinitionList
focal_class.modifiers: public
focal_class.parameters: (int i)
focal_class.return: DefinitionList
focal_class.signature: DefinitionList getDefinitionList(int i)
focal_class.class_method_signature: ParsedPage.getDefinitionLists()
focal_class.full_signature: public List<DefinitionList> getDefinitionLists()
focal_class.identifier: getDefinitionLists
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<DefinitionList>
focal_class.signature: List<DefinitionList> getDefinitionLists()
focal_class.class_method_signature: ParsedPage.getText()
focal_class.full_signature: public String getText()
focal_class.identifier: getText
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String getText()
focal_class.class_method_signature: ParsedPage.length()
focal_class.full_signature: public int length()
focal_class.identifier: length
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int length()
focal_class.class_method_signature: ParsedPage.getFormats()
focal_class.full_signature: public List<FormatType> getFormats()
focal_class.identifier: getFormats
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<FormatType>
focal_class.signature: List<FormatType> getFormats()
focal_class.class_method_signature: ParsedPage.getFormatSpans(FormatType t)
focal_class.full_signature: public List<Span> getFormatSpans(FormatType t)
focal_class.identifier: getFormatSpans
focal_class.modifiers: public
focal_class.parameters: (FormatType t)
focal_class.return: List<Span>
focal_class.signature: List<Span> getFormatSpans(FormatType t)
focal_class.class_method_signature: ParsedPage.getLinks()
focal_class.full_signature: public List<Link> getLinks()
focal_class.identifier: getLinks
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Link>
focal_class.signature: List<Link> getLinks()
focal_class.class_method_signature: ParsedPage.getTemplates()
focal_class.full_signature: public List<Template> getTemplates()
focal_class.identifier: getTemplates
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: List<Template>
focal_class.signature: List<Template> getTemplates()
focal_method.body: public ParsedPage(){
  		this.superSection = new SectionContainer(null,0);
  	}
focal_method.class_method_signature: ParsedPage.ParsedPage()
focal_method.full_signature: public  ParsedPage()
focal_method.identifier: ParsedPage
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.signature:  ParsedPage()