1 package org.enhydra.kelp.ant.node; 2 3 import org.enhydra.kelp.common.node.OtterDocumentNode; 5 import org.enhydra.kelp.common.node.OtterNode; 6 import org.enhydra.kelp.common.PropUtil; 7 8 import org.enhydra.xml.xmlc.XMLCException; 10 11 import java.io.IOException ; 13 14 22 23 public class AntDocumentNode extends AntFileNode 24 implements OtterDocumentNode { 25 26 protected String staticFile = "false"; 27 28 public AntDocumentNode(OtterNode n) { 29 super(n); 30 } 31 public AntDocumentNode(OtterNode node,String filePath) { 32 super(node,filePath); 33 } 34 35 40 public void setSelected(boolean b) { 41 super.setSelected(b); 42 if (b) { 43 setStatic(false); 44 } 45 46 } 47 public boolean isStatic() { 48 String in = staticFile; return PropUtil.stringToBoolean(in, false); 50 } 51 public void setStatic(boolean b) { 52 staticFile = PropUtil.booleanToString(b); if (b) { 54 setSelected(false); 55 } 56 } 57 public void preCompile() throws XMLCException, IOException { 58 throw new java.lang.UnsupportedOperationException ("Method preCompile() not implemented."); 60 } 61 } | Popular Tags |