Update of
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-xwork/src/main/java/org/xdoclet/plugin/xwork
In directory
sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv27208/plugin-xwork/src/main/java/org/xdoclet/plugin/xwork
Modified Files:
XWorkXMLPlugin.java
Log Message:
Plugin validation. Offline validation
Index: XWorkXMLPlugin.java
===================================================================
RCS file:
/cvsroot/xdoclet-plugins/xdoclet-plugins/plugin-xwork/src/main/java/org/xdoclet/plugin/xwork/XWorkXMLPlugin.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** XWorkXMLPlugin.java 12 Apr 2006 18:45:19 -0000 1.7
--- XWorkXMLPlugin.java 7 Jun 2006 01:43:49 -0000 1.8
***************
*** 8,13 ****
--- 8,15 ----
import java.io.File;
import java.util.ArrayList;
+ import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
+ import java.util.Map;
import org.generama.JellyTemplateEngine;
***************
*** 15,18 ****
--- 17,21 ----
import org.generama.WriterMapper;
import org.generama.defaults.QDoxPlugin;
+ import org.generama.defaults.XMLOutputValidator;
import org.xdoclet.plugin.xwork.model.Action;
import org.xdoclet.plugin.xwork.model.ExceptionMapping;
***************
*** 34,46 ****
/**
* plugin producing xwork mapping declarations.
! *
* this plugin will produce mapping declarations for single package. resulting
* xml file can be included into master configuration.
! *
* for now it processes only action classes ( which are just a POJOs and do
not
* require any superclasses / interfaces )
! *
* interceptor stuff etc shall be merged in.
! *
* @author Jose Peleteiro
* @author Konstantin Pribluda
--- 37,49 ----
/**
* plugin producing xwork mapping declarations.
! *
* this plugin will produce mapping declarations for single package. resulting
* xml file can be included into master configuration.
! *
* for now it processes only action classes ( which are just a POJOs and do
not
* require any superclasses / interfaces )
! *
* interceptor stuff etc shall be merged in.
! *
* @author Jose Peleteiro
* @author Konstantin Pribluda
***************
*** 74,77 ****
--- 77,83 ----
// it generates just one file, classes by default xwork.xml
this.setMultioutput(false);
+ Map dtds = new HashMap();
+ dtds.put("http://www.opensymphony.com/xwork/xwork-1.1.1.dtd",
getClass().getResource("dtd/xwork-1.1.1.dtd"));
+ setOutputValidator(new XMLOutputValidator(dtds));
}
***************
*** 117,121 ****
/**
* parent of this package
! *
* @return
*/
--- 123,127 ----
/**
* parent of this package
! *
* @return
*/
***************
*** 126,130 ****
/**
* destination file name
! *
* @return
*/
--- 132,136 ----
/**
* destination file name
! *
* @return
*/
***************
*** 135,139 ****
/**
* merge file for basic setings
! *
* @return
*/
--- 141,145 ----
/**
* merge file for basic setings
! *
* @return
*/
***************
*** 144,148 ****
/**
* namespace of pckage
! *
* @return
*/
--- 150,154 ----
/**
* namespace of pckage
! *
* @return
*/
***************
*** 153,157 ****
/**
* package name
! *
* @return
*/
--- 159,163 ----
/**
* package name
! *
* @return
*/
***************
*** 216,220 ****
/**
! * whether generated package shall be declared as abstract
* @generama.property
* @param _abstract
--- 222,226 ----
/**
! * whether generated package shall be declared as abstract
* @generama.property
* @param _abstract
_______________________________________________
xdoclet-plugins-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xdoclet-plugins-commits