• Skip to content
  • Skip to link menu
KDE 4.5 API Reference
  • KDE API Reference
  • kdesdk
  • Sitemap
  • Contact Us
 

umbrello/umbrello

PetalNode Class Reference

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

#include <petalnode.h>

List of all members.

Classes

struct  StringOrNode
 Use `string' if it is not empty. More...

Public Types

typedef QPair< QString,
StringOrNode > 
NameValue
typedef QList< NameValue > NameValueList
enum  NodeType { nt_object, nt_list }

Public Member Functions

 PetalNode (NodeType nt)
virtual ~PetalNode ()
NameValueList attributes () const
StringOrNode findAttribute (const QString &name) const
QStringList initialArgs () const
QString name () const
void setAttributes (NameValueList vl)
void setInitialArgs (const QStringList &args)
NodeType type () const

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 39 of file petalnode.h.


Member Typedef Documentation

typedef QPair<QString, StringOrNode> PetalNode::NameValue

Definition at line 55 of file petalnode.h.

typedef QList<NameValue> PetalNode::NameValueList

Definition at line 56 of file petalnode.h.


Member Enumeration Documentation

enum PetalNode::NodeType
Enumerator:
nt_object 
nt_list 

Definition at line 58 of file petalnode.h.


Constructor & Destructor Documentation

PetalNode::PetalNode ( NodeType  nt  ) 

Definition at line 14 of file petalnode.cpp.

PetalNode::~PetalNode (  )  [virtual]

Definition at line 19 of file petalnode.cpp.


Member Function Documentation

PetalNode::NameValueList PetalNode::attributes (  )  const

Definition at line 40 of file petalnode.cpp.

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 67 of file petalnode.cpp.

QStringList PetalNode::initialArgs (  )  const

Definition at line 28 of file petalnode.cpp.

QString PetalNode::name (  )  const

Definition at line 33 of file petalnode.cpp.

void PetalNode::setAttributes ( PetalNode::NameValueList  vl  ) 

Definition at line 57 of file petalnode.cpp.

void PetalNode::setInitialArgs ( const QStringList &  args  ) 

Definition at line 52 of file petalnode.cpp.

PetalNode::NodeType PetalNode::type (  )  const

Definition at line 23 of file petalnode.cpp.


The documentation for this class was generated from the following files:
  • petalnode.h
  • petalnode.cpp

umbrello/umbrello

Skip menu "umbrello/umbrello"
  • Main Page
  • Modules
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

kdesdk

Skip menu "kdesdk"
  • kapptemplate
  • kate
  •     kate
  • kbugbuster
  • kcachegrind
  • kompare
  • lokalize
  • umbrello
  •   umbrello
Generated for kdesdk by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal