xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ra...@apache.org
Subject svn commit: r292530 - in /xmlbeans/trunk/src: store/org/apache/xmlbeans/impl/store/Saver.java xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java xmlpublic/org/apache/xmlbeans/XmlOptions.java
Date Thu, 29 Sep 2005 20:19:37 GMT
Author: radup
Date: Thu Sep 29 13:19:24 2005
New Revision: 292530

URL: http://svn.apache.org/viewcvs?rev=292530&view=rev
Log:
Fixed some small typos in the fix for XmlOptions.setSaveSubstituteCharacters() (XMLBEANS-177).


Contributed by Lawrence Jones

Modified:
    xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java
    xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java
    xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptions.java

Modified: xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java?rev=292530&r1=292529&r2=292530&view=diff
==============================================================================
--- xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java (original)
+++ xmlbeans/trunk/src/store/org/apache/xmlbeans/impl/store/Saver.java Thu Sep 29 13:19:24
2005
@@ -99,10 +99,10 @@
         }
 
         // define character map for escaped replacements
-        if (options.hasOption( XmlOptions.SAVE_SUBSITITUTE_CHARACTERS ))
+        if (options.hasOption( XmlOptions.SAVE_SUBSTITUTE_CHARACTERS ))
         {
             _replaceChar = (XmlOptionCharEscapeMap)
-                options.get( XmlOptions.SAVE_SUBSITITUTE_CHARACTERS);
+                options.get( XmlOptions.SAVE_SUBSTITUTE_CHARACTERS);
         }
 
         // If the default prefix has not been mapped, do so now

Modified: xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java?rev=292530&r1=292529&r2=292530&view=diff
==============================================================================
--- xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java (original)
+++ xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptionCharEscapeMap.java Thu Sep 29
13:19:24 2005
@@ -92,7 +92,7 @@
                 String replString = (String)_predefEntities.get(theChar);
                 if ( replString == null )
                 {
-                    throw new XmlException("XmlOptionCharEncoderMap.addMapping(): " +
+                    throw new XmlException("XmlOptionCharEscapeMap.addMapping(): " +
                         "the PREDEF_ENTITY mode can only be used for the following " +
                         "characters: <, >, &, \" and '");
                 }
@@ -109,7 +109,7 @@
                 break;
 
             default:
-                throw new XmlException("XmlOptionCharEncoderMap.addMapping(): " +
+                throw new XmlException("XmlOptionCharEscapeMap.addMapping(): " +
                     "mode must be PREDEF_ENTITY, DECIMAL or HEXADECIMAL");
         }
     }
@@ -122,7 +122,7 @@
     {
         if (ch1 > ch2)
         {
-            throw new XmlException("XmlOptionCharEncoderMap.addMappings(): " +
+            throw new XmlException("XmlOptionCharEscapeMap.addMappings(): " +
                 "ch1 must be <= ch2");
         }
 

Modified: xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptions.java
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptions.java?rev=292530&r1=292529&r2=292530&view=diff
==============================================================================
--- xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptions.java (original)
+++ xmlbeans/trunk/src/xmlpublic/org/apache/xmlbeans/XmlOptions.java Thu Sep 29 13:19:24 2005
@@ -226,7 +226,7 @@
      * collect the set of needed namespace declarations, and then second
      * to actually save the document with the declarations collected
      * at the root.
-     * 
+     *
      * @see XmlTokenSource#save(java.io.File, XmlOptions)
      * @see XmlTokenSource#xmlText(XmlOptions)
      */
@@ -322,7 +322,7 @@
      */
     public XmlOptions setSaveSubstituteCharacters (
         XmlOptionCharEscapeMap characterReplacementMap) {
-        return set( SAVE_SUBSITITUTE_CHARACTERS, characterReplacementMap );
+        return set( SAVE_SUBSTITUTE_CHARACTERS, characterReplacementMap );
     }
 
     /**
@@ -748,7 +748,7 @@
     /** @exclude */
     public static final String SAVE_NO_XML_DECL                = "SAVE_NO_XML_DECL";
     /** @exclude */
-    public static final String SAVE_SUBSITITUTE_CHARACTERS     = "SAVE_SUBSITITUTE_CHARACTERS";
+    public static final String SAVE_SUBSTITUTE_CHARACTERS     = "SAVE_SUBSTITUTE_CHARACTERS";
     /** @exclude */
     public static final String LOAD_REPLACE_DOCUMENT_ELEMENT   = "LOAD_REPLACE_DOCUMENT_ELEMENT";
     /** @exclude */



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


Mime
View raw message