incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From devin...@apache.org
Subject svn commit: r1172438 [2/2] - in /incubator/odf/trunk/validator: ./ nbproject/ src/org/odftoolkit/odfvalidator/
Date Mon, 19 Sep 2011 05:33:23 GMT
Modified: incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/ContentFilter.java
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/ContentFilter.java?rev=1172438&r1=1172437&r2=1172438&view=diff
==============================================================================
--- incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/ContentFilter.java (original)
+++ incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/ContentFilter.java Mon Sep
19 05:33:23 2011
@@ -22,7 +22,7 @@
 
 package org.odftoolkit.odfvalidator;
 
-import org.odftoolkit.odfdom.dom.OdfNamespace;
+import org.odftoolkit.odfdom.dom.OdfNamespaceNames;
 import org.xml.sax.Attributes;
 import org.xml.sax.SAXException;
 import org.xml.sax.helpers.AttributesImpl;
@@ -34,11 +34,11 @@ class ContentFilter extends NamespaceFil
     private static final String CD2_SMIL_NAMESPACE_URI = "http://www.w3.org/2001/SMIL20/";
     private static final String BASE_OFFICE_NAMESPACE_URI = "http://openoffice.org/2004/office";
     private static final String BASE_DB_NAMESPACE_URI = "http://openoffice.org/2004/database";
-    private static final String SVG_NAMESPACE_URI = OdfNamespace.SVG.toString();
-    private static final String XSL_NAMESPACE_URI = OdfNamespace.FO.toString();
-    private static final String SMIL_NAMESPACE_URI = OdfNamespace.SMIL.toString();
-    private static final String DRAW_NAMESPACE_URI = OdfNamespace.DRAW.toString();
-    private static final String OFFICE_NAMESPACE_URI = OdfNamespace.OFFICE.toString();;
+    private static final String SVG_NAMESPACE_URI = OdfNamespaceNames.SVG.getNamespaceUri();
+    private static final String XSL_NAMESPACE_URI = OdfNamespaceNames.FO.getNamespaceUri();
+    private static final String SMIL_NAMESPACE_URI = OdfNamespaceNames.SMIL.getNamespaceUri();
+    private static final String DRAW_NAMESPACE_URI = OdfNamespaceNames.DRAW.getNamespaceUri();
+    private static final String OFFICE_NAMESPACE_URI = OdfNamespaceNames.OFFICE.getNamespaceUri();
     private static final String DB_NAMESPACE_URI = "urn:oasis:names:tc:opendocument:xmlns:database:1.0";
     private static final String BASE_OFFICE_NAMESPACE_PREFIX = "office";
     private static final String POLYGON = "polygon";

Modified: incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/MetaFilter.java
URL: http://svn.apache.org/viewvc/incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/MetaFilter.java?rev=1172438&r1=1172437&r2=1172438&view=diff
==============================================================================
--- incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/MetaFilter.java (original)
+++ incubator/odf/trunk/validator/src/org/odftoolkit/odfvalidator/MetaFilter.java Mon Sep
19 05:33:23 2011
@@ -22,7 +22,7 @@
 
 package org.odftoolkit.odfvalidator;
 
-import org.odftoolkit.odfdom.dom.OdfNamespace;
+import org.odftoolkit.odfdom.dom.OdfNamespaceNames;
 import org.xml.sax.Attributes;
 import org.xml.sax.SAXException;
 import org.xml.sax.helpers.XMLFilterImpl;
@@ -33,8 +33,8 @@ class MetaFilter extends XMLFilterImpl {
     private String m_aGenerator = "";
     private boolean m_bRoot = true;
     
-    private static final String META_NAMESPACE_URI = OdfNamespace.META.toString();
-    private static final String OFFICE_NAMESPACE_URI = OdfNamespace.OFFICE.toString();
+    private static final String META_NAMESPACE_URI = OdfNamespaceNames.META.getNamespaceUri();
+    private static final String OFFICE_NAMESPACE_URI = OdfNamespaceNames.OFFICE.getNamespaceUri();
     private static final String GENERATOR = "generator";
     private static final String DOCUMENT_META = "document-meta";
 



Mime
View raw message