1 5 package xdoclet.modules.jdo; 6 7 import org.apache.tools.ant.BuildException; 8 9 import xdoclet.DocletTask; 10 11 20 public class JdoDocletTask extends DocletTask 21 { 22 25 private String jdoSpec = JdoSpecVersion.JDO_1_0; 26 27 32 public String getJdoSpec() 33 { 34 return jdoSpec; 35 } 36 37 43 public void setJdoSpec(JdoSpecVersion jdoSpec) 44 { 45 this.jdoSpec = jdoSpec.getValue(); 46 } 47 48 protected void validateOptions() throws BuildException 49 { 50 super.validateOptions(); 51 } 52 53 57 public static class JdoSpecVersion extends org.apache.tools.ant.types.EnumeratedAttribute 58 { 59 public final static String JDO_1_0 = "1.0"; 60 public final static String JDO_2_0 = "2.0"; 61 62 67 public java.lang.String [] getValues() 68 { 69 return (new java.lang.String []{ 70 JDO_1_0, JDO_2_0 71 }); 72 } 73 } 74 75 } 76 | Popular Tags |