KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > enhydra > kelp > ant > node > AntNodeFactory


1 package org.enhydra.kelp.ant.node;
2
3 import org.enhydra.kelp.common.node.*;
4
5
6 /**
7  * <p>Title: </p>
8  * <p>Description: </p>
9  * <p>Copyright: Copyright (c) 2003</p>
10  * <p>Company: </p>
11  * @author unascribed
12  * @version 1.0
13  */

14
15 public class AntNodeFactory extends OtterNodeFactory {
16
17   public AntNodeFactory() {
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   public OtterFolderNode createFolderNode(OtterNode node, String JavaDoc name) {
24     OtterFolderNode newNode = null;
25     newNode = new AntFolderNode(node, name);
26     return newNode;
27   }
28   public OtterJavaFileNode[] replaceGeneratedSource(OtterProject parm1, OtterNode parm2, String JavaDoc[] parm3) {
29     /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
30      return null; //FIXME
31
}
32   public OtterTextFileNode createTextFileNode(OtterNode node, String JavaDoc fileName) {
33     OtterTextFileNode newNode = null;
34     newNode = new AntTextFileNode(node, fileName);
35     return newNode;
36   }
37   public OtterImageFileNode createImageFileNode(OtterNode node, String JavaDoc fileName) {
38     /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
39      return null; //FIXME
40
}
41   public OtterTemplateNode createTemplateNode(OtterNode node, String JavaDoc fileName) {
42     /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
43      return null; //FIXME
44
}
45   public OtterJavaFileNode createJavaFileNode(OtterNode node, String JavaDoc fileName) {
46     /**@todo: implement this org.enhydra.kelp.common.node.OtterNodeFactory abstract method*/
47      return null; //FIXME
48
}
49   /**
50    * Creates Document node(representation of HTML,WML,XHTML from file.
51    * @param node parent node
52    * @param fileName file name
53    * @return
54    */

55   public OtterDocumentNode createDocumentNode(OtterNode node, String JavaDoc fileName) {
56     OtterDocumentNode newNode = null;
57     newNode = new AntDocumentNode(node, fileName);
58     return newNode;
59   }
60 }
Popular Tags