コード例 #1
0
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute("name", this.Name);
     actNode.appendChildAttribute("value", this.Value);
     actNode.appendChildAttribute("literal", this.Literal);
     return(actNode);
 }
コード例 #2
0
        public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
        {
            actNode.Name = this.Name;

            MocaNode adornmentsNode           = actNode.appendChildNode(allowedAdornmentsNodeName);
            MocaNode modelgenAdornmentsNode   = actNode.appendChildNode(modelgenAdornmentsNodeName);
            MocaNode signatureNode            = actNode.appendChildNode(signatureNodeName);
            MocaNode signatureInformationNode = actNode.appendChildNode(signatureInformationNodeName);

            addListEntriesToNode(adornments, adornmentsNode);
            addListEntriesToNode(modelgenAdornments, modelgenAdornmentsNode);
            addListEntriesToNode(Signature, signatureNode);
            addListEntriesToNode(SignatureInformation, signatureInformationNode);
            actNode.appendChildAttribute(informationTextNodeName, this.informationText);
            actNode.appendChildAttribute(userDefinedNodeName, this.UserDefined.ToString().ToLower());
            actNode.appendChildAttribute(indexNodeName, this.Index.ToString());
            return(actNode);
        }
コード例 #3
0
        public override Serialization.MocaTree.MocaNode  serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
        {
            actNode.appendChildAttribute("constraintName", constraintName);

            MocaNode exprNode = actNode.appendChildNode("expressions");

            foreach (Expression expr in typedInExpressions)
            {
                MocaNode expressionNode = exprNode.appendChildNode("Expression");
                expr.serializeToMocaTree(expressionNode);
            }

            return(actNode);
        }
コード例 #4
0
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute(Main.GuidStringName, this.Guid);
     return(actNode);
 }
コード例 #5
0
ファイル: Domain.cs プロジェクト: SvenPeldszus/emoflon-tool
 public override Serialization.MocaTree.MocaNode serializeToMocaTree(Serialization.MocaTree.MocaNode actNode)
 {
     actNode.appendChildAttribute("domainType", this.DomainType.ToString().ToLower());
     actNode.appendChildAttribute("metamodelGuid", this.MetamodelGuid);
     return(actNode);
 }