[jboss-cvs] JBossAS SVN: r64622 - projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Aug 16 09:06:41 EDT 2007


Author: adrian at jboss.org
Date: 2007-08-16 09:06:41 -0400 (Thu, 16 Aug 2007)
New Revision: 64622

Modified:
   projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ObjectModelFactoryDeployer.java
Log:
JBAS-4193 - Doesn't look like Scott ever committed this change? Add support for turning off dtd validation

Modified: projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ObjectModelFactoryDeployer.java
===================================================================
--- projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ObjectModelFactoryDeployer.java	2007-08-16 13:03:59 UTC (rev 64621)
+++ projects/microcontainer/trunk/deployers-vfs-spi/src/main/org/jboss/deployers/vfs/spi/deployer/ObjectModelFactoryDeployer.java	2007-08-16 13:06:41 UTC (rev 64622)
@@ -49,6 +49,9 @@
    /** Whether the Unmarshaller will use schema validation */
    private boolean useSchemaValidation = true;
 
+   /** Whether to validate */
+   private boolean useValidation = true;
+   
    /**
     * Create a new SchemaResolverDeployer.
     * 
@@ -60,16 +63,46 @@
       super(output);
    }
 
+   /**
+    * Get the useSchemaValidation.
+    * 
+    * @return the useSchemaValidation.
+    */
    public boolean isUseSchemaValidation()
    {
       return useSchemaValidation;
    }
 
+   /**
+    * Set the useSchemaValidation.
+    * 
+    * @param useSchemaValidation the useSchemaValidation.
+    */
    public void setUseSchemaValidation(boolean useSchemaValidation)
    {
       this.useSchemaValidation = useSchemaValidation;
    }
 
+   /**
+    * Get the useValidation.
+    * 
+    * @return the useValidation.
+    */
+   public boolean isUseValidation()
+   {
+      return useValidation;
+   }
+
+   /**
+    * Set the useValidation.
+    * 
+    * @param useValidation the useValidation.
+    */
+   public void setUseValidation(boolean useValidation)
+   {
+      this.useValidation = useValidation;
+   }
+
    @Override
    protected T parse(VFSDeploymentUnit unit, VirtualFile file, T root) throws Exception
    {
@@ -77,7 +110,8 @@
          throw new IllegalArgumentException("Null file");
 
       Unmarshaller unmarshaller = factory.newUnmarshaller();
-      unmarshaller.setSchemaValidation(useSchemaValidation);
+      unmarshaller.setSchemaValidation(isUseSchemaValidation());
+      unmarshaller.setValidation(isUseValidation());
       Object parsed = null;
       try
       {




More information about the jboss-cvs-commits mailing list