junitx.ddtunit.data.processing
Class Engine

java.lang.Object
  extended by junitx.ddtunit.data.processing.Engine

public class Engine
extends Object

Class used for creation of a TestClusterDataSet by using SAX parsing event information.

Author:
jg

Constructor Summary
Engine(IDataSet clusterDataSet)
          Instanciate processing engin to fill provided clusterDataSet
 
Method Summary
 void endCDATA()
           
 String getClusterId()
           
 void processCharacters(char[] buffer, int offset, int length)
          Process sax content only if specified cluster tag is processed and an action stack is allready instanciated.
 void processEndElement(String qName, long level)
          Process SAX events of elemet end status
 void processStartElement(String qName, Attributes attribs, int level)
          Process start of a SAX startElement event by extracting information an storing it in an ActionStack
 void setClusterId(String classId)
           
 void startCDATA()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Engine

public Engine(IDataSet clusterDataSet)
Instanciate processing engin to fill provided clusterDataSet

Parameters:
clusterDataSet - to be filled during engine processing
Method Detail

processStartElement

public void processStartElement(String qName,
                                Attributes attribs,
                                int level)
Process start of a SAX startElement event by extracting information an storing it in an ActionStack

Parameters:
qname -
attribs -
level -

processEndElement

public void processEndElement(String qName,
                              long level)
Process SAX events of elemet end status

Parameters:
qName -
level -

processCharacters

public void processCharacters(char[] buffer,
                              int offset,
                              int length)
Process sax content only if specified cluster tag is processed and an action stack is allready instanciated. If the trimmed content equals an empty string or Else ignore event.

Parameters:
buffer -
offset -
length -

getClusterId

public String getClusterId()

setClusterId

public void setClusterId(String classId)

endCDATA

public void endCDATA()

startCDATA

public void startCDATA()


Copyright © 2004-2011. All Rights Reserved.