ca.quine.jcommons.transform.transforms
Class StructuredXMLTransform

java.lang.Object
  |
  +--ca.quine.jcommons.transform.transforms.StructuredXMLTransform
All Implemented Interfaces:
IXMLSegmentListener
Direct Known Subclasses:
StructuredXMLTransformTestHelper

public class StructuredXMLTransform
extends Object
implements IXMLSegmentListener

FIXME: Documents that are invalid according to the provided structure map will cause a NullPointerException.


Field Summary
protected  Position position
           
protected  Map states
           
 
Constructor Summary
StructuredXMLTransform(File mappingFile)
           
 
Method Summary
 void addTransformListener(IJDOMDocumentListener receiver)
           
 void complete()
           
 void transform(org.jdom.contrib.input.LineNumberElement xmlSegment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected Position position

states

protected Map states
Constructor Detail

StructuredXMLTransform

public StructuredXMLTransform(File mappingFile)
                       throws JDOMException,
                              IOException
Method Detail

transform

public void transform(org.jdom.contrib.input.LineNumberElement xmlSegment)
               throws Exception
Specified by:
transform in interface IXMLSegmentListener
Exception

addTransformListener

public void addTransformListener(IJDOMDocumentListener receiver)

complete

public void complete()
              throws Exception
Specified by:
complete in interface IXMLSegmentListener
Exception