You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mu...@apache.org on 2010/09/29 18:01:10 UTC

svn commit: r1002702 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java

Author: mukulg
Date: Wed Sep 29 16:01:10 2010
New Revision: 1002702

URL: http://svn.apache.org/viewvc?rev=1002702&view=rev
Log:
doing few minor improvements to javadocs and cleaning a bit of unused code.

Modified:
    xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java?rev=1002702&r1=1002701&r2=1002702&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/XMLAssertPsychopathImpl.java Wed Sep 29 16:01:10 2010
@@ -64,10 +64,6 @@ import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
 import org.w3c.dom.NodeList;
-import org.w3c.dom.bootstrap.DOMImplementationRegistry;
-import org.w3c.dom.ls.DOMImplementationLS;
-import org.w3c.dom.ls.LSOutput;
-import org.w3c.dom.ls.LSSerializer;
 
 /**
  * Class implementing an XPath interface, for XML Schema 1.1 "assertions"
@@ -118,10 +114,6 @@ public class XMLAssertPsychopathImpl ext
     // an instance variable to track the name of an attribute currently
     // been processed for assertions.
     String fAttrName = null;
-    
-    // an instance variable, used for optional debugging of assertion
-    // evaluations.
-    String fAssertDebug = null;
 
     
     /*
@@ -133,8 +125,6 @@ public class XMLAssertPsychopathImpl ext
         this.fAssertRootStack = new Stack();
         this.fAssertListStack = new Stack();
         this.fAssertParams = assertParams;
-        this.fAssertDebug = System.getProperty
-                                  ("org.apache.xerces.schema11.assertDebug");
     }
     
 
@@ -606,7 +596,7 @@ public class XMLAssertPsychopathImpl ext
                             }
                         }
                         if (assertsSucceeded == assertFacets.size()) {
-                            // all assertions on a 'union member type' have 
+                            // all assertions on a 'union' member type have 
                             // evaluated to 'true', therefore validation with
                             // union has succeeded wrt assertions.
                             return false;  
@@ -1004,8 +994,9 @@ public class XMLAssertPsychopathImpl ext
     
     
     /*
-     * Determine if a "string value" is valid for a given simpleType
-     * definition. Using Xerces 'XSSimpleType.validate' API for this need.
+     * Determine if a lexical "string value" conforms to a given schema
+     * simpleType definition. Using Xerces API 'XSSimpleType.validate'
+     * for this need.
      */
     private boolean isValueValidForASimpleType(String value, XSSimpleType 
                                                              simplType) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org