umbrello/umbrello
xmlschemawriter.cpp
Go to the documentation of this file.
104 xs << " xmlns:" << packageNamespaceTag << "=\"" << packageNamespaceURI << packageNamespaceTag << "\"";
134 xs << indent() << "</" << makeSchemaTag(QLatin1String("schema")) << ">" << m_endl; // finished.. close schema node
151 void XMLSchemaWriter::writeElementDecl(const QString &elementName, const QString &elementTypeName, QTextStream &xs)
213 // 1) declare it as a complexType so it may be inherited (I can see an option here: to NOT write
216 // 2) Create a group so that elements, which obey the abstract class /interface may be placed in
263 xs << indent() << "<" << makeSchemaTag(QLatin1String("group")) << " name=\"" << elementTypeName << "\">" << m_endl;
309 xs << indent() << "<" << makeSchemaTag(QLatin1String("complexType")) << " name=\"" << elementTypeName << "\"";
324 xs << indent() << "<" << makeSchemaTag(QLatin1String("extension")) << " base=\"" << makePackageTag(superClassName)
442 UMLAssociationList associations = c->getSpecificAssocs(Uml::AssociationType::Association); // BAD! only way to get "general" associations.
529 void XMLSchemaWriter::writeAttributeGroupDecl (const QString &elementName, UMLAttributeList &attribs, QTextStream &xs)
537 xs << indent() << "<" << makeSchemaTag(QLatin1String("attributeGroup")) << " name=\"" << elementName << "AttribGroupType" << "\">" << m_endl;
600 if (a->getObjectId(Uml::RoleType::A) == id && a->visibility(Uml::RoleType::B) != Uml::Visibility::Private)
603 if (a->getObjectId(Uml::RoleType::B) == id && a->visibility(Uml::RoleType::A) != Uml::Visibility::Private)
658 UMLObjectList XMLSchemaWriter::findChildObjsInAssociations (UMLClassifier *c, UMLAssociationList associations)
682 void XMLSchemaWriter::writeAssociationRoleDecl(UMLClassifier *c, const QString &multi, QTextStream &xs)
742 // Therefore, IF a group is abstract, but has no inheriting sub-classes, there are no choices, and it is nigh
UMLAssociationList getAggregations()
Shorthand for getSpecificAssocs(Uml::at_Aggregation)
Definition: umlcanvasobject.cpp:423
UMLObject * getObject(Uml::RoleType::Enum role) const
Returns the UMLObject assigned to the given role.
Definition: association.cpp:497
void clear()
This class defines the non-graphical information required for a UML Classifier (ie a class or interfa...
Definition: classifier.h:39
UMLAssociationList getSpecificAssocs(Uml::AssociationType::Enum assocType)
Return the subset of m_List that matches the given type.
Definition: umlcanvasobject.cpp:61
virtual QStringList reservedKeywords() const
Get list of reserved keywords.
Definition: xmlschemawriter.cpp:850
QString getInitialValue() const
Returns The initial value of the UMLAttribute.
Definition: attribute.cpp:99
Definition: basictypes.h:215
Uml::Visibility::Enum visibility() const
Returns the visibility of the object.
Definition: umlobject.cpp:431
bool openFile(QFile &file, const QString &name)
Opens a file named "name" for writing in the outputDirectory.
Definition: codegenerator.cpp:601
virtual Uml::ProgrammingLanguage::Enum language() const
Returns "XMLSchema".
Definition: xmlschemawriter.cpp:47
QStringList split(const QString &sep, SplitBehavior behavior, Qt::CaseSensitivity cs) const
QString findFileName(UMLPackage *concept, const QString &ext)
Determine the file name.
Definition: simplecodegenerator.cpp:89
QString & prepend(QChar ch)
Definition: basictypes.h:216
QString fileName() const
bool contains(const QString &str, Qt::CaseSensitivity cs) const
This sub-class adds copyInto and clone to the QPtrList base class.
Definition: umlattributelist.h:26
virtual QString getHeadingFile(const QString &file)
Gets the heading file (as a string) to be inserted at the beginning of the generated file...
Definition: codegenerator.cpp:497
QString & remove(int position, int n)
Definition: basictypes.h:58
This class contains the non-graphic representation of an association.
Definition: association.h:32
int count(const T &value) const
void append(const T &value)
bool isInterface() const
Returns true if this classifier represents an interface.
Definition: classifier.cpp:117
UMLClassifierList findSubClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which inherit from this concept.
Definition: classifier.cpp:585
bool isEmpty() const
void codeGenerated(UMLClassifier *concept, bool generated)
bool isEmpty() const
bool startsWith(const QString &s, Qt::CaseSensitivity cs) const
UMLAssociationList getCompositions()
Shorthand for getSpecificAssocs(Uml::at_Composition)
Definition: umlcanvasobject.cpp:433
bool endsWith(const QString &s, Qt::CaseSensitivity cs) const
virtual void writeClass(UMLClassifier *c)
Call this method to generate XMLschema code for a UMLClassifier.
Definition: xmlschemawriter.cpp:56
T & first()
bool contains(QChar ch, Qt::CaseSensitivity cs) const
Definition: basictypes.h:57
bool contains(const T &value) const
virtual void close()
UMLClassifierList findSuperClassConcepts(ClassifierType type=ALL)
Returns a list of concepts which this concept inherits from.
Definition: classifier.cpp:624
QString & replace(int position, int n, QChar after)
bool isStatic() const
Returns true if this UMLObject has classifier scope, otherwise false (the default).
Definition: umlobject.cpp:331
UMLAttributeList getAttributeList() const
Returns the attributes for the specified scope.
Definition: classifier.cpp:449
This sub-class adds copyInto and clone to the QList base class.
Definition: umlobjectlist.h:26
QString package(const QString &separator=QString(), bool includeRoot=false)
Return the package(s) in which this UMLObject is contained as a text.
Definition: umlobject.cpp:601
int length() const
Uml::Visibility::Enum visibility(Uml::RoleType::Enum role) const
Returns the Visibility of the given role.
Definition: association.cpp:550
QString fromLatin1(const char *str, int size)
QString getRoleName(Uml::RoleType::Enum role) const
Returns the name assigned to the role A.
Definition: association.cpp:568
static QString cleanName(const QString &name)
Replaces spaces with underscores and capitalises as defined in m_modname.
Definition: codegenerator.cpp:627
void showGeneratedFile(const QString &filename)
Uml::ID::Type getObjectId(Uml::RoleType::Enum role) const
Returns the ID of the UMLObject assigned to the given role.
Definition: association.cpp:509
QString getMultiplicity(Uml::RoleType::Enum role) const
Returns the multiplicity assigned to the given role.
Definition: association.cpp:559
virtual QString getTypeName() const
Returns the type name of the UMLClassifierListItem.
Definition: classifierlistitem.cpp:110
Definition: basictypes.h:59
QString indent()
Returns the current indent string based on m_indentLevel and m_indentation.
Definition: simplecodegenerator.cpp:74
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:40:27 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.