[Uml-devel] kdesdk/umbrello/umbrello/codegenerators
Brian Thomas
thomas at mail630.gsfc.nasa.gov
Wed Oct 1 08:14:05 UTC 2003
CVS commit by thomas:
bug fix: add targetNamespace and change declaration of abstractClasses (interfaces) to have 'SchemaType' appended.. making collision between poorly named classes much less likely
M +4 -2 xmlschemawriter.cpp 1.10
--- kdesdk/umbrello/umbrello/codegenerators/xmlschemawriter.cpp #1.9:1.10
@@ -107,4 +107,5 @@ void XMLSchemaWriter::writeClass(UMLClas
XMLschema<<"<"<<makeSchemaTag("schema");
// common namespaces we know will be in the file..
+ XMLschema<<" targetNamespace=\""<<packageNamespaceURI+packageNamespaceTag<<"\""<<endl;
XMLschema<<" xmlns:"<<schemaNamespaceTag<<"=\""<<schemaNamespaceURI<<"\"";
XMLschema<<" xmlns:"<<packageNamespaceTag<<"=\""<<packageNamespaceURI+packageNamespaceTag<<"\"";
@@ -782,5 +784,5 @@ QString XMLSchemaWriter::getElementTypeN
{
QString elementName = getElementName(c);
- return elementName + "Type";
+ return elementName + "SchemaType";
}
@@ -788,5 +790,5 @@ QString XMLSchemaWriter::getElementGroup
{
QString elementName = getElementName(c);
- return elementName + "InterfaceType";
+ return elementName + "SchemaInterfaceType";
}
More information about the umbrello-devel
mailing list