uk.ac.man.documentparser.input
Class Elsevier

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

public class Elsevier
extends java.lang.Object
implements DocumentIterator


Field Summary
private  boolean next
           
private  java.lang.String xml
           
 
Constructor Summary
Elsevier(java.io.File file, java.lang.String[] dtdLocations)
           
Elsevier(java.lang.StringBuffer xml, java.lang.String[] dtdLocations)
           
 
Method Summary
private  java.lang.String get(org.w3c.dom.Node root, java.lang.String name)
           
private  java.lang.String get(org.w3c.dom.Node root, java.lang.String[] nodes)
           
private  Author[] getAuthors(org.w3c.dom.Document root)
           
private  java.lang.String getBody(org.w3c.dom.Document root)
           
private  java.lang.StringBuffer getSection(org.w3c.dom.Node root)
           
 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

next

private boolean next

xml

private java.lang.String xml
Constructor Detail

Elsevier

public Elsevier(java.lang.StringBuffer xml,
                java.lang.String[] dtdLocations)

Elsevier

public Elsevier(java.io.File file,
                java.lang.String[] dtdLocations)
Method Detail

skip

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

hasNext

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

get

private java.lang.String get(org.w3c.dom.Node root,
                             java.lang.String name)

get

private java.lang.String get(org.w3c.dom.Node root,
                             java.lang.String[] nodes)

next

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

getSection

private java.lang.StringBuffer getSection(org.w3c.dom.Node root)

getBody

private java.lang.String getBody(org.w3c.dom.Document root)

getAuthors

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

remove

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

iterator

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