backend.domainObjects
Class StaticParserMover

java.lang.Object
  extended by backend.domainObjects.StaticParserMover

public class StaticParserMover
extends java.lang.Object

This class is what Professor Frens would call evil by definition, since it uses a static method. The sole purpose of the class is to contain the method in a place where all other classes can see and access it.

Author:
ptm2

Constructor Summary
StaticParserMover()
           
 
Method Summary
static int moveParserToNextTag(org.kxml2.io.KXmlParser theParser)
          This method, as the name implies, moves the parser to the next tag in the XML that the parser is parsing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticParserMover

public StaticParserMover()
Method Detail

moveParserToNextTag

public static int moveParserToNextTag(org.kxml2.io.KXmlParser theParser)
This method, as the name implies, moves the parser to the next tag in the XML that the parser is parsing. It will keep getting the next element that the parser has to offer until one of three things happens: (1) it finds a start tag, (2) it finds an end tag, or (3) it finds the end of the document. The return value is the type that the KXmlParser you give it returns for its next() method---this is the type of element that the parser has found.