org.griphyn.vdl.euryale
Interface Callback

All Known Implementing Classes:
DAX2DAG, DAXTest, MultipleLook.MyCallBackHandler, SingleLook.MyCallBackHandler

public interface Callback

This interfaces defines the callback calls from DAX parsing. A slim and memory-efficient parser of DAX is expected to implement these callbacks, and generate its own information on the fly.

Version:
$Revision: 1.1 $
Author:
Kavitha Ranganathan, Jens-S. V?ckler, Yong Zhao

Method Summary
 void cb_document(Map attributes)
          Callback when the opening tag was parsed.
 void cb_done()
          Callback when the parsing of the document is done.
 void cb_filename(Filename filename)
          Callback when the section 1 filenames are being parsed.
 void cb_job(Job job)
          Callback for the job from section 2 jobs.
 void cb_parents(String child, List parents)
          Callback for child and parent relationships from section 3.
 

Method Detail

cb_document

public void cb_document(Map attributes)
Callback when the opening tag was parsed. This contains all attributes and their raw values within a map. This callback can also be used to initialize callback-specific resources.

Parameters:
attributes - is a map of attribute key to attribute value

cb_filename

public void cb_filename(Filename filename)
Callback when the section 1 filenames are being parsed.

Parameters:
filename - is a DAX-style filename elements.

cb_job

public void cb_job(Job job)
Callback for the job from section 2 jobs. These jobs are completely assembled, but each is passed separately.

Parameters:
job - is the DAX-style job.

cb_parents

public void cb_parents(String child,
                       List parents)
Callback for child and parent relationships from section 3.

Parameters:
child - is the IDREF of the child element.
parents - is a list of IDREFs of the included parents.

cb_done

public void cb_done()
Callback when the parsing of the document is done. While this state could also be determined from the return of the invocation of the parser, that return may be hidden in another place of the code. This callback can be used to free callback-specific resources.



Copyright © 2003 The University of Chicago and The University of Southern California. All Rights Reserved.