01: package util;
02:
03: import org.xml.sax.*;
04:
05: /** this interface was created to be used with our simple parser. An
06: * object of this kind would be created and given to the parser.
07: */
08: public interface ParseModel {
09:
10: /** this gives the element name and the attribute list. */
11: public void setModelElement(String ename, Attributes attrs);
12:
13: /** this gives the attribute name and value, it also gives the index
14: * of the attribute starting 0, and the total count of attributes
15: * within that
16: * element */
17: public void setModelAttribute(int row, int total, String aname,
18: String value, String ename);
19:
20: /** this was put to return the collection since we dont know what
21: * kinda object we have in here. You can get and then manipulate
22: * as is.
23: */
24: public Object getObject();
25: }
|