uk.ac.man.documentparser.input
Class BMC

java.lang.Object
  extended by uk.ac.man.documentparser.input.BMC
All Implemented Interfaces:
java.lang.Iterable<Document>, java.util.Iterator<Document>, DocumentIterator

public class BMC
extends java.lang.Object
implements DocumentIterator


Field Summary
private  org.w3c.dom.Document doc
           
private  int nextArticle
           
private  int numArticles
           
 
Constructor Summary
BMC(java.io.File file, java.lang.String[] dtdLocation)
           
BMC(java.lang.StringBuffer data, java.lang.String[] dtdLocation)
           
BMC(java.lang.String filename, java.lang.String[] dtdLocation)
           
 
Method Summary
private  Author[] getAuthors(org.w3c.dom.Element root)
           
private  Section[] getSection(org.w3c.dom.NodeList mainElement)
           
 boolean hasNext()
           
 java.util.Iterator<Document> iterator()
           
 Document next()
           
 void remove()
           
 void skip()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

doc

private org.w3c.dom.Document doc

numArticles

private int numArticles

nextArticle

private int nextArticle
Constructor Detail

BMC

public BMC(java.lang.StringBuffer data,
           java.lang.String[] dtdLocation)

BMC

public BMC(java.io.File file,
           java.lang.String[] dtdLocation)

BMC

public BMC(java.lang.String filename,
           java.lang.String[] dtdLocation)
Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<Document>

getSection

private Section[] getSection(org.w3c.dom.NodeList mainElement)

next

public Document next()
Specified by:
next in interface java.util.Iterator<Document>

getAuthors

private Author[] getAuthors(org.w3c.dom.Element root)

remove

public void remove()
Specified by:
remove in interface java.util.Iterator<Document>

skip

public void skip()
Specified by:
skip in interface DocumentIterator

iterator

public java.util.Iterator<Document> iterator()
Specified by:
iterator in interface java.lang.Iterable<Document>