knoaman 2003/11/26 08:12:23
Modified: c/src/xercesc/framework/psvi XSModel.hpp XSModel.cpp
Log:
Add a method to return the XSObject mapped to a schema grammar component
Revision Changes Path
1.9 +14 -0 xml-xerces/c/src/xercesc/framework/psvi/XSModel.hpp
Index: XSModel.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSModel.hpp,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- XSModel.hpp 21 Nov 2003 22:34:45 -0000 1.8
+++ XSModel.hpp 26 Nov 2003 16:12:23 -0000 1.9
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.9 2003/11/26 16:12:23 knoaman
+ * Add a method to return the XSObject mapped to a schema grammar component
+ *
* Revision 1.8 2003/11/21 22:34:45 neilg
* More schema component model implementation, thanks to David Cargill.
* In particular, this cleans up and completes the XSModel, XSNamespaceItem,
@@ -298,6 +301,15 @@
XMLStringPool* getURIStringPool();
XSNamespaceItem* getNamespaceItem(const XMLCh* const key);
+
+ /**
+ * Get the XSObject (i.e. XSElementDeclaration) that corresponds to
+ * to a schema grammar component (i.e. SchemaElementDecl)
+ * @param key schema component object
+ *
+ * @return the corresponding XSObject
+ */
+ XSObject* getXSObject(void* key);
//@}
private:
1.10 +8 -0 xml-xerces/c/src/xercesc/framework/psvi/XSModel.cpp
Index: XSModel.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/xercesc/framework/psvi/XSModel.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- XSModel.cpp 25 Nov 2003 18:08:31 -0000 1.9
+++ XSModel.cpp 26 Nov 2003 16:12:23 -0000 1.10
@@ -56,6 +56,9 @@
/*
* $Log$
+ * Revision 1.10 2003/11/26 16:12:23 knoaman
+ * Add a method to return the XSObject mapped to a schema grammar component
+ *
* Revision 1.9 2003/11/25 18:08:31 knoaman
* Misc. PSVI updates. Thanks to David Cargill.
*
@@ -744,6 +747,11 @@
if (fParent)
return fParent->getNamespaceItem(key);
return 0;
+}
+
+XSObject* XSModel::getXSObject(void* key)
+{
+ return fObjFactory->getObjectFromMap(key, this);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]