bpmn++
A BPMN parser library, written in C++
tCollaboration.h
Go to the documentation of this file.
1 #ifndef XML_bpmn_tCollaboration_H
2 #define XML_bpmn_tCollaboration_H
3 #include <memory>
4 #include <optional>
5 #include <vector>
6 
7 #include "../XMLObject.h"
8 #include "tRootElement.h"
9 #include "tParticipant.h"
10 #include "tMessageFlow.h"
11 #include "tArtifact.h"
12 #include "tConversationNode.h"
16 #include "tCorrelationKey.h"
17 #include "tConversationLink.h"
18 
19 /**
20  * @brief The `XML::bpmn` namespace contains classes from the following XML-schema(s): @ref xsd/DC.xsd, @ref xsd/DI.xsd, @ref xsd/BPMNDI.xsd, @ref xsd/Semantic.xsd, @ref xsd/BPMN20.xsd.
21  */
22 namespace XML::bpmn {
23 
24 class tParticipant;
25 class tMessageFlow;
26 class tArtifact;
27 class tConversationNode;
28 class tConversationAssociation;
29 class tParticipantAssociation;
30 class tMessageFlowAssociation;
31 class tCorrelationKey;
32 class tConversationLink;
33 
34 /**
35  * Overview:
36  * - Element name: tCollaboration
37  * - XML-Schema: xsd/Semantic.xsd
38  * - XML-Namespace: http://www.omg.org/spec/BPMN/20100524/MODEL
39  *
40  * Members:
41  * - participant : tParticipant [0..*]
42  * - messageFlow : tMessageFlow [0..*]
43  * - artifact : tArtifact [0..*]
44  * - conversationNode : tConversationNode [0..*]
45  * - conversationAssociation : tConversationAssociation [0..*]
46  * - participantAssociation : tParticipantAssociation [0..*]
47  * - messageFlowAssociation : tMessageFlowAssociation [0..*]
48  * - correlationKey : tCorrelationKey [0..*]
49  * - choreographyRef : QName [0..*]
50  * - conversationLink : tConversationLink [0..*]
51  * - name : string [0..1]
52  * - isClosed : boolean [0..1]
53  * - documentation : tDocumentation [0..*] (from: tBaseElement)
54  * - extensionElements : tExtensionElements [0..1] (from: tBaseElement)
55  * - id : ID [0..1] (from: tBaseElement)
56  *
57  * Automatically generated by schematic++ v0.4.0 (https://github.com/rajgoel/schematicpp)
58  */
59 class tCollaboration : public tRootElement {
60  template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
61 private:
62  static bool registerClass() {
63  XMLObject::factory["http://www.omg.org/spec/BPMN/20100524/MODEL:tCollaboration"] = &createInstance<tCollaboration>; // register function in factory
64  return true;
65  };
66  inline static bool registered = registerClass();
67 protected:
68  tCollaboration(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
69 
70 public:
71  /// default attributes to be used if they are not explicitly provided
72  inline static const Attributes defaults = {
73  { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "isClosed", .value = Value(std::string("false"))}
74  };
75 
76  std::vector< std::reference_wrapper<tParticipant> > participant;
77  std::vector< std::reference_wrapper<tMessageFlow> > messageFlow;
78  std::vector< std::reference_wrapper<tArtifact> > artifact;
79  std::vector< std::reference_wrapper<tConversationNode> > conversationNode;
80  std::vector< std::reference_wrapper<tConversationAssociation> > conversationAssociation;
81  std::vector< std::reference_wrapper<tParticipantAssociation> > participantAssociation;
82  std::vector< std::reference_wrapper<tMessageFlowAssociation> > messageFlowAssociation;
83  std::vector< std::reference_wrapper<tCorrelationKey> > correlationKey;
84  std::vector< std::reference_wrapper<XMLObject> > choreographyRef;
85  std::vector< std::reference_wrapper<tConversationLink> > conversationLink;
86  std::optional< std::reference_wrapper<Attribute> > name; ///< Attribute value can be expected to be of type 'std::string'
87  std::optional< std::reference_wrapper<Attribute> > isClosed; ///< Attribute value can be expected to be of type 'bool'
88 };
89 
90 } // namespace XML::bpmn
91 
92 #endif // XML_bpmn_tCollaboration_H
A class representing a node in an XML-tree.
Definition: XMLObject.h:115
const ClassName className
Definition: XMLObject.h:243
static Factory factory
Definition: XMLObject.h:155
Namespace xmlns
Definition: XMLObject.h:242
std::vector< std::reference_wrapper< tParticipantAssociation > > participantAssociation
std::vector< std::reference_wrapper< tConversationLink > > conversationLink
std::vector< std::reference_wrapper< XMLObject > > choreographyRef
static const Attributes defaults
default attributes to be used if they are not explicitly provided
std::vector< std::reference_wrapper< tArtifact > > artifact
std::vector< std::reference_wrapper< tParticipant > > participant
std::optional< std::reference_wrapper< Attribute > > name
Attribute value can be expected to be of type 'std::string'.
std::vector< std::reference_wrapper< tConversationAssociation > > conversationAssociation
std::vector< std::reference_wrapper< tMessageFlowAssociation > > messageFlowAssociation
std::vector< std::reference_wrapper< tMessageFlow > > messageFlow
std::vector< std::reference_wrapper< tCorrelationKey > > correlationKey
std::optional< std::reference_wrapper< Attribute > > isClosed
Attribute value can be expected to be of type 'bool'.
tCollaboration(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
std::vector< std::reference_wrapper< tConversationNode > > conversationNode
The XML::bpmn namespace contains classes from the following XML-schema(s): xsd/DC....
std::string Namespace
Definition: XMLObject.h:24
std::vector< Attribute > Attributes
Definition: XMLObject.h:80
std::string ClassName
Definition: XMLObject.h:19
XMLObject * createInstance(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element)
Template function used to store in factory.
Definition: XMLObject.h:84
A struct representing the value of an XML-node attribute.
Definition: XMLObject.h:48