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/07/25 04:51:25 UTC

svn commit: r978968 - /xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaVersioningHelper.java

Author: mukulg
Date: Sun Jul 25 02:51:25 2010
New Revision: 978968

URL: http://svn.apache.org/viewvc?rev=978968&view=rev
Log:
adding xs:anyType to the type registry used for schema versioning implementation

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

Modified: xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaVersioningHelper.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaVersioningHelper.java?rev=978968&r1=978967&r2=978968&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaVersioningHelper.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/src/org/apache/xerces/impl/xs/opti/SchemaVersioningHelper.java Sun Jul 25 02:51:25 2010
@@ -38,7 +38,7 @@ import org.apache.xerces.xni.QName;
  */
 public class SchemaVersioningHelper {
     
-    // list variables holding 'natively supported' XML Schema types and facets
+    // list variables holding 'natively supported' XML Schema 1.1 types and facets
     // by Xerces-J XML Schema 1.1 engine.    
     List typesSupported = null;
     List facetsSupported = null;
@@ -58,6 +58,8 @@ public class SchemaVersioningHelper {
     
     // initializing the supported XML Schema types
     private void initSupportedTypes() {
+        
+        typesSupported.add(new QName(null, "anyType", "anyType", Constants.NS_XMLSCHEMA));
         typesSupported.add(new QName(null, "anySimpleType", "anySimpleType", Constants.NS_XMLSCHEMA));
         typesSupported.add(new QName(null, "anyAtomicType", "anyAtomicType", Constants.NS_XMLSCHEMA));
         typesSupported.add(new QName(null, "string", "string", Constants.NS_XMLSCHEMA));
@@ -108,11 +110,13 @@ public class SchemaVersioningHelper {
         typesSupported.add(new QName(null, "yearMonthDuration", "yearMonthDuration", Constants.NS_XMLSCHEMA));
         typesSupported.add(new QName(null, "dayTimeDuration", "dayTimeDuration", Constants.NS_XMLSCHEMA));
         typesSupported.add(new QName(null, "dateTimeStamp", "dateTimeStamp", Constants.NS_XMLSCHEMA));
-    }
+        
+    } // initSupportedTypes
     
     
     // initializing the supported XML Schema facets
     private void initSupportedFacets() {
+        
         facetsSupported.add(new QName(null, "length", "length", Constants.NS_XMLSCHEMA));        
         facetsSupported.add(new QName(null, "minLength", "minLength", Constants.NS_XMLSCHEMA));
         facetsSupported.add(new QName(null, "maxLength", "maxLength", Constants.NS_XMLSCHEMA));
@@ -128,11 +132,12 @@ public class SchemaVersioningHelper {
         facetsSupported.add(new QName(null, "maxScale", "maxScale", Constants.NS_XMLSCHEMA));
         facetsSupported.add(new QName(null, "minScale", "minScale", Constants.NS_XMLSCHEMA));
         facetsSupported.add(new QName(null, "assertion", "assertion", Constants.NS_XMLSCHEMA));        
-        facetsSupported.add(new QName(null, "explicitTimezone", "explicitTimezone", Constants.NS_XMLSCHEMA));               
-    }
+        facetsSupported.add(new QName(null, "explicitTimezone", "explicitTimezone", Constants.NS_XMLSCHEMA));
+        
+    } // initSupportedFacets
     
     
-    // checks if the schema type specified by method arguments (the QName
+    // Method to check if the schema type specified by method arguments (the QName
     // components of the schema type) is supported by Xerces-J natively.
     public boolean isTypeSupported(String localName, String uri) {
        boolean typeSupported = false;
@@ -151,7 +156,7 @@ public class SchemaVersioningHelper {
     } // isTypeSupported 
     
     
-    // checks if the schema facet specified by method arguments (the QName
+    // Method to check if the schema facet specified by method arguments (the QName
     // components of a schema facet) is supported by Xerces-J natively.
     public boolean isFacetSupported(String localName, String uri) {
         boolean facetSupported = false;



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