bpmn++
A BPMN parser library, written in C++
tDefinitions.h
Go to the documentation of this file.
1 #ifndef XML_bpmn_tDefinitions_H
2 #define XML_bpmn_tDefinitions_H
3 #include <memory>
4 #include <optional>
5 #include <vector>
6 
7 #include "../XMLObject.h"
8 #include "tImport.h"
9 #include "tExtension.h"
10 #include "tRootElement.h"
11 #include "tProcess.h"
12 #include "BPMNDiagram.h"
13 #include "tRelationship.h"
14 
15 /**
16  * @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.
17  */
18 namespace XML::bpmn {
19 
20 class tImport;
21 class tExtension;
22 class tRootElement;
23 class tProcess;
24 class BPMNDiagram;
25 class tRelationship;
26 
27 /**
28  * Overview:
29  * - Element name: tDefinitions
30  * - XML-Schema: xsd/BPMN20.xsd
31  * - XML-Namespace: http://www.omg.org/spec/BPMN/20100524/MODEL
32  *
33  * Members:
34  * - import : tImport [0..*]
35  * - extension : tExtension [0..*]
36  * - rootElement : tRootElement [0..*]
37  * - process : tProcess [0..*]
38  * - bpmndi_BPMNDiagram : BPMNDiagram [0..*]
39  * - relationship : tRelationship [0..*]
40  * - id : ID [0..1]
41  * - name : string [0..1]
42  * - targetNamespace : anyURI [1..1]
43  * - expressionLanguage : anyURI [0..1]
44  * - typeLanguage : anyURI [0..1]
45  * - exporter : string [0..1]
46  * - exporterVersion : string [0..1]
47  *
48  * Automatically generated by schematic++ v0.4.0 (https://github.com/rajgoel/schematicpp)
49  */
50 class tDefinitions : public XMLObject {
51  template<typename T> friend XMLObject* ::XML::createInstance(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element);
52 private:
53  static bool registerClass() {
54  XMLObject::factory["http://www.omg.org/spec/BPMN/20100524/MODEL:tDefinitions"] = &createInstance<tDefinitions>; // register function in factory
55  return true;
56  };
57  inline static bool registered = registerClass();
58 protected:
59  tDefinitions(const Namespace& xmlns, const ClassName& className, const xercesc::DOMElement* element, const Attributes& defaultAttributes);
60 
61 public:
62  /// default attributes to be used if they are not explicitly provided
63  inline static const Attributes defaults = {
64  { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "expressionLanguage", .value = Value(std::string("http://www.w3.org/1999/XPath"))},
65  { .xmlns = "http://www.omg.org/spec/BPMN/20100524/MODEL", .prefix = "" , .name = "typeLanguage", .value = Value(std::string("http://www.w3.org/2001/XMLSchema"))}
66  };
67 
68  std::vector< std::reference_wrapper<tImport> > import;
69  std::vector< std::reference_wrapper<tExtension> > extension;
70  std::vector< std::reference_wrapper<tRootElement> > rootElement;
71  std::vector< std::reference_wrapper<tProcess> > process;
72  std::vector< std::reference_wrapper<BPMNDiagram> > bpmndi_BPMNDiagram;
73  std::vector< std::reference_wrapper<tRelationship> > relationship;
74  std::optional< std::reference_wrapper<Attribute> > id; ///< Attribute value can be expected to be of type 'std::string'
75  std::optional< std::reference_wrapper<Attribute> > name; ///< Attribute value can be expected to be of type 'std::string'
76  Attribute& targetNamespace; ///< Attribute value can be expected to be of type 'std::string'
77  std::optional< std::reference_wrapper<Attribute> > expressionLanguage; ///< Attribute value can be expected to be of type 'std::string'
78  std::optional< std::reference_wrapper<Attribute> > typeLanguage; ///< Attribute value can be expected to be of type 'std::string'
79  std::optional< std::reference_wrapper<Attribute> > exporter; ///< Attribute value can be expected to be of type 'std::string'
80  std::optional< std::reference_wrapper<Attribute> > exporterVersion; ///< Attribute value can be expected to be of type 'std::string'
81 };
82 
83 } // namespace XML::bpmn
84 
85 #endif // XML_bpmn_tDefinitions_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::optional< std::reference_wrapper< Attribute > > exporter
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:79
std::vector< std::reference_wrapper< tExtension > > extension
Definition: tDefinitions.h:69
std::optional< std::reference_wrapper< Attribute > > name
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:75
std::vector< std::reference_wrapper< tRootElement > > rootElement
Definition: tDefinitions.h:70
std::vector< std::reference_wrapper< tProcess > > process
Definition: tDefinitions.h:71
std::vector< std::reference_wrapper< tRelationship > > relationship
Definition: tDefinitions.h:73
static const Attributes defaults
default attributes to be used if they are not explicitly provided
Definition: tDefinitions.h:63
std::optional< std::reference_wrapper< Attribute > > id
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:74
Attribute & targetNamespace
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:76
tDefinitions(const Namespace &xmlns, const ClassName &className, const xercesc::DOMElement *element, const Attributes &defaultAttributes)
Definition: tDefinitions.cpp:6
std::vector< std::reference_wrapper< BPMNDiagram > > bpmndi_BPMNDiagram
Definition: tDefinitions.h:72
std::optional< std::reference_wrapper< Attribute > > exporterVersion
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:80
std::optional< std::reference_wrapper< Attribute > > expressionLanguage
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:77
std::optional< std::reference_wrapper< Attribute > > typeLanguage
Attribute value can be expected to be of type 'std::string'.
Definition: tDefinitions.h:78
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 an attribute of an XML-node.
Definition: XMLObject.h:73
A struct representing the value of an XML-node attribute.
Definition: XMLObject.h:48
std::string value
Definition: XMLObject.h:49