PetalNode Class Reference
Rose petal node - parse tree for model import. More...
#include <petalnode.h>
Public Types | |
| typedef QPair< QString, StringOrNode > | NameValue |
| typedef QValueList< NameValue > | NameValueList |
| enum | NodeType { nt_object, nt_list } |
Public Member Functions | |
| PetalNode (NodeType nt) | |
| NodeType | type () const |
| QStringList | initialArgs () const |
| QString | name () const |
| NameValueList | attributes () const |
| void | setInitialArgs (const QStringList &args) |
| void | setAttributes (NameValueList vl) |
| StringOrNode | findAttribute (const QString &name) const |
| Find an attribute by name. | |
Classes | |
| struct | StringOrNode |
| Use `string' if it is not empty. More... | |
Detailed Description
Rose petal node - parse tree for model import.A Rose petal node can be of type: + object - initialArgs() contains the object type name and further initial arguments which depend on the exact object type
- subordinate attributes are contained in attributes() + list - initialArgs() contains the list type name
- list elements are contained in attributes() but the name of each NameValue is empty. + value - not represented as a node, instead the stripped down value is saved in the value string of the NameValue. Example: for the input (value Text "This is some text") the following is saved in the value string of the NameValue: "This is some text"
- Author:
- Oliver Kellogg Bugs and comments to uml-devel@lists.sf.net or http://bugs.kde.org
Definition at line 40 of file petalnode.h.
Member Function Documentation
|
|
Find an attribute by name.
Definition at line 54 of file petalnode.cpp. Referenced by Import_Rose::importView(), Import_Rose::petalTree2Uml(), and Import_Rose::umbrellify(). |
The documentation for this class was generated from the following files:
