/// <summary> /// Composes a set of <c>docScriptInstruction</c> into supplied <c>docScript</c> instance or created blank new instance with <c>name</c> of this metaContainer /// </summary> /// <param name="script">The script.</param> /// <returns></returns> public override docScript compose(docScript script = null) { if (!title.isNullOrEmpty()) { script.AppendHorizontalLine(); script.open("import", name, ""); script.AppendComment(description); script.AppendHorizontalLine(); } if (!includeFilePath.isNullOrEmpty()) { script.AppendFromFile(includeFilePath); } if (includeTextBuilder != null) { script.AppendDirect(includeTextBuilder.ContentToString()); } if (!title.isNullOrEmpty()) { script.close(); } return(script); }
public override docScript compose(docScript script = null) { script.open("diagram", diagram.name, diagram.description); if (diagram != null) { script.AppendDiagram(diagram, engine); } script.close(); return(script); }