01: package org.enhydra.kelp.ant.node;
02:
03: import org.enhydra.kelp.common.node.*;
04:
05: /**
06: * <p>Title: </p>
07: * <p>Description: </p>
08: * <p>Copyright: Copyright (c) 2003</p>
09: * <p>Company: </p>
10: * @author unascribed
11: * @version 1.0
12: */
13:
14: public class AntNodeFactory extends OtterNodeFactory {
15:
16: public AntNodeFactory() {
17: }
18:
19: public OtterTemplateNode getTemplateNode(OtterNode node) {
20: /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
21: return null; //FIXME
22: }
23:
24: public OtterFolderNode createFolderNode(OtterNode node, String name) {
25: OtterFolderNode newNode = null;
26: newNode = new AntFolderNode(node, name);
27: return newNode;
28: }
29:
30: public OtterJavaFileNode[] replaceGeneratedSource(
31: OtterProject parm1, OtterNode parm2, String[] parm3) {
32: /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
33: return null; //FIXME
34: }
35:
36: public OtterTextFileNode createTextFileNode(OtterNode node,
37: String fileName) {
38: OtterTextFileNode newNode = null;
39: newNode = new AntTextFileNode(node, fileName);
40: return newNode;
41: }
42:
43: public OtterImageFileNode createImageFileNode(OtterNode node,
44: String fileName) {
45: /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
46: return null; //FIXME
47: }
48:
49: public OtterTemplateNode createTemplateNode(OtterNode node,
50: String fileName) {
51: /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
52: return null; //FIXME
53: }
54:
55: public OtterJavaFileNode createJavaFileNode(OtterNode node,
56: String fileName) {
57: /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
58: return null; //FIXME
59: }
60:
61: /**
62: * Creates Document node(representation of HTML,WML,XHTML from file.
63: * @param node parent node
64: * @param fileName file name
65: * @return
66: */
67: public OtterDocumentNode createDocumentNode(OtterNode node,
68: String fileName) {
69: OtterDocumentNode newNode = null;
70: newNode = new AntDocumentNode(node, fileName);
71: return newNode;
72: }
73: }
|