01: package com.sun.portal.rewriter.engines.xml.parser;
02:
03: /**
04: * @author Noble Paul
05: * Date: Sep 4, 2003
06: * Time: 11:52:45 AM
07: */
08: public interface XMLParserListener {
09: /**
10: * @param key the attribute name
11: * @return true if the attribute is to be processed (to be rewritten).
12: */
13: public boolean startAttribute(String key);
14:
15: public void endAttribute(String key, String value);
16:
17: public void startElement(String key);
18:
19: public void endElement();
20:
21: public int getOffset();
22:
23: public void endPCData(int startOffset);
24:
25: public void startPCData();
26:
27: public void endParsing();
28:
29: public void startPI();
30:
31: public void endPI(String target);
32:
33: public void startCDATA();
34:
35: public void endCDATA();
36:
37: }//interface XMLParserListener
|