1 5 package xdoclet.modules.spring; 6 7 import xdoclet.XDocletException; 8 import xdoclet.XmlSubTask; 9 10 21 public class SpringValidationXmlSubTask extends XmlSubTask 22 { 23 private final static String DTD_FILE_NAME_11 = "resources/validation_1_1.dtd"; 24 private final static String VALIDATION_PUBLICID_11 = "-//Apache Software Foundation//DTD Commons Validator Rules Configuration 1.1//EN"; 25 private final static String VALIDATION_SYSTEMID_11 = "http://jakarta.apache.org/commons/dtds/validator_1_1.dtd"; 26 27 private static String DEFAULT_TEMPLATE_FILE = "resources/validation_xml.xdt"; 28 private static String GENERATED_FILE_NAME = "validation.xml"; 29 30 33 public SpringValidationXmlSubTask() 34 { 35 setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE)); 36 setDestinationFile(GENERATED_FILE_NAME); 37 setPublicId(VALIDATION_PUBLICID_11); 38 setSystemId(VALIDATION_SYSTEMID_11); 39 setDtdURL(getClass().getResource(DTD_FILE_NAME_11)); 40 } 41 42 48 public void execute() throws XDocletException 49 { 50 startProcess(); 51 } 52 } 53 | Popular Tags |