01: /*
02: * Created on Feb 24, 2005
03: */
04: package com.sun.portal.wireless.htmlconversion.processors;
05:
06: import java.util.HashMap;
07:
08: import org.w3c.dom.Element;
09:
10: import com.sun.portal.wireless.htmlconversion.ParserState;
11:
12: /**
13: * Tag processor for AmlPage. Note that this does not create the AmlPage
14: * element via callbacks - that's done in AmlDocumentTagProcessor. This
15: * class serves as a placeholder to provide the canHaveChildren() property
16: * for AmlPage.
17: *
18: * @author ashwin.mathew@sun.com
19: */
20: public class AmlPageTagProcessor extends BaseTagProcessor {
21:
22: public static final String AML_PAGE = "AmlPage";
23:
24: private static final String[] supportedTags = {};
25:
26: /* (non-Javadoc)
27: * @see com.sun.portal.wireless.htmlconversion.TagProcessor#getAmlTag()
28: */
29: public String getAmlTag() {
30: return AML_PAGE;
31: }
32:
33: /* (non-Javadoc)
34: * @see com.sun.portal.wireless.htmlconversion.TagProcessor#getSupportedTags()
35: */
36: public String[] getSupportedTags() {
37: return supportedTags;
38: }
39:
40: /* (non-Javadoc)
41: * @see com.sun.portal.wireless.htmlconversion.TagProcessor#canHaveChildren()
42: */
43: public boolean canHaveChildren(ParserState state) {
44: return true;
45: }
46:
47: /* (non-Javadoc)
48: * @see com.sun.portal.wireless.htmlconversion.TagProcessor#startTag(java.lang.String, java.util.HashMap, com.sun.portal.wireless.htmlconversion.ParserState)
49: */
50: public Element startTag(String tagName, HashMap attributes,
51: ParserState state) {
52: // Return null, since it's getting created and added to the output DOM
53: // in AmlDocumentTagProcessor.interruptedTag().
54: return null;
55: }
56: }
|