umbrello API Documentation

PetalNode Class Reference

Rose petal node - parse tree for model import. More...

#include <petalnode.h>

List of all members.

Public Types

typedef QPair< QString, StringOrNodeNameValue
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

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

PetalNode::StringOrNode PetalNode::findAttribute const QString &  name  )  const
 

Find an attribute by name.

Returns:
The value of the attribute. StringOrNode::isEmpty() returns true if the name could not be found.

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:
KDE Logo
This file is part of the documentation for umbrello Version 3.1.0.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Jun 26 08:08:05 2007 by doxygen 1.4.1 written by Dimitri van Heesch, © 1997-2003