de.fu_berlin.ties.xml.dom
Interface ElementProcessor

All Known Implementing Classes:
AnswerBuilder

public interface ElementProcessor

Interface for a processor that operates on elements in XML documents.

Version:
$Revision: 1.2 $, $Date: 2004/02/05 14:23:57 $, $Author: siefkes $
Author:
Christian Siefkes

Method Summary
 void processElement(Element element, TokenContainer tokenContainer, ContextMap context)
          Processes an element in an XML document, optionally modifying the element or the document it is part of.
 

Method Detail

processElement

void processElement(Element element,
                    TokenContainer tokenContainer,
                    ContextMap context)
                    throws IOException,
                           ProcessingException
Processes an element in an XML document, optionally modifying the element or the document it is part of.

Parameters:
element - the element to process
tokenContainer - a container storing all tokens seen in the document so far; TokenContainer.getLast() contains the textual content of the element and its child elements
context - a map of objects that are made available for processing
Throws:
IOException - if an I/O error occurs
ProcessingException - if an error occurs during processing


Copyright © 2003-2004 Christian Siefkes. All Rights Reserved.