Author: scantor
Date: Sun Aug  6 20:25:24 2017
New Revision: 1804272

URL: http://svn.apache.org/viewvc?rev=1804272&view=rev
Log:
XERCESC-2112 - PSVI XSObject getNamespace method should be const

Modified:
    xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.hpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSObject.cpp
    xerces/c/trunk/src/xercesc/framework/psvi/XSObject.hpp

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.cpp Sun 
Aug  6 20:25:24 2017
@@ -61,7 +61,7 @@ const XMLCh *XSAttributeDeclaration::get
     return fAttDef->getAttName()->getLocalPart();
 }
 
-const XMLCh *XSAttributeDeclaration::getNamespace() 
+const XMLCh *XSAttributeDeclaration::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fAttDef->getAttName()->getURI());
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.hpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeDeclaration.hpp Sun 
Aug  6 20:25:24 2017
@@ -92,7 +92,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: 
xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.cpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.cpp 
Sun Aug  6 20:25:24 2017
@@ -60,7 +60,7 @@ const XMLCh *XSAttributeGroupDefinition:
     return 
fXSModel->getURIStringPool()->getValueForId(fXercesAttGroupInfo->getNameId());  
      
 }
 
-const XMLCh *XSAttributeGroupDefinition::getNamespace() 
+const XMLCh *XSAttributeGroupDefinition::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fXercesAttGroupInfo->getNamespaceId());
 }

Modified: 
xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.hpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSAttributeGroupDefinition.hpp 
Sun Aug  6 20:25:24 2017
@@ -89,7 +89,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.cpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.cpp Sun Aug  
6 20:25:24 2017
@@ -96,7 +96,7 @@ const XMLCh *XSElementDeclaration::getNa
     return fSchemaElementDecl->getElementName()->getLocalPart();
 }
 
-const XMLCh *XSElementDeclaration::getNamespace() 
+const XMLCh *XSElementDeclaration::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fSchemaElementDecl->getURI());
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.hpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSElementDeclaration.hpp Sun Aug  
6 20:25:24 2017
@@ -98,7 +98,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.cpp Sun Aug  6 
20:25:24 2017
@@ -76,7 +76,7 @@ const XMLCh *XSIDCDefinition::getName()
     return fIdentityConstraint->getIdentityConstraintName();
 }
 
-const XMLCh *XSIDCDefinition::getNamespace() 
+const XMLCh *XSIDCDefinition::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fIdentityConstraint->getNamespaceURI());
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.hpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSIDCDefinition.hpp Sun Aug  6 
20:25:24 2017
@@ -104,7 +104,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.cpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.cpp Sun 
Aug  6 20:25:24 2017
@@ -56,7 +56,7 @@ const XMLCh *XSModelGroupDefinition::get
     return 
fXSModel->getURIStringPool()->getValueForId(fGroupInfo->getNameId());
 }
 
-const XMLCh *XSModelGroupDefinition::getNamespace() 
+const XMLCh *XSModelGroupDefinition::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fGroupInfo->getNamespaceId());
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.hpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSModelGroupDefinition.hpp Sun 
Aug  6 20:25:24 2017
@@ -87,7 +87,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.cpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.cpp Sun Aug 
 6 20:25:24 2017
@@ -54,7 +54,7 @@ const XMLCh *XSNotationDeclaration::getN
     return fXMLNotationDecl->getName();
 }
 
-const XMLCh *XSNotationDeclaration::getNamespace() 
+const XMLCh *XSNotationDeclaration::getNamespace() const
 {
     return 
fXSModel->getURIStringPool()->getValueForId(fXMLNotationDecl->getNameSpaceId());
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.hpp 
(original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSNotationDeclaration.hpp Sun Aug 
 6 20:25:24 2017
@@ -84,7 +84,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is 
      * unspecified. 
      */
-    const XMLCh* getNamespace();
+    const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target 

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSObject.cpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSObject.cpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSObject.cpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSObject.cpp Sun Aug  6 20:25:24 
2017
@@ -53,7 +53,7 @@ const XMLCh *XSObject::getName() const
     return 0;
 }
 
-const XMLCh *XSObject::getNamespace()
+const XMLCh *XSObject::getNamespace() const
 {
     return 0;
 }

Modified: xerces/c/trunk/src/xercesc/framework/psvi/XSObject.hpp
URL: 
http://svn.apache.org/viewvc/xerces/c/trunk/src/xercesc/framework/psvi/XSObject.hpp?rev=1804272&r1=1804271&r2=1804272&view=diff
==============================================================================
--- xerces/c/trunk/src/xercesc/framework/psvi/XSObject.hpp (original)
+++ xerces/c/trunk/src/xercesc/framework/psvi/XSObject.hpp Sun Aug  6 20:25:24 
2017
@@ -90,7 +90,7 @@ public:
      *  The [target namespace] of this object, or <code>null</code> if it is
      * unspecified.
      */
-    virtual const XMLCh* getNamespace();
+    virtual const XMLCh* getNamespace() const;
 
     /**
      * A namespace schema information item corresponding to the target



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

Reply via email to