diff --git a/.gitignore b/.gitignore index 98d1b16a..5d4fd802 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,13 @@ target/ # PDT-specific .buildpath +###### +## Git +###### + +!.keep +!.gitkeep + ######## ## Sonar ######## diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/META-INF/MANIFEST.MF b/docgenhtml/plugins/org.polarsys.capella.docgen/META-INF/MANIFEST.MF index 0a2a41a3..14723d8d 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/META-INF/MANIFEST.MF +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/META-INF/MANIFEST.MF @@ -37,6 +37,15 @@ Export-Package: org.polarsys.capella.docgen, org.polarsys.capella.docgen.index, org.polarsys.capella.docgen.index.items.builder, org.polarsys.capella.docgen.search, + org.polarsys.capella.docgen.sections.abstractfunction, + org.polarsys.capella.docgen.sections.capability, + org.polarsys.capella.docgen.sections.capellaelement, + org.polarsys.capella.docgen.sections.category, + org.polarsys.capella.docgen.sections.classes, + org.polarsys.capella.docgen.sections.display, + org.polarsys.capella.docgen.sections.region, + org.polarsys.capella.docgen.sections.scenario, + org.polarsys.capella.docgen.sections.template, org.polarsys.capella.docgen.sidebar, org.polarsys.capella.docgen.task, org.polarsys.capella.docgen.util, diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore b/docgenhtml/plugins/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore index cde271e1..cee5a346 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore @@ -206,10 +206,15 @@ + - + + + + @@ -299,6 +304,122 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - @@ -394,21 +502,6 @@ - - - - - - - - - - - @@ -524,31 +617,6 @@ - - - - - - - - - - - - - - - - - - @@ -606,36 +674,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/AbstractFunctionDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/AbstractFunctionDocGen.java index f2fdc4fd..d45e07a9 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/AbstractFunctionDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/AbstractFunctionDocGen.java @@ -29,58 +29,7 @@ public static synchronized AbstractFunctionDocGen create(String lineSeparator) { public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = ""; - protected final String TEXT_2 = NL + "

Involving Functional Chains

"; - protected final String TEXT_3 = NL + "

Involving Operational Processes

"; - protected final String TEXT_4 = NL; - protected final String TEXT_5 = NL + "

Allocating Component

" + NL; - protected final String TEXT_6 = NL + "

Incoming Functional Ports

"; - protected final String TEXT_7 = NL + "

Outgoing Functional Ports

"; - protected final String TEXT_8 = NL + "

Incoming Internal Functional Exchanges

" + NL + " " + NL - + " " + NL + " " + NL + "\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t"; - protected final String TEXT_9 = NL + "\t"; - protected final String TEXT_10 = NL + "
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
"; - protected final String TEXT_11 = NL + "

Outgoing Internal Functional Exchanges

" + NL + "" + NL - + " " + NL + "\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t"; - protected final String TEXT_12 = NL + "\t

Incoming Functional Exchanges

" + NL + "\t
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
" + NL + "\t" - + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" - + NL + "\t\t" + NL + "\t\t" + NL - + "\t"; - protected final String TEXT_13 = NL + "\t

Outgoing Functional Exchanges

" + NL + "\t
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
" + NL + "\t" - + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" - + NL + "\t\t" + NL + "\t\t" + NL - + "\t"; - protected final String TEXT_14 = NL + "

Incoming Internal Interactions

" + NL + " " + NL - + "
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
" + NL + "\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" - + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t"; - protected final String TEXT_15 = NL + "

Outgoing Internal Interactions

" + NL + "" + NL + "
InteractionInvolving Operational ProcessesSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
" + NL - + "\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t"; - protected final String TEXT_16 = NL + "\t

Incoming Interactions

" + NL + "\t
InteractionInvolving Operational ProcessesSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
" + NL + "\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t"; - protected final String TEXT_17 = NL + "\t

Outgoing Interactions

" + NL + "\t
InteractionSourceDescriptionAllocated Exchange Items
" + NL + "\t" + NL - + "\t\t" + NL + "\t\t" + NL + "\t\t" + NL - + "\t\t" + NL + "\t"; - protected final String TEXT_18 = NL + "

Modes and States

"; + protected final String TEXT_2 = NL; public AbstractFunctionDocGen() { //Here is the constructor @@ -117,8 +66,8 @@ public String generate(Object argument) throws Exception { ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); } - stringBuffer.append(TEXT_4); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); return stringBuffer.toString(); } @@ -137,6 +86,30 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String elementName = null; + + public void set_elementName(java.lang.String object) { + this.elementName = object; + } + + protected java.lang.String elementType = null; + + public void set_elementType(java.lang.String object) { + this.elementType = object; + } + + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { @@ -153,6 +126,10 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P throws Exception { element = parameter; + elementName = EscapeChars.forHTML(CapellaLabelProviderHelper.getText(element)); + elementType = EscapeChars.forHTML(element.eClass().getName()); + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); @@ -161,179 +138,298 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { super.method_content(new StringBuffer(), ctx); - String elementName = EscapeChars.forHTML(CapellaLabelProviderHelper.getText(element)); - String elementType = EscapeChars.forHTML(element.eClass().getName()); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); - - Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectName, - outputFolder, (AbstractFunction) element); - if (involvingFunctionalChains.size() > 0) { - if (!(element instanceof OperationalActivity)) { - - stringBuffer.append(TEXT_2); - - } else { - - stringBuffer.append(TEXT_3); - - } - - stringBuffer.append(TEXT_4); - stringBuffer.append(StringUtil.stringListToBulette(involvingFunctionalChains)); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_InvolvingFunctionalChains" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_qm2FgI40EeuxdbbVGtbmsw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection allocatingComponents = FunctionHelper.getAllocatingComponents(projectName, outputFolder, - (AbstractFunction) element); - if (allocatingComponents.size() > 0) { - - stringBuffer.append(TEXT_5); - stringBuffer.append(TEXT_4); - stringBuffer.append(StringUtil.stringListToBulette(allocatingComponents)); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_InvolvingOperationalProcesses" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_ptIdAI45EeuxdbbVGtbmsw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - EList incomingPorts = ((AbstractFunction) element).getInputs(); - if (incomingPorts.size() > 0) { - - stringBuffer.append(TEXT_6); - stringBuffer.append(TEXT_4); - stringBuffer.append(StringUtil.stringListToBulette(incomingPorts, projectName, outputFolder)); - stringBuffer.append(TEXT_4); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_AllocatingComponents" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_p_FU8KctEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - EList outgoingPorts = ((AbstractFunction) element).getOutputs(); - if (outgoingPorts.size() > 0) { - - stringBuffer.append(TEXT_7); - stringBuffer.append(TEXT_4); - stringBuffer.append(StringUtil.stringListToBulette(outgoingPorts, projectName, outputFolder)); - stringBuffer.append(TEXT_4); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingFunctionalPorts" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_R9PoYKc0EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - if (!(element instanceof OperationalActivity)) { - Collection incomingInternalFunctionalExchanges = CapellaFunctionServices - .getIncomingInternalFunctionalExchanges((AbstractFunction) element); - if (incomingInternalFunctionalExchanges.size() > 0) { - - stringBuffer.append(TEXT_8); - for (FunctionalExchange functionalExchange : incomingInternalFunctionalExchanges) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices - .externalFunctionalExchangeToTableLine(functionalExchange, projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - Collection outgoingInternalFunctionalExchanges = CapellaFunctionServices - .getOutgoingInternalFunctionalExchanges((AbstractFunction) element); - if (outgoingInternalFunctionalExchanges.size() > 0) { - - stringBuffer.append(TEXT_11); - for (FunctionalExchange functionalExchange : outgoingInternalFunctionalExchanges) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices - .externalFunctionalExchangeToTableLine(functionalExchange, projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - Collection incomingFunctionalExchanges = CapellaFunctionServices - .getIncomingFunctionalExchanges((AbstractFunction) element); - if (incomingFunctionalExchanges.size() > 0) { - - stringBuffer.append(TEXT_12); - for (FunctionalExchange ae : incomingFunctionalExchanges) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices.incomingFunctionalExchangeToTableLine(ae, projectName, - outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - - Collection outgoingFunctionalExchanges = CapellaFunctionServices - .getOutgoingFunctionalExchanges((AbstractFunction) element); - if (outgoingFunctionalExchanges.size() > 0) { - - stringBuffer.append(TEXT_13); - for (FunctionalExchange ae : outgoingFunctionalExchanges) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices.outgoingFunctionalExchangeToTableLine(ae, projectName, - outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - } else { - Collection incomingInternalInteractions = CapellaFunctionServices - .getIncomingInternalFunctionalExchanges((AbstractFunction) element); - if (incomingInternalInteractions.size() > 0) { - - stringBuffer.append(TEXT_14); - for (FunctionalExchange activityEdge : incomingInternalInteractions) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices.externalInteractionToTableLine(activityEdge, - projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - Collection outgoingInternalInteractions = CapellaFunctionServices - .getOutgoingInternalFunctionalExchanges((AbstractFunction) element); - if (outgoingInternalInteractions.size() > 0) { - - stringBuffer.append(TEXT_15); - for (FunctionalExchange activityEdge : outgoingInternalInteractions) { - stringBuffer.append(TEXT_9); - stringBuffer.append(CapellaFunctionServices.externalInteractionToTableLine(activityEdge, - projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); - - } - - Collection incomingInteractions = CapellaFunctionServices - .getIncomingFunctionalExchanges((AbstractFunction) element); - if (incomingInteractions.size() > 0) { + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingFunctionalPorts" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_UI3ggKc2EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_16); - for (FunctionalExchange ae : incomingInteractions) { - stringBuffer.append(TEXT_9); - stringBuffer.append( - CapellaFunctionServices.incomingInteractionToTableLine(ae, projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInternalFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_SjNGEKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInternalFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Lgl88KdTEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - Collection outgoingInteractions = CapellaFunctionServices - .getOutgoingFunctionalExchanges((AbstractFunction) element); - if (outgoingInteractions.size() > 0) { + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_xOS4YKdTEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_17); - for (FunctionalExchange ae : outgoingInteractions) { - stringBuffer.append(TEXT_9); - stringBuffer.append( - CapellaFunctionServices.outgoingInteractionToTableLine(ae, projectName, outputFolder)); - } - stringBuffer.append(TEXT_10); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_U4K64KdUEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInternalInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_7ABmQKdVEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection availableModeAndState = CapellaFunctionServices.getAvailableModeAndState(projectName, - outputFolder, (AbstractFunction) element); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInternalInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_cWDW0KdWEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - if (availableModeAndState.size() > 0) { + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_xJyEcKdWEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_18); - stringBuffer.append(TEXT_4); - stringBuffer.append(StringUtil.stringListToBulette(availableModeAndState)); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Ln8lUKdXEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("elementNameParameter", elementName); + callParameters.put("elementTypeParameter", elementType); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_5e5Q4Kc4EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } InternalPatternContext ictx = (InternalPatternContext) ctx; diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityDocGen.java index 89083543..e2406158 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityDocGen.java @@ -1,14 +1,10 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; -import org.eclipse.egf.common.helper.*; import java.util.*; -import org.eclipse.emf.ecore.*; import org.eclipse.egf.model.pattern.*; import org.eclipse.egf.pattern.execution.*; import org.eclipse.egf.pattern.query.*; -import org.polarsys.capella.docgen.util.StringUtil; -import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; import org.polarsys.capella.core.data.ctx.Capability; public class CapabilityDocGen extends org.polarsys.capella.docgen.content.packageDocGen { @@ -22,16 +18,8 @@ public static synchronized CapabilityDocGen create(String lineSeparator) { } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = NL + "

Exploiting Missions

"; + protected final String TEXT_1 = ""; protected final String TEXT_2 = NL; - protected final String TEXT_3 = NL + "

Involved Actors

"; - protected final String TEXT_4 = NL + "

Relationships with other Capabilities

"; - protected final String TEXT_5 = NL + "

Extended Capabilities

"; - protected final String TEXT_6 = NL + "

Included Capabilities

"; - protected final String TEXT_7 = NL + NL + "

Super

"; - protected final String TEXT_8 = NL + "

Related Functions

"; - protected final String TEXT_9 = NL + "

Modes and States

"; - protected final String TEXT_10 = NL + NL + NL; public CapabilityDocGen() { //Here is the constructor @@ -87,98 +75,133 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + public Map getParameters() { final Map parameters = new HashMap(); parameters.put("parameter", this.parameter); return parameters; } - protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - - super.method_content(new StringBuffer(), ctx); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); - - Collection exploitingMissions = CapellaCapabilityHelper.INSTANCE.getExploitingMissions(projectName, - outputFolder, (Capability) parameter); + protected void method_setCapellaContext(final StringBuffer stringBuffer, final PatternContext ctx) + throws Exception { - if (exploitingMissions.size() > 0) { + element = parameter; + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); - stringBuffer.append(TEXT_1); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(exploitingMissions)); - stringBuffer.append(TEXT_2); - - } - Collection actors = CapellaCapabilityHelper.INSTANCE.getInvolvedActors(projectName, outputFolder, - (Capability) parameter); - - if (actors.size() > 0) { - - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(actors)); - - } - - Collection extendedCapabilities = CapellaCapabilityHelper.INSTANCE.getExtendedCapabilities(projectName, - outputFolder, (Capability) parameter); - Collection includedCapabilities = CapellaCapabilityHelper.INSTANCE.getIncludedCapabilities(projectName, - outputFolder, (Capability) parameter); - Collection superCapabilities = CapellaCapabilityHelper.INSTANCE.getParentCapabilities(projectName, - outputFolder, (Capability) parameter); - if ((extendedCapabilities.size() > 0) || (includedCapabilities.size() > 0) || (superCapabilities.size() > 0)) { - - stringBuffer.append(TEXT_4); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); + } - } - if (extendedCapabilities.size() > 0) { + protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - stringBuffer.append(TEXT_5); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(extendedCapabilities)); + super.method_content(new StringBuffer(), ctx); + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_ExploitingMissions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WSHWEKdkEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - if (includedCapabilities.size() > 0) { - - stringBuffer.append(TEXT_6); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(includedCapabilities)); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_InvolvedActors" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_mkc_UKdoEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - if (superCapabilities.size() > 0) { - - stringBuffer.append(TEXT_7); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(superCapabilities)); - stringBuffer.append(TEXT_2); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_RelationshipsWithOtherCapabilities" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_DIZg8KdpEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectName, - outputFolder, (Capability) parameter); - - if (involvedFunctions.size() > 0) { - - stringBuffer.append(TEXT_8); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(involvedFunctions)); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_RelatedFunctions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_D-2LUKdqEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection availableModeAndState = CapellaCapabilityHelper.INSTANCE - .getAvailableModeAndState(projectName, outputFolder, (Capability) parameter); - - if (availableModeAndState.size() > 0) { - - stringBuffer.append(TEXT_9); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(availableModeAndState)); - + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_SeqD0KdqEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_10); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString()); } diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityRealizationDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityRealizationDocGen.java index 87f31e62..368e5f92 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityRealizationDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapabilityRealizationDocGen.java @@ -1,4 +1,4 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; import org.eclipse.egf.common.helper.*; @@ -22,9 +22,8 @@ public static synchronized CapabilityRealizationDocGen create(String lineSeparat } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = "

Involved Components

"; + protected final String TEXT_1 = ""; protected final String TEXT_2 = NL; - protected final String TEXT_3 = NL + "

Related Functions

"; public CapabilityRealizationDocGen() { //Here is the constructor @@ -80,37 +79,74 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + public Map getParameters() { final Map parameters = new HashMap(); parameters.put("parameter", this.parameter); return parameters; } - protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - - super.method_content(new StringBuffer(), ctx); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); - Collection involvedComponent = CapellaCapabilityHelper.INSTANCE.getInvolvedComponent(projectName, - outputFolder, (CapabilityRealization) parameter); - - if (involvedComponent.size() > 0) { + protected void method_setCapellaContext(final StringBuffer stringBuffer, final PatternContext ctx) + throws Exception { - stringBuffer.append(TEXT_1); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(involvedComponent)); + element = parameter; + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); - } + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); + } - Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectName, - outputFolder, (CapabilityRealization) parameter); + protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - if (involvedFunctions.size() > 0) { + super.method_content(new StringBuffer(), ctx); - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(involvedFunctions)); + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.CapabilityRealization_InvolvedComponents" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HPrKAKgGEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.CapabilityRealization_RelatedFunctions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_qAQNAKgGEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } InternalPatternContext ictx = (InternalPatternContext) ctx; diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapellaScenarioDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapellaScenarioDocGen.java index 4c3c0f3e..8af04de9 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapellaScenarioDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CapellaScenarioDocGen.java @@ -1,9 +1,7 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; -import org.eclipse.egf.common.helper.*; import java.util.*; -import org.eclipse.emf.ecore.*; import org.eclipse.egf.model.pattern.*; import org.eclipse.egf.pattern.execution.*; import org.eclipse.egf.pattern.query.*; @@ -23,20 +21,9 @@ public static synchronized CapellaScenarioDocGen create(String lineSeparator) { } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = "

Realized Elements

" + NL; + protected final String TEXT_1 = ""; protected final String TEXT_2 = NL; - protected final String TEXT_3 = NL + "

Realizing Elements

" + NL; - protected final String TEXT_4 = NL + NL + "

Sequence Messages

" + NL + "" + NL - + "
InteractionTargetDescriptionAllocated Exchange Items
" + NL + " " + NL + " " + NL - + " " + NL + " " + NL - + " " + NL - + " " - + NL + " " + NL + " " + NL + " " + NL; - protected final String TEXT_5 = NL + "\t\t" + NL + " " + NL + " " + NL + " "; - protected final String TEXT_8 = NL + " " + NL + "
Invoked ExchangeSource element of the ExchangeTarget element of the ExchangeDescription of the Sequence Message
(and not the one of the invoked exchange)
"; - protected final String TEXT_6 = ""; - protected final String TEXT_7 = "
"; - protected final String TEXT_9 = NL + ""; + protected final String TEXT_3 = NL + ""; public CapellaScenarioDocGen() { //Here is the constructor @@ -92,6 +79,18 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + protected org.polarsys.capella.core.data.interaction.Scenario parameter = null; public void set_parameter(org.polarsys.capella.core.data.interaction.Scenario object) { @@ -108,37 +107,47 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P throws Exception { element = parameter; + outputFolder = ctx.getValue("outputFolder").toString(); + projectName = ctx.getValue("projectName").toString(); + InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); } protected void method_endContent(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - // Realized Elements - - String outputFolder = ctx.getValue("outputFolder").toString(); - String projectName = ctx.getValue("projectName").toString(); - Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, - outputFolder); - if (allocations.size() > 0) { - stringBuffer.append(TEXT_1); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(allocations)); - stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_yfHS4KgKEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } + + stringBuffer.append(TEXT_1); stringBuffer.append(TEXT_2); - // Realizing Elements - - //String outputFolder = ctx.getValue("outputFolder").toString(); - //String projectName = ctx.getValue("projectName").toString(); - Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, - outputFolder); - if (allocations2.size() > 0) { - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(allocations2)); - stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_6IqBsKgLEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } + stringBuffer.append(TEXT_2); // owned diagrams stringBuffer.append(TEXT_2); @@ -158,43 +167,25 @@ protected void method_endContent(final StringBuffer stringBuffer, final PatternC } stringBuffer.append(TEXT_2); - // Trier les messages - List orderedMessagesList = ((Scenario) parameter).getOwnedMessages(); - stringBuffer.append(TEXT_2); - if (orderedMessagesList.size() > 0) { - stringBuffer.append(TEXT_4); - for (SequenceMessage sMessage : orderedMessagesList) { - - String source = ""; - String target = ""; - - if (sMessage.getSendingEnd() != null && sMessage.getSendingEnd().getCovered() != null - && sMessage.getSendingEnd().getCovered().getRepresentedInstance() != null) - source = sMessage.getSendingEnd().getCovered().getRepresentedInstance().getName(); - - if (sMessage.getReceivingEnd() != null && sMessage.getReceivingEnd().getCovered() != null - && sMessage.getReceivingEnd().getCovered().getRepresentedInstance() != null) - target = sMessage.getReceivingEnd().getCovered().getRepresentedInstance().getName(); - - String name = sMessage.getName(); - String description = sMessage.getDescription(); - description = StringUtil.transformAREFString(sMessage, description, projectName, outputFolder); - if (description == null || description.trim().length() == 0) - description = "No description"; - stringBuffer.append(TEXT_5); - stringBuffer.append(name); - stringBuffer.append(TEXT_6); - stringBuffer.append(source); - stringBuffer.append(TEXT_6); - stringBuffer.append(target); - stringBuffer.append(TEXT_6); - stringBuffer.append(description); - stringBuffer.append(TEXT_7); - } - stringBuffer.append(TEXT_8); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.scenario.Scenario_SequenceMessages" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_KEGRQKg5Eeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_9); + + stringBuffer.append(TEXT_3); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "endContent", stringBuffer.toString()); } diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CategoriesDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CategoriesDocGen.java index f3834fcf..25a4fd73 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CategoriesDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/CategoriesDocGen.java @@ -1,16 +1,10 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; -import org.polarsys.capella.docgen.util.CapellaCategoryServices; -import org.polarsys.capella.core.data.cs.PhysicalLink; import org.polarsys.capella.core.data.cs.PhysicalLinkCategory; -import org.polarsys.capella.core.data.fa.ComponentExchange; -import org.polarsys.capella.core.data.fa.FunctionalExchange; import org.polarsys.capella.core.data.fa.ExchangeCategory; import org.polarsys.capella.core.data.fa.ComponentExchangeCategory; -import org.eclipse.egf.common.helper.*; import java.util.*; -import org.eclipse.emf.ecore.*; import org.eclipse.egf.model.pattern.*; import org.eclipse.egf.pattern.execution.*; import org.eclipse.egf.pattern.query.*; @@ -26,21 +20,8 @@ public static synchronized CategoriesDocGen create(String lineSeparator) { } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = "\t\t

Involved Functional Exchanges

" + NL + "\t\t"; - protected final String TEXT_2 = NL + "\t\t" + NL + "\t\t\t" + NL + "\t\t\t\t" - + NL + "\t\t\t\t" + NL + "\t\t\t\t" + NL - + "\t\t\t\t" + NL + "\t\t\t" + NL + "\t\t"; - protected final String TEXT_3 = NL + "\t\t\t"; - protected final String TEXT_4 = NL + "\t\t
Functional ExchangeSource FunctionTarget FunctionDescription
" + NL + "\t\t"; - protected final String TEXT_5 = NL + "\t\t

Involved Component Exchanges

" + NL + "\t\t"; - protected final String TEXT_6 = NL + "\t\t" + NL + "\t\t\t" + NL + "\t\t\t\t" - + NL + "\t\t\t\t" + NL + "\t\t\t\t" + NL - + "\t\t\t\t" + NL + "\t\t\t" + NL + "\t\t"; - protected final String TEXT_7 = NL + "\t\t

Involved Physical Links

" + NL + "\t\t"; - protected final String TEXT_8 = NL + "\t\t
Component ExchangeSource ComponentTarget ComponentDescription
" + NL + "\t\t\t" + NL + "\t\t\t\t" + NL - + "\t\t\t\t" + NL + "\t\t\t\t" + NL - + "\t\t\t\t" + NL + "\t\t\t" + NL + "\t\t"; - protected final String TEXT_9 = NL; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; public CategoriesDocGen() { //Here is the constructor @@ -76,8 +57,8 @@ public String generate(Object argument) throws Exception { ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); } - stringBuffer.append(TEXT_9); - stringBuffer.append(TEXT_9); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); return stringBuffer.toString(); } @@ -96,6 +77,18 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + protected org.polarsys.capella.core.data.capellacore.NamedElement parameter = null; public void set_parameter(org.polarsys.capella.core.data.capellacore.NamedElement object) { @@ -112,6 +105,8 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P throws Exception { element = parameter; + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); @@ -120,88 +115,83 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { super.method_content(new StringBuffer(), ctx); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); // Exchange Categories if (element instanceof ExchangeCategory) { - ExchangeCategory category = (ExchangeCategory) element; - if (category.getExchanges().size() > 0) { - // Display Title - - stringBuffer.append(TEXT_1); - // Create table header - - stringBuffer.append(TEXT_2); - - // Create each line - for (FunctionalExchange fe : category.getExchanges()) { - - stringBuffer.append(TEXT_3); - stringBuffer.append(CapellaCategoryServices.edgeToTableLine(fe, projectName, outputFolder)); - stringBuffer.append(TEXT_3); - - } - // Create table footer + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.ExchangeCategory_InvolvedFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_g_mYIKhDEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); - } } // Component Exchange Categories if (element instanceof ComponentExchangeCategory) { - ComponentExchangeCategory category = (ComponentExchangeCategory) element; - if (category.getExchanges().size() > 0) { - // Display Title - - stringBuffer.append(TEXT_5); - // Create table header - - stringBuffer.append(TEXT_6); - - // Create each line - for (ComponentExchange ce : category.getExchanges()) { - - stringBuffer.append(TEXT_3); - stringBuffer.append(CapellaCategoryServices.edgeToTableLine(ce, projectName, outputFolder)); - stringBuffer.append(TEXT_3); - - } - // Create table footer + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.ComponentExchangeCategory_InvolvedComponentExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_6K7isKhEEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); - } } // Physical Link Categories if (element instanceof PhysicalLinkCategory) { - PhysicalLinkCategory category = (PhysicalLinkCategory) element; - if (category.getLinks().size() > 0) { - // Display Title - - stringBuffer.append(TEXT_7); - // Create table header - - stringBuffer.append(TEXT_8); - - // Create each line - for (PhysicalLink pl : category.getLinks()) { - - stringBuffer.append(TEXT_3); - stringBuffer.append(CapellaCategoryServices.edgeToTableLine(pl, projectName, outputFolder)); - stringBuffer.append(TEXT_3); - - } - // Create table footer + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.PhysicalLinkCategory_InvolvedPhysicalLinks" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_eeiesKhFEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); - } } InternalPatternContext ictx = (InternalPatternContext) ctx; diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/ClassDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/ClassDocGen.java index 1a79df65..acbe5cf8 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/ClassDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/ClassDocGen.java @@ -1,16 +1,11 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; -import org.eclipse.egf.common.helper.*; import java.util.*; -import org.eclipse.emf.ecore.*; import org.eclipse.egf.model.pattern.*; import org.eclipse.egf.pattern.execution.*; import org.eclipse.egf.pattern.query.*; -import java.util.Collection; -import org.polarsys.capella.docgen.util.CapellaClassServices; import org.polarsys.capella.docgen.util.CapellaServices; -import org.polarsys.capella.docgen.util.StringUtil; import org.polarsys.capella.core.data.capellacore.VisibilityKind; import org.polarsys.capella.core.data.information.Class; @@ -26,17 +21,7 @@ public static synchronized ClassDocGen create(String lineSeparator) { public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = ""; - protected final String TEXT_2 = NL + "
"; - protected final String TEXT_3 = NL; - protected final String TEXT_4 = NL + "
"; - protected final String TEXT_5 = NL + "
"; - protected final String TEXT_6 = NL + "
"; - protected final String TEXT_7 = NL + " "; - protected final String TEXT_8 = NL + "
"; - protected final String TEXT_9 = NL + "
"; - protected final String TEXT_10 = NL + "

Part Of

"; - protected final String TEXT_11 = NL + "

Referenced By

"; - protected final String TEXT_12 = NL + "

Parameter Of

"; + protected final String TEXT_2 = NL; public ClassDocGen() { //Here is the constructor @@ -72,8 +57,8 @@ public String generate(Object argument) throws Exception { ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); } - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); return stringBuffer.toString(); } @@ -92,6 +77,18 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + public Map getParameters() { final Map parameters = new HashMap(); parameters.put("parameter", this.parameter); @@ -101,165 +98,159 @@ public Map getParameters() { protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { super.method_content(new StringBuffer(), ctx); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); stringBuffer.append(TEXT_1); - if (CapellaClassServices.getClassFeatures(element).size() >= 1) { - stringBuffer.append(TEXT_2); - String features = "Features"; - stringBuffer.append(TEXT_3); - { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,features:property"%> - - InternalPatternContext ictx = (InternalPatternContext) ctx; - new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); - stringBuffer.setLength(0); - - final Map callParameters = new HashMap(); - callParameters.put("eObject", element); - callParameters.put("property", features); - CallHelper.executeWithParameterInjection( - "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA", - new ExecutionContext((InternalPatternContext) ctx), callParameters); - stringBuffer.setLength(0); - } - - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(CapellaClassServices.getClassFeatures(element))); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Features" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", element); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_q7iGkKnUEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - if (CapellaClassServices.getClassRealizeInformation(element).size() >= 1) { - stringBuffer.append(TEXT_5); - String realisation = "Realisation"; - stringBuffer.append(TEXT_3); - { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,realisation:property"%> - - InternalPatternContext ictx = (InternalPatternContext) ctx; - new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); - stringBuffer.setLength(0); - - final Map callParameters = new HashMap(); - callParameters.put("eObject", element); - callParameters.put("property", realisation); - CallHelper.executeWithParameterInjection( - "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA", - new ExecutionContext((InternalPatternContext) ctx), callParameters); - stringBuffer.setLength(0); - } - stringBuffer.append(TEXT_3); - stringBuffer - .append(StringUtil.stringListToBulette(CapellaClassServices.getClassRealizeInformation(element))); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Realisation" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", element); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_PQROgKnWEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - - Collection propertiesCollection = CapellaClassServices.getClassProperties(element, projectName, - outputFolder); - if (propertiesCollection.size() >= 1) { - stringBuffer.append(TEXT_6); - String properties = "Properties"; - stringBuffer.append(TEXT_3); - { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,properties:property"%> - - InternalPatternContext ictx = (InternalPatternContext) ctx; - new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); - stringBuffer.setLength(0); - - final Map callParameters = new HashMap(); - callParameters.put("eObject", element); - callParameters.put("property", properties); - CallHelper.executeWithParameterInjection( - "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA", - new ExecutionContext((InternalPatternContext) ctx), callParameters); - stringBuffer.setLength(0); - } - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(propertiesCollection)); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Properties" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", element); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Pir0MKnWEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_7); - if (CapellaClassServices.getClassOperation(element).size() > 0) { - stringBuffer.append(TEXT_8); - String operation = "Operations"; - stringBuffer.append(TEXT_3); - { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,operation:property"%> - - InternalPatternContext ictx = (InternalPatternContext) ctx; - new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); - stringBuffer.setLength(0); - - final Map callParameters = new HashMap(); - callParameters.put("eObject", element); - callParameters.put("property", operation); - CallHelper.executeWithParameterInjection( - "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA", - new ExecutionContext((InternalPatternContext) ctx), callParameters); - stringBuffer.setLength(0); - } - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(CapellaClassServices.getClassOperation(element))); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Operations" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", element); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_Prw3sKnWEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - - Collection dataValuesCollection = CapellaClassServices.getClassDataValues(element, projectName, - outputFolder); - if (dataValuesCollection.size() >= 1) { - stringBuffer.append(TEXT_9); - String dataValue = "Data Values"; - stringBuffer.append(TEXT_3); - { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,dataValue:property"%> - - InternalPatternContext ictx = (InternalPatternContext) ctx; - new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); - stringBuffer.setLength(0); - - final Map callParameters = new HashMap(); - callParameters.put("eObject", element); - callParameters.put("property", dataValue); - CallHelper.executeWithParameterInjection( - "platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#_cWGxMONUEd-euK0PeLuaMA", - new ExecutionContext((InternalPatternContext) ctx), callParameters); - stringBuffer.setLength(0); - } - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(dataValuesCollection)); - stringBuffer.append(TEXT_4); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_DataValues" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", element); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_P05lkKnWEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - Collection partofCollection = CapellaClassServices.getPartOf((Class) element, projectName, - outputFolder); - if (partofCollection.size() > 0) { - stringBuffer.append(TEXT_10); - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(partofCollection)); + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_PartOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zK6ccKnMEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection referencedByCollection = CapellaClassServices.getReferencedBy((Class) element, projectName, - outputFolder); - if (referencedByCollection.size() > 0) { - stringBuffer.append(TEXT_11); - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(referencedByCollection)); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ReferencedBy" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_UFoKAKnNEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - Collection parameterOfCollection = CapellaClassServices.getParameterOf((Class) element, projectName, - outputFolder); - if (parameterOfCollection.size() > 0) { - stringBuffer.append(TEXT_12); - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(parameterOfCollection)); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ParameterOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_UU0ckKnNEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } + InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "content", stringBuffer.toString()); } @@ -277,6 +268,17 @@ protected void method_setTitle(final StringBuffer stringBuffer, final PatternCon new Node.DataLeaf(ictx.getNode(), getClass(), "setTitle", stringBuffer.toString()); } + protected void method_setCapellaContext(final StringBuffer stringBuffer, final PatternContext ctx) + throws Exception { + + super.method_setCapellaContext(new StringBuffer(), ctx); + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); + } + public boolean preCondition(PatternContext ctx) throws Exception { return (this.parameter instanceof Class); } diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java index 433e0784..78dbb098 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/PartDocGen.java @@ -1,4 +1,4 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; import org.eclipse.egf.common.helper.*; @@ -121,7 +121,7 @@ protected void method_content(final StringBuffer stringBuffer, final PatternCont String elementType = "" + EscapeChars.forHTML(element.eClass().getName()) + ""; EObject type = ((Part) element).getType(); - String logo = ImageHelper.INSTANCE.getTypePng(element, projectName, outputFolder); + String logo = ImageHelper.getTypePng(element, projectName, outputFolder); String documentTitle = elementName; stringBuffer.append(TEXT_1); stringBuffer.append(logo); @@ -254,14 +254,14 @@ protected void method_content(final StringBuffer stringBuffer, final PatternCont } stringBuffer.append(TEXT_9); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:element"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:parameter"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", type); + callParameters.put("parameter", type); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_H6iekavLEeCas-LHcur3rg", new ExecutionContext((InternalPatternContext) ctx), callParameters); diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java index 124dd68d..3f47e152 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/content/RegionDocGen.java @@ -1,4 +1,4 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.content; import org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput; @@ -7,9 +7,7 @@ import org.eclipse.egf.model.pattern.*; import org.eclipse.egf.pattern.execution.*; import org.eclipse.egf.pattern.query.*; -import org.polarsys.capella.core.data.capellacommon.Region; import org.polarsys.capella.core.data.capellacommon.StateTransition; -import org.polarsys.capella.docgen.util.CapellaElementService; import org.polarsys.capella.docgen.util.StringUtil; import org.polarsys.capella.docgen.util.pattern.helper.RegionHelper; import org.polarsys.capella.common.data.behavior.AbstractEvent; @@ -26,19 +24,17 @@ public static synchronized RegionDocGen create(String lineSeparator) { } public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; - protected final String TEXT_1 = "

Modes and States

"; + protected final String TEXT_1 = ""; protected final String TEXT_2 = NL; - protected final String TEXT_3 = NL + "

Realized Elements

" + NL; - protected final String TEXT_4 = NL + "

Realizing Elements

" + NL; - protected final String TEXT_5 = NL + "

Owned Transitions

" + NL + "
Physical LinkSource ComponentTarget ComponentDescription
" + NL + protected final String TEXT_3 = NL + "

Owned Transitions

" + NL + "
" + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " " + NL + " "; - protected final String TEXT_6 = NL + "\t " + NL + " " + NL + " " + NL + " " + NL + "\t\t"; - protected final String TEXT_9 = NL + NL + ""; + protected final String TEXT_4 = NL + "\t " + NL + " " + NL + " " + NL + " " + NL + "\t\t"; + protected final String TEXT_7 = NL + NL + ""; public RegionDocGen() { //Here is the constructor @@ -94,6 +90,18 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + protected org.polarsys.capella.core.data.capellacommon.Region parameter = null; public void set_parameter(org.polarsys.capella.core.data.capellacommon.Region object) { @@ -109,17 +117,24 @@ public Map getParameters() { protected void method_content(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { super.method_content(new StringBuffer(), ctx); - String projectName = ctx.getValue("projectName").toString(); - String outputFolder = ctx.getValue("outputFolder").toString(); - Collection states = RegionHelper.getState(projectName, outputFolder, (Region) element); - - if (states.size() > 0) { + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.region.Region_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> - stringBuffer.append(TEXT_1); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(states)); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_stiNoKg9Eeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } InternalPatternContext ictx = (InternalPatternContext) ctx; @@ -130,6 +145,8 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P throws Exception { element = parameter; + projectName = ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "setCapellaContext", stringBuffer.toString()); @@ -137,31 +154,38 @@ protected void method_setCapellaContext(final StringBuffer stringBuffer, final P protected void method_endContent(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - // Realized Elements + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> - String outputFolder = ctx.getValue("outputFolder").toString(); - String projectName = ctx.getValue("projectName").toString(); - Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, - outputFolder); - if (allocations.size() > 0) { - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(allocations)); - stringBuffer.append(TEXT_2); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_yfHS4KgKEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } + stringBuffer.append(TEXT_2); - // Realizing Elements - - //String outputFolder = ctx.getValue("outputFolder").toString(); - //String projectName = ctx.getValue("projectName").toString(); - Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, - outputFolder); - if (allocations2.size() > 0) { - stringBuffer.append(TEXT_4); - stringBuffer.append(TEXT_2); - stringBuffer.append(StringUtil.stringListToBulette(allocations2)); - stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_6IqBsKgLEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } + stringBuffer.append(TEXT_2); // owned diagrams stringBuffer.append(TEXT_2); @@ -182,7 +206,7 @@ protected void method_endContent(final StringBuffer stringBuffer, final PatternC stringBuffer.append(TEXT_2); if (parameter.getOwnedTransitions() != null && parameter.getOwnedTransitions().size() > 0) { - stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_3); for (StateTransition transition : parameter.getOwnedTransitions()) { String triggerName = ""; EList triggers = transition.getTriggers(); @@ -235,22 +259,22 @@ protected void method_endContent(final StringBuffer stringBuffer, final PatternC trans_description = StringUtil.transformAREFString(transition, trans_description, projectName, outputFolder); } - stringBuffer.append(TEXT_6); + stringBuffer.append(TEXT_4); stringBuffer.append(trans_label); - stringBuffer.append(TEXT_7); + stringBuffer.append(TEXT_5); stringBuffer.append(trans_source); - stringBuffer.append(TEXT_7); + stringBuffer.append(TEXT_5); stringBuffer.append(trans_target); - stringBuffer.append(TEXT_7); + stringBuffer.append(TEXT_5); stringBuffer.append(triggerName); - stringBuffer.append(TEXT_7); + stringBuffer.append(TEXT_5); stringBuffer.append(trans_effect); - stringBuffer.append(TEXT_7); + stringBuffer.append(TEXT_5); stringBuffer.append(trans_description); - stringBuffer.append(TEXT_8); + stringBuffer.append(TEXT_6); } } - stringBuffer.append(TEXT_9); + stringBuffer.append(TEXT_7); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "endContent", stringBuffer.toString()); } diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java index 09b8db94..2d0871e8 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementDocGen.java @@ -193,14 +193,14 @@ protected void method_setFileNameService(final StringBuffer stringBuffer, final protected void method_endContent(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:element"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:parameter"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("parameter", element); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_H6iekavLEeCas-LHcur3rg", new ExecutionContext((InternalPatternContext) ctx), callParameters); diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java index 5078939d..f71d2539 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/foundations/CapellaElementEndContentDocGen.java @@ -1,4 +1,4 @@ -//Generated with EGF 1.6.1.201906060805 +//Generated with EGF 1.6.2.202001031546 package org.polarsys.capella.docgen.foundations; import org.eclipse.egf.common.helper.*; @@ -22,10 +22,7 @@ public static synchronized CapellaElementEndContentDocGen create(String lineSepa public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; protected final String TEXT_1 = ""; - protected final String TEXT_2 = NL + "

Realized Elements

" + NL; - protected final String TEXT_3 = NL; - protected final String TEXT_4 = NL + "

Realizing Elements

" + NL; - protected final String TEXT_5 = NL; + protected final String TEXT_2 = NL; public CapellaElementEndContentDocGen() { //Here is the constructor @@ -43,12 +40,12 @@ public String generate(Object argument) throws Exception { IQuery.ParameterDescription paramDesc = null; Node.Container currentNode = ctx.getNode(); - List elementList = null; + List parameterList = null; //this pattern can only be called by another (i.e. it's not an entry point in execution) - for (Object elementParameter : elementList) { + for (Object parameterParameter : parameterList) { - this.element = (org.polarsys.capella.core.data.capellacore.CapellaElement) elementParameter; + this.parameter = (org.polarsys.capella.core.data.capellacore.CapellaElement) parameterParameter; if (preCondition(ctx)) { ctx.setNode(new Node.Container(currentNode, getClass())); @@ -61,19 +58,21 @@ public String generate(Object argument) throws Exception { ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); } - stringBuffer.append(TEXT_3); - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); return stringBuffer.toString(); } public String orchestration(PatternContext ctx) throws Exception { InternalPatternContext ictx = (InternalPatternContext) ctx; + method_setContext(new StringBuffer(), ictx); + method_body(new StringBuffer(), ictx); if (ictx.useReporter()) { Map parameterValues = new HashMap(); - parameterValues.put("element", this.element); + parameterValues.put("parameter", this.parameter); String outputWithCallBack = OutputManager.computeLoopOutput(ictx); String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); @@ -81,58 +80,85 @@ public String orchestration(PatternContext ctx) throws Exception { return null; } - protected org.polarsys.capella.core.data.capellacore.CapellaElement element = null; + protected java.lang.String outputFolder = null; + + public void set_outputFolder(java.lang.String object) { + this.outputFolder = object; + } + + protected java.lang.String projectName = null; + + public void set_projectName(java.lang.String object) { + this.projectName = object; + } + + protected org.polarsys.capella.core.data.capellacore.CapellaElement parameter = null; - public void set_element(org.polarsys.capella.core.data.capellacore.CapellaElement object) { - this.element = object; + public void set_parameter(org.polarsys.capella.core.data.capellacore.CapellaElement object) { + this.parameter = object; } public Map getParameters() { final Map parameters = new HashMap(); - parameters.put("element", this.element); + parameters.put("parameter", this.parameter); return parameters; } + protected void method_setContext(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + outputFolder = ctx.getValue("outputFolder").toString(); + projectName = ctx.getValue("projectName").toString(); + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "setContext", stringBuffer.toString()); + } + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { - // Realized Elements - stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> - String outputFolder = ctx.getValue("outputFolder").toString(); - String projectName = ctx.getValue("projectName").toString(); - Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, - outputFolder); - if (allocations.size() > 0) { - stringBuffer.append(TEXT_2); - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(allocations)); - stringBuffer.append(TEXT_3); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_yfHS4KgKEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - // Realizing Elements - - //String outputFolder = ctx.getValue("outputFolder").toString(); - //String projectName = ctx.getValue("projectName").toString(); - Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, - outputFolder); - if (allocations2.size() > 0) { - stringBuffer.append(TEXT_4); - stringBuffer.append(TEXT_3); - stringBuffer.append(StringUtil.stringListToBulette(allocations2)); - stringBuffer.append(TEXT_3); + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameter", parameter); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_6IqBsKgLEeu7bOcPHGGhcQ", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); - if (element.getOwnedConstraints().isEmpty() == false) { - stringBuffer.append(TEXT_3); + + stringBuffer.append(TEXT_2); + if (parameter.getOwnedConstraints().isEmpty() == false) { + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.ConstraintsDocGen" args="element:parameter"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.ConstraintsDocGen" args="parameter:parameter"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("parameter", element); + callParameters.put("parameter", parameter); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_F9HPoVcEEeWXKstRBeKifA", new ExecutionContext((InternalPatternContext) ctx), callParameters); @@ -140,18 +166,18 @@ protected void method_body(final StringBuffer stringBuffer, final PatternContext } } - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); // Presented in diagrams generation - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PropertyValueGen" args="element:element, outputFolder:outputFolder, projectName:projectName"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PropertyValueGen" args="parameter:element, outputFolder:outputFolder, projectName:projectName"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("element", parameter); callParameters.put("outputFolder", outputFolder); callParameters.put("projectName", projectName); CallHelper.executeWithParameterInjection( @@ -160,72 +186,72 @@ protected void method_body(final StringBuffer stringBuffer, final PatternContext stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); // owned diagrams - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="element:element"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="parameter:element"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("element", parameter); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_PVePETXrEeCNvtb1bUM2fQ", new ExecutionContext((InternalPatternContext) ctx), callParameters); stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); // Presented in diagrams generation - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PresentedDiagrmsGeneration" args="element:element"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PresentedDiagrmsGeneration" args="parameter:element"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("element", parameter); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_wWwgkErlEeCvqtVx_IKrqA", new ExecutionContext((InternalPatternContext) ctx), callParameters); stringBuffer.setLength(0); } - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); // Interested diagram in this model element - stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.InterestedDiagrmsGeneration" args="element:element"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.InterestedDiagrmsGeneration" args="parameter:element"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("element", parameter); CallHelper.executeWithParameterInjection( "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_mGFhcAHoEemzNsJkc2kajg", new ExecutionContext((InternalPatternContext) ctx), callParameters); stringBuffer.setLength(0); } - stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_2); // Diagrams navigation tree - stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_2); { - //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramNavigationTree" args="element:element, outputFolder:outputFolder, projectName:projectName"%> + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramNavigationTree" args="parameter:element, outputFolder:outputFolder, projectName:projectName"%> InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); stringBuffer.setLength(0); final Map callParameters = new HashMap(); - callParameters.put("element", element); + callParameters.put("element", parameter); callParameters.put("outputFolder", outputFolder); callParameters.put("projectName", projectName); CallHelper.executeWithParameterInjection( @@ -234,7 +260,7 @@ protected void method_body(final StringBuffer stringBuffer, final PatternContext stringBuffer.setLength(0); } - stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_2); InternalPatternContext ictx = (InternalPatternContext) ctx; new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); } diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_AllocatingComponents.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_AllocatingComponents.java new file mode 100644 index 00000000..e0b5f820 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_AllocatingComponents.java @@ -0,0 +1,179 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper; + +public class AbstractFunction_AllocatingComponents { + protected static String nl; + + public static synchronized AbstractFunction_AllocatingComponents create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_AllocatingComponents result = new AbstractFunction_AllocatingComponents(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_AllocatingComponents() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection allocatingComponents = FunctionHelper.getAllocatingComponents(projectNameParameter, + outputFolderParameter, parameter); + if (allocatingComponents.size() > 0) { + String title = "Allocating Component"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocatingComponents:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", allocatingComponents); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalExchanges.java new file mode 100644 index 00000000..97ceb72d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalExchanges.java @@ -0,0 +1,211 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_IncomingFunctionalExchanges { + protected static String nl; + + public static synchronized AbstractFunction_IncomingFunctionalExchanges create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_IncomingFunctionalExchanges result = new AbstractFunction_IncomingFunctionalExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_IncomingFunctionalExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection incomingFunctionalExchanges = CapellaFunctionServices + .getIncomingFunctionalExchanges(parameter); + if (incomingFunctionalExchanges.size() > 0) { + String title = "Incoming Functional Exchanges"; + Integer level = 2; + String[] columns = { "Exchange", "Involving functional chains", "Allocating component Exchanges", + "Distant Port", "Source", "Description", "Allocated Exchange Items", "Realized Functional Exchange", + "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange functionalExchange : incomingFunctionalExchanges) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.incomingFunctionalExchangeToTableLine(functionalExchange, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return !(parameter instanceof OperationalActivity); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalPorts.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalPorts.java new file mode 100644 index 00000000..71a6fe21 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingFunctionalPorts.java @@ -0,0 +1,179 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.common.data.activity.InputPin; +import org.eclipse.emf.common.util.EList; + +public class AbstractFunction_IncomingFunctionalPorts { + protected static String nl; + + public static synchronized AbstractFunction_IncomingFunctionalPorts create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_IncomingFunctionalPorts result = new AbstractFunction_IncomingFunctionalPorts(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_IncomingFunctionalPorts() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + EList incomingPorts = parameter.getInputs(); + if (incomingPorts.size() > 0) { + String title = "Incoming Functional Ports"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromEList" args="incomingPorts:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", incomingPorts); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_iDNfAKc3EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInteractions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInteractions.java new file mode 100644 index 00000000..53de1b54 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInteractions.java @@ -0,0 +1,209 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_IncomingInteractions { + protected static String nl; + + public static synchronized AbstractFunction_IncomingInteractions create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_IncomingInteractions result = new AbstractFunction_IncomingInteractions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_IncomingInteractions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection incomingInteractions = CapellaFunctionServices + .getIncomingFunctionalExchanges(parameter); + if (incomingInteractions.size() > 0) { + String title = "Incoming Interactions"; + Integer level = 2; + String[] columns = { "Interaction", "Source", "Description", "Allocated Exchange Items" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange activityEdge : incomingInteractions) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.incomingInteractionToTableLine(activityEdge, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof OperationalActivity; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalFunctionalExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalFunctionalExchanges.java new file mode 100644 index 00000000..327eda84 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalFunctionalExchanges.java @@ -0,0 +1,211 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_IncomingInternalFunctionalExchanges { + protected static String nl; + + public static synchronized AbstractFunction_IncomingInternalFunctionalExchanges create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_IncomingInternalFunctionalExchanges result = new AbstractFunction_IncomingInternalFunctionalExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_IncomingInternalFunctionalExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection incomingInternalFunctionalExchanges = CapellaFunctionServices + .getIncomingInternalFunctionalExchanges(parameter); + if (incomingInternalFunctionalExchanges.size() > 0) { + String title = "Incoming Internal Functional Exchanges"; + Integer level = 2; + String[] columns = { "Exchange", "Involving functional chains", "Allocating component Exchanges", + "Distant Port", "Source", "Target", "Description", "Allocated Exchange Items", + "Realized Functional Exchange", "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange functionalExchange : incomingInternalFunctionalExchanges) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return !(parameter instanceof OperationalActivity); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalInteractions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalInteractions.java new file mode 100644 index 00000000..9bc402db --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_IncomingInternalInteractions.java @@ -0,0 +1,210 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_IncomingInternalInteractions { + protected static String nl; + + public static synchronized AbstractFunction_IncomingInternalInteractions create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_IncomingInternalInteractions result = new AbstractFunction_IncomingInternalInteractions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_IncomingInternalInteractions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection incomingInternalInteractions = CapellaFunctionServices + .getIncomingInternalFunctionalExchanges(parameter); + if (incomingInternalInteractions.size() > 0) { + String title = "Incoming Internal Interactions"; + Integer level = 2; + String[] columns = { "Interaction", "Involving Operational Processes", "Source", "Target", "Description", + "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange activityEdge : incomingInternalInteractions) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.externalInteractionToTableLine(activityEdge, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof OperationalActivity; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingFunctionalChains.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingFunctionalChains.java new file mode 100644 index 00000000..5032b24c --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingFunctionalChains.java @@ -0,0 +1,180 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper; +import org.polarsys.capella.core.data.oa.OperationalActivity; + +public class AbstractFunction_InvolvingFunctionalChains { + protected static String nl; + + public static synchronized AbstractFunction_InvolvingFunctionalChains create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_InvolvingFunctionalChains result = new AbstractFunction_InvolvingFunctionalChains(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_InvolvingFunctionalChains() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectNameParameter, + outputFolderParameter, parameter); + if (involvingFunctionalChains.size() > 0) { + String title = "Involving Functional Chains"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvingFunctionalChains:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", involvingFunctionalChains); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return !(parameter instanceof OperationalActivity); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingOperationalProcesses.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingOperationalProcesses.java new file mode 100644 index 00000000..8af86e1a --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_InvolvingOperationalProcesses.java @@ -0,0 +1,180 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper; +import org.polarsys.capella.core.data.oa.OperationalActivity; + +public class AbstractFunction_InvolvingOperationalProcesses { + protected static String nl; + + public static synchronized AbstractFunction_InvolvingOperationalProcesses create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_InvolvingOperationalProcesses result = new AbstractFunction_InvolvingOperationalProcesses(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_InvolvingOperationalProcesses() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectNameParameter, + outputFolderParameter, parameter); + if (involvingFunctionalChains.size() > 0) { + String title = "Involving Operational Processes"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvingFunctionalChains:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", involvingFunctionalChains); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof OperationalActivity; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_ModesAndStates.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_ModesAndStates.java new file mode 100644 index 00000000..fafd9c9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_ModesAndStates.java @@ -0,0 +1,180 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_ModesAndStates { + protected static String nl; + + public static synchronized AbstractFunction_ModesAndStates create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_ModesAndStates result = new AbstractFunction_ModesAndStates(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_ModesAndStates() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection availableModeAndState = CapellaFunctionServices + .getAvailableModeAndState(projectNameParameter, outputFolderParameter, parameter); + + if (availableModeAndState.size() > 0) { + String title = "Modes and States"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="availableModeAndState:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", availableModeAndState); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalExchanges.java new file mode 100644 index 00000000..2aed7f2c --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalExchanges.java @@ -0,0 +1,211 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_OutgoingFunctionalExchanges { + protected static String nl; + + public static synchronized AbstractFunction_OutgoingFunctionalExchanges create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_OutgoingFunctionalExchanges result = new AbstractFunction_OutgoingFunctionalExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_OutgoingFunctionalExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection outgoingFunctionalExchanges = CapellaFunctionServices + .getOutgoingFunctionalExchanges(parameter); + if (outgoingFunctionalExchanges.size() > 0) { + String title = "Outgoing Functional Exchanges"; + Integer level = 2; + String[] columns = { "Exchange", "Involving functional chains", "Allocating component Exchanges", + "Distant Port", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", + "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange functionalExchange : outgoingFunctionalExchanges) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.outgoingFunctionalExchangeToTableLine(functionalExchange, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return !(parameter instanceof OperationalActivity); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalPorts.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalPorts.java new file mode 100644 index 00000000..1ebabb5e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingFunctionalPorts.java @@ -0,0 +1,179 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.common.data.activity.OutputPin; +import org.eclipse.emf.common.util.EList; + +public class AbstractFunction_OutgoingFunctionalPorts { + protected static String nl; + + public static synchronized AbstractFunction_OutgoingFunctionalPorts create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_OutgoingFunctionalPorts result = new AbstractFunction_OutgoingFunctionalPorts(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_OutgoingFunctionalPorts() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + EList outgoingPorts = parameter.getOutputs(); + if (outgoingPorts.size() > 0) { + String title = "Outgoing Functional Ports"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromEList" args="outgoingPorts:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", outgoingPorts); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_iDNfAKc3EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInteractions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInteractions.java new file mode 100644 index 00000000..d83a3358 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInteractions.java @@ -0,0 +1,209 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_OutgoingInteractions { + protected static String nl; + + public static synchronized AbstractFunction_OutgoingInteractions create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_OutgoingInteractions result = new AbstractFunction_OutgoingInteractions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_OutgoingInteractions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection outgoingInteractions = CapellaFunctionServices + .getOutgoingFunctionalExchanges(parameter); + if (outgoingInteractions.size() > 0) { + String title = "Outgoing Interactions"; + Integer level = 2; + String[] columns = { "Interaction", "Target", "Description", "Allocated Exchange Items" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange activityEdge : outgoingInteractions) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.outgoingInteractionToTableLine(activityEdge, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof OperationalActivity; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalFunctionalExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalFunctionalExchanges.java new file mode 100644 index 00000000..f6da001e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalFunctionalExchanges.java @@ -0,0 +1,211 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_OutgoingInternalFunctionalExchanges { + protected static String nl; + + public static synchronized AbstractFunction_OutgoingInternalFunctionalExchanges create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_OutgoingInternalFunctionalExchanges result = new AbstractFunction_OutgoingInternalFunctionalExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_OutgoingInternalFunctionalExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection outgoingInternalFunctionalExchanges = CapellaFunctionServices + .getOutgoingInternalFunctionalExchanges(parameter); + if (outgoingInternalFunctionalExchanges.size() > 0) { + String title = "Outgoing Internal Functional Exchanges"; + Integer level = 2; + String[] columns = { "Exchange", "Involving functional chains", "Allocating component Exchanges", + "Distant Port", "Source", "Target", "Description", "Allocated Exchange Items", + "Realized Functional Exchange", "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange functionalExchange : outgoingInternalFunctionalExchanges) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return !(parameter instanceof OperationalActivity); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalInteractions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalInteractions.java new file mode 100644 index 00000000..e04f8133 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/abstractfunction/AbstractFunction_OutgoingInternalInteractions.java @@ -0,0 +1,210 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.abstractfunction; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.oa.OperationalActivity; +import org.polarsys.capella.core.data.fa.FunctionalExchange; +import org.polarsys.capella.docgen.util.CapellaFunctionServices; + +public class AbstractFunction_OutgoingInternalInteractions { + protected static String nl; + + public static synchronized AbstractFunction_OutgoingInternalInteractions create(String lineSeparator) { + nl = lineSeparator; + AbstractFunction_OutgoingInternalInteractions result = new AbstractFunction_OutgoingInternalInteractions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public AbstractFunction_OutgoingInternalInteractions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection outgoingInternalInteractions = CapellaFunctionServices + .getOutgoingInternalFunctionalExchanges(parameter); + if (outgoingInternalInteractions.size() > 0) { + String title = "Outgoing Internal Interactions"; + Integer level = 2; + String[] columns = { "Interaction", "Involving Operational Processes", "Source", "Target", "Description", + "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (FunctionalExchange activityEdge : outgoingInternalInteractions) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(CapellaFunctionServices.externalInteractionToTableLine(activityEdge, + projectNameParameter, outputFolderParameter)); + + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof OperationalActivity; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_InvolvedComponents.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_InvolvedComponents.java new file mode 100644 index 00000000..4d9739e7 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_InvolvedComponents.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.la.CapabilityRealization; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class CapabilityRealization_InvolvedComponents { + protected static String nl; + + public static synchronized CapabilityRealization_InvolvedComponents create(String lineSeparator) { + nl = lineSeparator; + CapabilityRealization_InvolvedComponents result = new CapabilityRealization_InvolvedComponents(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public CapabilityRealization_InvolvedComponents() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.la.CapabilityRealization) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.la.CapabilityRealization parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.la.CapabilityRealization object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection involvedComponent = CapellaCapabilityHelper.INSTANCE + .getInvolvedComponent(projectNameParameter, outputFolderParameter, parameter); + if (involvedComponent.size() > 0) { + String title = "Involved Components"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedComponent:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", involvedComponent); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof CapabilityRealization; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_RelatedFunctions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_RelatedFunctions.java new file mode 100644 index 00000000..9bb5f256 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/CapabilityRealization_RelatedFunctions.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.la.CapabilityRealization; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class CapabilityRealization_RelatedFunctions { + protected static String nl; + + public static synchronized CapabilityRealization_RelatedFunctions create(String lineSeparator) { + nl = lineSeparator; + CapabilityRealization_RelatedFunctions result = new CapabilityRealization_RelatedFunctions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public CapabilityRealization_RelatedFunctions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.la.CapabilityRealization) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.la.CapabilityRealization parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.la.CapabilityRealization object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE + .getInvolvedFunctions(projectNameParameter, outputFolderParameter, parameter); + if (involvedFunctions.size() > 0) { + String title = "Related Functions"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedFunctions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", involvedFunctions); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof CapabilityRealization; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ExploitingMissions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ExploitingMissions.java new file mode 100644 index 00000000..005eab1b --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ExploitingMissions.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class Capability_ExploitingMissions { + protected static String nl; + + public static synchronized Capability_ExploitingMissions create(String lineSeparator) { + nl = lineSeparator; + Capability_ExploitingMissions result = new Capability_ExploitingMissions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Capability_ExploitingMissions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.ctx.Capability) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.ctx.Capability parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.ctx.Capability object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection exploitingMissions = CapellaCapabilityHelper.INSTANCE + .getExploitingMissions(projectNameParameter, outputFolderParameter, parameter); + if (exploitingMissions.size() > 0) { + String title = "Exploiting Missions"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="exploitingMissions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", exploitingMissions); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_InvolvedActors.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_InvolvedActors.java new file mode 100644 index 00000000..dc2d2a9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_InvolvedActors.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class Capability_InvolvedActors { + protected static String nl; + + public static synchronized Capability_InvolvedActors create(String lineSeparator) { + nl = lineSeparator; + Capability_InvolvedActors result = new Capability_InvolvedActors(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Capability_InvolvedActors() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.ctx.Capability) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.ctx.Capability parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.ctx.Capability object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection actors = CapellaCapabilityHelper.INSTANCE.getInvolvedActors(projectNameParameter, + outputFolderParameter, parameter); + if (actors.size() > 0) { + String title = "Involved Actors"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="actors:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", actors); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ModesAndStates.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ModesAndStates.java new file mode 100644 index 00000000..8e382e38 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_ModesAndStates.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class Capability_ModesAndStates { + protected static String nl; + + public static synchronized Capability_ModesAndStates create(String lineSeparator) { + nl = lineSeparator; + Capability_ModesAndStates result = new Capability_ModesAndStates(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Capability_ModesAndStates() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.ctx.Capability) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.ctx.Capability parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.ctx.Capability object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection availableModeAndState = CapellaCapabilityHelper.INSTANCE + .getAvailableModeAndState(projectNameParameter, outputFolderParameter, parameter); + if (availableModeAndState.size() > 0) { + String title = "Modes and States"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="availableModeAndState:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", availableModeAndState); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelatedFunctions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelatedFunctions.java new file mode 100644 index 00000000..6a86f8a4 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelatedFunctions.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class Capability_RelatedFunctions { + protected static String nl; + + public static synchronized Capability_RelatedFunctions create(String lineSeparator) { + nl = lineSeparator; + Capability_RelatedFunctions result = new Capability_RelatedFunctions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Capability_RelatedFunctions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.ctx.Capability) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.ctx.Capability parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.ctx.Capability object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE + .getInvolvedFunctions(projectNameParameter, outputFolderParameter, parameter); + if (involvedFunctions.size() > 0) { + String title = "Related Functions"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedFunctions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", involvedFunctions); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelationshipsWithOtherCapabilities.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelationshipsWithOtherCapabilities.java new file mode 100644 index 00000000..14dbc949 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capability/Capability_RelationshipsWithOtherCapabilities.java @@ -0,0 +1,230 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capability; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper; + +public class Capability_RelationshipsWithOtherCapabilities { + protected static String nl; + + public static synchronized Capability_RelationshipsWithOtherCapabilities create(String lineSeparator) { + nl = lineSeparator; + Capability_RelationshipsWithOtherCapabilities result = new Capability_RelationshipsWithOtherCapabilities(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Capability_RelationshipsWithOtherCapabilities() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.ctx.Capability) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.ctx.Capability parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.ctx.Capability object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection extendedCapabilities = CapellaCapabilityHelper.INSTANCE + .getExtendedCapabilities(projectNameParameter, outputFolderParameter, parameter); + Collection includedCapabilities = CapellaCapabilityHelper.INSTANCE + .getIncludedCapabilities(projectNameParameter, outputFolderParameter, parameter); + Collection superCapabilities = CapellaCapabilityHelper.INSTANCE + .getParentCapabilities(projectNameParameter, outputFolderParameter, parameter); + if ((extendedCapabilities.size() > 0) || (includedCapabilities.size() > 0) || (superCapabilities.size() > 0)) { + String title = "Relationships with other Capabilities"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TitleSection" args="title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_24di8KawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + if (extendedCapabilities.size() > 0) { + title = "Extended Capabilities"; + level = 3; + + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="extendedCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", extendedCapabilities); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + if (includedCapabilities.size() > 0) { + title = "Included Capabilities"; + level = 3; + + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="includedCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", includedCapabilities); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + if (superCapabilities.size() > 0) { + title = "Super"; + level = 3; + + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="superCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", superCapabilities); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizedElements.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizedElements.java new file mode 100644 index 00000000..07bb6bea --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizedElements.java @@ -0,0 +1,130 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capellaelement; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.capellacore.CapellaElement; +import org.polarsys.capella.docgen.util.CapellaElementService; + +public class CapellaElement_RealizedElements { + protected static String nl; + + public static synchronized CapellaElement_RealizedElements create(String lineSeparator) { + nl = lineSeparator; + CapellaElement_RealizedElements result = new CapellaElement_RealizedElements(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public CapellaElement_RealizedElements() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + + this.parameter = (org.polarsys.capella.core.data.capellacore.CapellaElement) parameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.capellacore.CapellaElement parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.capellacore.CapellaElement object) { + this.parameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + String outputFolder = ctx.getValue("outputFolder").toString(); + String projectName = ctx.getValue("projectName").toString(); + Collection allocations = CapellaElementService.getOutGoingAllocation(parameter, projectName, + outputFolder); + if (allocations.size() > 0) { + String title = "Realized Elements"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocations:parameterListParameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", allocations); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof CapellaElement; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizingElements.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizingElements.java new file mode 100644 index 00000000..6bc9f6d6 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/capellaelement/CapellaElement_RealizingElements.java @@ -0,0 +1,130 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.capellaelement; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.capellacore.CapellaElement; +import org.polarsys.capella.docgen.util.CapellaElementService; + +public class CapellaElement_RealizingElements { + protected static String nl; + + public static synchronized CapellaElement_RealizingElements create(String lineSeparator) { + nl = lineSeparator; + CapellaElement_RealizingElements result = new CapellaElement_RealizingElements(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public CapellaElement_RealizingElements() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + + this.parameter = (org.polarsys.capella.core.data.capellacore.CapellaElement) parameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.capellacore.CapellaElement parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.capellacore.CapellaElement object) { + this.parameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + String outputFolder = ctx.getValue("outputFolder").toString(); + String projectName = ctx.getValue("projectName").toString(); + Collection allocations = CapellaElementService.getIncomingAllocation(parameter, projectName, + outputFolder); + if (allocations.size() > 0) { + String title = "Realizing Elements"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocations:parameterListParameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", allocations); + callParameters.put("projectNameParameter", projectName); + callParameters.put("outputFolderParameter", outputFolder); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof CapellaElement; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ComponentExchangeCategory_InvolvedComponentExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ComponentExchangeCategory_InvolvedComponentExchanges.java new file mode 100644 index 00000000..b7b9724d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ComponentExchangeCategory_InvolvedComponentExchanges.java @@ -0,0 +1,178 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.category; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.fa.ComponentExchangeCategory; +import org.polarsys.capella.docgen.util.CapellaCategoryServices; +import org.polarsys.capella.core.data.fa.ComponentExchange; + +public class ComponentExchangeCategory_InvolvedComponentExchanges { + protected static String nl; + + public static synchronized ComponentExchangeCategory_InvolvedComponentExchanges create(String lineSeparator) { + nl = lineSeparator; + ComponentExchangeCategory_InvolvedComponentExchanges result = new ComponentExchangeCategory_InvolvedComponentExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL + "\t\t"; + protected final String TEXT_3 = NL; + + public ComponentExchangeCategory_InvolvedComponentExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.ComponentExchangeCategory) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_3); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.ComponentExchangeCategory parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.ComponentExchangeCategory object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + if (parameter.getExchanges().size() > 0) { + String title = "Involved Component Exchanges"; + Integer level = 2; + String[] columns = { "Component Exchange", "Source Component", "Target Component", "Description" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + for (ComponentExchange ce : parameter.getExchanges()) { + + stringBuffer.append(TEXT_2); + stringBuffer.append( + CapellaCategoryServices.edgeToTableLine(ce, projectNameParameter, outputFolderParameter)); + stringBuffer.append(TEXT_2); + + } + + stringBuffer.append(TEXT_3); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + stringBuffer.append(TEXT_3); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof ComponentExchangeCategory; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ExchangeCategory_InvolvedFunctionalExchanges.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ExchangeCategory_InvolvedFunctionalExchanges.java new file mode 100644 index 00000000..41c4573a --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/ExchangeCategory_InvolvedFunctionalExchanges.java @@ -0,0 +1,178 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.category; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.fa.ExchangeCategory; +import org.polarsys.capella.docgen.util.CapellaCategoryServices; +import org.polarsys.capella.core.data.fa.FunctionalExchange; + +public class ExchangeCategory_InvolvedFunctionalExchanges { + protected static String nl; + + public static synchronized ExchangeCategory_InvolvedFunctionalExchanges create(String lineSeparator) { + nl = lineSeparator; + ExchangeCategory_InvolvedFunctionalExchanges result = new ExchangeCategory_InvolvedFunctionalExchanges(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL + "\t\t"; + protected final String TEXT_3 = NL; + + public ExchangeCategory_InvolvedFunctionalExchanges() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.ExchangeCategory) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_3); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.ExchangeCategory parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.ExchangeCategory object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + if (parameter.getExchanges().size() > 0) { + String title = "Involved Functional Exchanges"; + Integer level = 2; + String[] columns = { "Functional Exchange", "Source Function", "Target Function", "Description" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + for (FunctionalExchange fe : parameter.getExchanges()) { + + stringBuffer.append(TEXT_2); + stringBuffer.append( + CapellaCategoryServices.edgeToTableLine(fe, projectNameParameter, outputFolderParameter)); + stringBuffer.append(TEXT_2); + + } + + stringBuffer.append(TEXT_3); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + stringBuffer.append(TEXT_3); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof ExchangeCategory; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/PhysicalLinkCategory_InvolvedPhysicalLinks.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/PhysicalLinkCategory_InvolvedPhysicalLinks.java new file mode 100644 index 00000000..05313055 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/category/PhysicalLinkCategory_InvolvedPhysicalLinks.java @@ -0,0 +1,178 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.category; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.cs.PhysicalLinkCategory; +import org.polarsys.capella.docgen.util.CapellaCategoryServices; +import org.polarsys.capella.core.data.cs.PhysicalLink; + +public class PhysicalLinkCategory_InvolvedPhysicalLinks { + protected static String nl; + + public static synchronized PhysicalLinkCategory_InvolvedPhysicalLinks create(String lineSeparator) { + nl = lineSeparator; + PhysicalLinkCategory_InvolvedPhysicalLinks result = new PhysicalLinkCategory_InvolvedPhysicalLinks(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL + "\t\t"; + protected final String TEXT_3 = NL; + + public PhysicalLinkCategory_InvolvedPhysicalLinks() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.cs.PhysicalLinkCategory) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_3); + stringBuffer.append(TEXT_3); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.cs.PhysicalLinkCategory parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.cs.PhysicalLinkCategory object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + if (parameter.getLinks().size() > 0) { + String title = "Involved Physical Links"; + Integer level = 2; + String[] columns = { "Physical Link", "Source Component", "Target Component", "Description" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + for (PhysicalLink pl : parameter.getLinks()) { + + stringBuffer.append(TEXT_2); + stringBuffer.append( + CapellaCategoryServices.edgeToTableLine(pl, projectNameParameter, outputFolderParameter)); + stringBuffer.append(TEXT_2); + + } + + stringBuffer.append(TEXT_3); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + stringBuffer.append(TEXT_3); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof PhysicalLinkCategory; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_DataValues.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_DataValues.java new file mode 100644 index 00000000..e050c977 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_DataValues.java @@ -0,0 +1,160 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_DataValues { + protected static String nl; + + public static synchronized Class_DataValues create(String lineSeparator) { + nl = lineSeparator; + Class_DataValues result = new Class_DataValues(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_DataValues() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection dataValuesCollection = CapellaClassServices.getClassDataValues(parameter, + projectNameParameter, outputFolderParameter); + if (dataValuesCollection.size() > 0) { + String title = "Data Values"; + Integer level = 2; + String structuralFeatureName = title; + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="dataValuesCollection:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", dataValuesCollection); + callParameters.put("parameter", parameter); + callParameters.put("structuralFeatureNameParameter", structuralFeatureName); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zBOYIKnQEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Features.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Features.java new file mode 100644 index 00000000..192a2ade --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Features.java @@ -0,0 +1,159 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_Features { + protected static String nl; + + public static synchronized Class_Features create(String lineSeparator) { + nl = lineSeparator; + Class_Features result = new Class_Features(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_Features() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection features = CapellaClassServices.getClassFeatures(parameter); + if (features.size() > 0) { + String title = "Features"; + Integer level = 2; + String structuralFeatureName = title; + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="features:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", features); + callParameters.put("parameter", parameter); + callParameters.put("structuralFeatureNameParameter", structuralFeatureName); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zBOYIKnQEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Operations.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Operations.java new file mode 100644 index 00000000..69293295 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Operations.java @@ -0,0 +1,159 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_Operations { + protected static String nl; + + public static synchronized Class_Operations create(String lineSeparator) { + nl = lineSeparator; + Class_Operations result = new Class_Operations(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_Operations() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection operations = CapellaClassServices.getClassOperation(parameter); + if (operations.size() > 0) { + String title = "Operations"; + Integer level = 2; + String structuralFeatureName = title; + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="operations:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", operations); + callParameters.put("parameter", parameter); + callParameters.put("structuralFeatureNameParameter", structuralFeatureName); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zBOYIKnQEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ParameterOf.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ParameterOf.java new file mode 100644 index 00000000..e9a2b07f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ParameterOf.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_ParameterOf { + protected static String nl; + + public static synchronized Class_ParameterOf create(String lineSeparator) { + nl = lineSeparator; + Class_ParameterOf result = new Class_ParameterOf(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_ParameterOf() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection parameterOfCollection = CapellaClassServices.getParameterOf(parameter, projectNameParameter, + outputFolderParameter); + if (parameterOfCollection.size() > 0) { + String title = "Parameter Of"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="parameterOfCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", parameterOfCollection); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_PartOf.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_PartOf.java new file mode 100644 index 00000000..727b9efe --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_PartOf.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_PartOf { + protected static String nl; + + public static synchronized Class_PartOf create(String lineSeparator) { + nl = lineSeparator; + Class_PartOf result = new Class_PartOf(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_PartOf() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection partofCollection = CapellaClassServices.getPartOf(parameter, projectNameParameter, + outputFolderParameter); + if (partofCollection.size() > 0) { + String title = "Part Of"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="partofCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", partofCollection); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Properties.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Properties.java new file mode 100644 index 00000000..75e97a76 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Properties.java @@ -0,0 +1,160 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_Properties { + protected static String nl; + + public static synchronized Class_Properties create(String lineSeparator) { + nl = lineSeparator; + Class_Properties result = new Class_Properties(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_Properties() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection propertiesCollection = CapellaClassServices.getClassProperties(parameter, + projectNameParameter, outputFolderParameter); + if (propertiesCollection.size() > 0) { + String title = "Properties"; + Integer level = 2; + String structuralFeatureName = title; + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="propertiesCollection:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", propertiesCollection); + callParameters.put("parameter", parameter); + callParameters.put("structuralFeatureNameParameter", structuralFeatureName); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zBOYIKnQEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Realisation.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Realisation.java new file mode 100644 index 00000000..9babc6e6 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_Realisation.java @@ -0,0 +1,159 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_Realisation { + protected static String nl; + + public static synchronized Class_Realisation create(String lineSeparator) { + nl = lineSeparator; + Class_Realisation result = new Class_Realisation(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_Realisation() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection realisations = CapellaClassServices.getClassRealizeInformation(parameter); + if (realisations.size() > 0) { + String title = "Realisation"; + Integer level = 2; + String structuralFeatureName = title; + + stringBuffer.append(TEXT_1); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="realisations:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", realisations); + callParameters.put("parameter", parameter); + callParameters.put("structuralFeatureNameParameter", structuralFeatureName); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_zBOYIKnQEeux98xBZ-sHgw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ReferencedBy.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ReferencedBy.java new file mode 100644 index 00000000..cb35d008 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/classes/Class_ReferencedBy.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.classes; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.ctx.Capability; +import org.polarsys.capella.docgen.util.CapellaClassServices; + +public class Class_ReferencedBy { + protected static String nl; + + public static synchronized Class_ReferencedBy create(String lineSeparator) { + nl = lineSeparator; + Class_ReferencedBy result = new Class_ReferencedBy(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Class_ReferencedBy() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.information.Class) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.information.Class parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.information.Class object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection referencedByCollection = CapellaClassServices.getReferencedBy(parameter, + projectNameParameter, outputFolderParameter); + if (referencedByCollection.size() > 0) { + String title = "Referenced By"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="referencedByCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", referencedByCollection); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Capability; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromEList.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromEList.java new file mode 100644 index 00000000..ee5b3413 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromEList.java @@ -0,0 +1,140 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.StringUtil; + +public class BuletteListFromEList extends org.polarsys.capella.docgen.sections.display.TitleSection { + protected static String nl; + + public static synchronized BuletteListFromEList create(String lineSeparator) { + nl = lineSeparator; + BuletteListFromEList result = new BuletteListFromEList(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public BuletteListFromEList() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List parameterListParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionTitleParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionLevelParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object parameterListParameterParameter : parameterListParameterList) { + for (Object sectionTitleParameterParameter : sectionTitleParameterList) { + for (Object sectionLevelParameterParameter : sectionLevelParameterList) { + + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.parameterListParameter = (org.eclipse.emf.common.util.EList) parameterListParameterParameter; + this.sectionTitleParameter = (java.lang.String) sectionTitleParameterParameter; + this.sectionLevelParameter = (java.lang.Integer) sectionLevelParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + super.orchestration(new SuperOrchestrationContext(ictx)); + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("parameterListParameter", this.parameterListParameter); + parameterValues.put("sectionTitleParameter", this.sectionTitleParameter); + parameterValues.put("sectionLevelParameter", this.sectionLevelParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected org.eclipse.emf.common.util.EList parameterListParameter = null; + + public void set_parameterListParameter(org.eclipse.emf.common.util.EList object) { + this.parameterListParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("parameterListParameter", this.parameterListParameter); + parameters.put("sectionTitleParameter", this.sectionTitleParameter); + parameters.put("sectionLevelParameter", this.sectionLevelParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append( + StringUtil.stringListToBulette(parameterListParameter, projectNameParameter, outputFolderParameter)); + stringBuffer.append(TEXT_1); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollection.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollection.java new file mode 100644 index 00000000..d18b8860 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollection.java @@ -0,0 +1,139 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.StringUtil; + +public class BuletteListFromStringCollection extends org.polarsys.capella.docgen.sections.display.TitleSection { + protected static String nl; + + public static synchronized BuletteListFromStringCollection create(String lineSeparator) { + nl = lineSeparator; + BuletteListFromStringCollection result = new BuletteListFromStringCollection(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public BuletteListFromStringCollection() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List parameterListParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionTitleParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionLevelParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object parameterListParameterParameter : parameterListParameterList) { + for (Object sectionTitleParameterParameter : sectionTitleParameterList) { + for (Object sectionLevelParameterParameter : sectionLevelParameterList) { + + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.parameterListParameter = (java.util.Collection) parameterListParameterParameter; + this.sectionTitleParameter = (java.lang.String) sectionTitleParameterParameter; + this.sectionLevelParameter = (java.lang.Integer) sectionLevelParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + super.orchestration(new SuperOrchestrationContext(ictx)); + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("parameterListParameter", this.parameterListParameter); + parameterValues.put("sectionTitleParameter", this.sectionTitleParameter); + parameterValues.put("sectionLevelParameter", this.sectionLevelParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.util.Collection parameterListParameter = null; + + public void set_parameterListParameter(java.util.Collection object) { + this.parameterListParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("parameterListParameter", this.parameterListParameter); + parameters.put("sectionTitleParameter", this.sectionTitleParameter); + parameters.put("sectionLevelParameter", this.sectionLevelParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(StringUtil.stringListToBulette(parameterListParameter)); + stringBuffer.append(TEXT_1); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollectionWithDescriptionFromStructuralFeature.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollectionWithDescriptionFromStructuralFeature.java new file mode 100644 index 00000000..d8bf21f4 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/BuletteListFromStringCollectionWithDescriptionFromStructuralFeature.java @@ -0,0 +1,232 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.StringUtil; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.EStructuralFeature; +import org.polarsys.kitalpha.doc.gen.business.core.util.EscapeChars; + +public class BuletteListFromStringCollectionWithDescriptionFromStructuralFeature + extends org.polarsys.capella.docgen.sections.display.TitleSection { + protected static String nl; + + public static synchronized BuletteListFromStringCollectionWithDescriptionFromStructuralFeature create( + String lineSeparator) { + nl = lineSeparator; + BuletteListFromStringCollectionWithDescriptionFromStructuralFeature result = new BuletteListFromStringCollectionWithDescriptionFromStructuralFeature(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = "

"; + protected final String TEXT_2 = NL; + protected final String TEXT_3 = NL + "

"; + protected final String TEXT_4 = NL + "

"; + protected final String TEXT_5 = "

"; + protected final String TEXT_7 = "
"; + + public BuletteListFromStringCollectionWithDescriptionFromStructuralFeature() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List parameterListParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List structuralFeatureNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionTitleParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionLevelParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object parameterListParameterParameter : parameterListParameterList) { + for (Object parameterParameter : parameterList) { + for (Object structuralFeatureNameParameterParameter : structuralFeatureNameParameterList) { + for (Object sectionTitleParameterParameter : sectionTitleParameterList) { + for (Object sectionLevelParameterParameter : sectionLevelParameterList) { + + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.parameterListParameter = (java.util.Collection) parameterListParameterParameter; + this.parameter = (org.eclipse.emf.ecore.EObject) parameterParameter; + this.structuralFeatureNameParameter = (java.lang.String) structuralFeatureNameParameterParameter; + this.sectionTitleParameter = (java.lang.String) sectionTitleParameterParameter; + this.sectionLevelParameter = (java.lang.Integer) sectionLevelParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_openDiv(new StringBuffer(), ictx); + super.orchestration(new SuperOrchestrationContext(ictx)); + + method_descriptionContent(new StringBuffer(), ictx); + + method_body(new StringBuffer(), ictx); + + method_closeDiv(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("parameterListParameter", this.parameterListParameter); + parameterValues.put("parameter", this.parameter); + parameterValues.put("structuralFeatureNameParameter", this.structuralFeatureNameParameter); + parameterValues.put("sectionTitleParameter", this.sectionTitleParameter); + parameterValues.put("sectionLevelParameter", this.sectionLevelParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.util.Collection parameterListParameter = null; + + public void set_parameterListParameter(java.util.Collection object) { + this.parameterListParameter = object; + } + + protected org.eclipse.emf.ecore.EObject parameter = null; + + public void set_parameter(org.eclipse.emf.ecore.EObject object) { + this.parameter = object; + } + + protected java.lang.String structuralFeatureNameParameter = null; + + public void set_structuralFeatureNameParameter(java.lang.String object) { + this.structuralFeatureNameParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("parameterListParameter", this.parameterListParameter); + parameters.put("parameter", this.parameter); + parameters.put("structuralFeatureNameParameter", this.structuralFeatureNameParameter); + parameters.put("sectionTitleParameter", this.sectionTitleParameter); + parameters.put("sectionLevelParameter", this.sectionLevelParameter); + return parameters; + } + + protected void method_descriptionContent(final StringBuffer stringBuffer, final PatternContext ctx) + throws Exception { + + stringBuffer.append(TEXT_1); + + EClass eClass = parameter.eClass(); + EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(structuralFeatureNameParameter); + if (eStructuralFeature != null) { + Object value = parameter.eGet(eStructuralFeature); + String description = null; + if (value != null && value.toString().length() > 0) { + description = value.toString(); + } else { + description = "No " + structuralFeatureNameParameter; + } + stringBuffer.append(TEXT_2); + stringBuffer.append(EscapeChars.replaceSpecialCharacters(description)); + } + stringBuffer.append(TEXT_3); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "descriptionContent", stringBuffer.toString()); + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(StringUtil.stringListToBulette(parameterListParameter)); + stringBuffer.append(TEXT_2); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + protected void method_title(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + if (sectionTitleParameter == null) { + sectionTitleParameter = Character.toString(structuralFeatureNameParameter.charAt(0)).toUpperCase() + + structuralFeatureNameParameter.substring(1); + } + super.method_title(new StringBuffer(), ctx); + + stringBuffer.append(TEXT_4); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "title", stringBuffer.toString()); + } + + protected void method_openDiv(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(TEXT_5); + stringBuffer.append(sectionTitleParameter); + stringBuffer.append(TEXT_6); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "openDiv", stringBuffer.toString()); + } + + protected void method_closeDiv(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(TEXT_7); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "closeDiv", stringBuffer.toString()); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableFooter.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableFooter.java new file mode 100644 index 00000000..bfcb7298 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableFooter.java @@ -0,0 +1,78 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.StringUtil; + +public class TableFooter { + protected static String nl; + + public static synchronized TableFooter create(String lineSeparator) { + nl = lineSeparator; + TableFooter result = new TableFooter(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = "
TransitionSourceTargetTriggerEffectDescription
"; - protected final String TEXT_7 = ""; - protected final String TEXT_8 = "
"; + protected final String TEXT_5 = ""; + protected final String TEXT_6 = "
" + NL; + protected final String TEXT_2 = NL; + + public TableFooter() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + return null; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(TEXT_1); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableHeaderFromListColumn.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableHeaderFromListColumn.java new file mode 100644 index 00000000..1ed31e62 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TableHeaderFromListColumn.java @@ -0,0 +1,126 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.StringUtil; + +public class TableHeaderFromListColumn extends org.polarsys.capella.docgen.sections.display.TitleSection { + protected static String nl; + + public static synchronized TableHeaderFromListColumn create(String lineSeparator) { + nl = lineSeparator; + TableHeaderFromListColumn result = new TableHeaderFromListColumn(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = "" + NL + ""; + protected final String TEXT_2 = NL + ""; + protected final String TEXT_4 = NL + "" + NL; + protected final String TEXT_5 = NL; + + public TableHeaderFromListColumn() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List tableColumnsListParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionTitleParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionLevelParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object tableColumnsListParameterParameter : tableColumnsListParameterList) { + for (Object sectionTitleParameterParameter : sectionTitleParameterList) { + for (Object sectionLevelParameterParameter : sectionLevelParameterList) { + + this.tableColumnsListParameter = (java.util.Collection) tableColumnsListParameterParameter; + this.sectionTitleParameter = (java.lang.String) sectionTitleParameterParameter; + this.sectionLevelParameter = (java.lang.Integer) sectionLevelParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_5); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + super.orchestration(new SuperOrchestrationContext(ictx)); + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("tableColumnsListParameter", this.tableColumnsListParameter); + parameterValues.put("sectionTitleParameter", this.sectionTitleParameter); + parameterValues.put("sectionLevelParameter", this.sectionLevelParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected java.util.Collection tableColumnsListParameter = null; + + public void set_tableColumnsListParameter(java.util.Collection object) { + this.tableColumnsListParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("tableColumnsListParameter", this.tableColumnsListParameter); + parameters.put("sectionTitleParameter", this.sectionTitleParameter); + parameters.put("sectionLevelParameter", this.sectionLevelParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(TEXT_1); + + Collection columns = (Collection) tableColumnsListParameter; + for (String column : columns) { + + stringBuffer.append(TEXT_2); + stringBuffer.append(column); + stringBuffer.append(TEXT_3); + + } + + stringBuffer.append(TEXT_4); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TitleSection.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TitleSection.java new file mode 100644 index 00000000..3cf62659 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/display/TitleSection.java @@ -0,0 +1,121 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.display; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; + +public class TitleSection { + protected static String nl; + + public static synchronized TitleSection create(String lineSeparator) { + nl = lineSeparator; + TitleSection result = new TitleSection(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = " queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List sectionTitleParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List sectionLevelParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object sectionTitleParameterParameter : sectionTitleParameterList) { + for (Object sectionLevelParameterParameter : sectionLevelParameterList) { + + this.sectionTitleParameter = (java.lang.String) sectionTitleParameterParameter; + this.sectionLevelParameter = (java.lang.Integer) sectionLevelParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_5); + stringBuffer.append(TEXT_5); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_title(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("sectionTitleParameter", this.sectionTitleParameter); + parameterValues.put("sectionLevelParameter", this.sectionLevelParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected java.lang.String sectionTitleParameter = null; + + public void set_sectionTitleParameter(java.lang.String object) { + this.sectionTitleParameter = object; + } + + protected java.lang.Integer sectionLevelParameter = null; + + public void set_sectionLevelParameter(java.lang.Integer object) { + this.sectionLevelParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("sectionTitleParameter", this.sectionTitleParameter); + parameters.put("sectionLevelParameter", this.sectionLevelParameter); + return parameters; + } + + protected void method_title(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + stringBuffer.append(TEXT_1); + stringBuffer.append(sectionLevelParameter); + stringBuffer.append(TEXT_2); + stringBuffer.append(sectionTitleParameter); + stringBuffer.append(TEXT_3); + stringBuffer.append(sectionLevelParameter); + stringBuffer.append(TEXT_4); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "title", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_ModesAndStates.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_ModesAndStates.java new file mode 100644 index 00000000..538a8e23 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_ModesAndStates.java @@ -0,0 +1,153 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.region; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.docgen.util.pattern.helper.RegionHelper; +import org.polarsys.capella.core.data.capellacommon.Region; + +public class Region_ModesAndStates { + protected static String nl; + + public static synchronized Region_ModesAndStates create(String lineSeparator) { + nl = lineSeparator; + Region_ModesAndStates result = new Region_ModesAndStates(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + + public Region_ModesAndStates() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.capellacommon.Region) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.capellacommon.Region parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.capellacommon.Region object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + Collection states = RegionHelper.getState(projectNameParameter, outputFolderParameter, parameter); + if (states.size() > 0) { + String title = "Modes and States"; + Integer level = 2; + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="states:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("parameterListParameter", states); + callParameters.put("projectNameParameter", projectNameParameter); + callParameters.put("outputFolderParameter", outputFolderParameter); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_WyRCkKawEeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + } + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Region; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_OwnedTransitions.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_OwnedTransitions.java new file mode 100644 index 00000000..c139120f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/region/Region_OwnedTransitions.java @@ -0,0 +1,245 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.region; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.capellacommon.Region; +import org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput; +import org.polarsys.capella.core.data.capellacore.Constraint; +import org.polarsys.capella.core.data.capellacommon.StateTransition; +import org.polarsys.capella.docgen.util.StringUtil; +import org.polarsys.capella.common.data.behavior.AbstractEvent; +import org.eclipse.emf.common.util.EList; + +public class Region_OwnedTransitions { + protected static String nl; + + public static synchronized Region_OwnedTransitions create(String lineSeparator) { + nl = lineSeparator; + Region_OwnedTransitions result = new Region_OwnedTransitions(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + protected final String TEXT_3 = NL + "" + NL + "\t" + NL + "\t" + NL + ""; + + public Region_OwnedTransitions() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.capellacommon.Region) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.capellacommon.Region parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.capellacommon.Region object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + if (parameter.getOwnedTransitions() != null && parameter.getOwnedTransitions().size() > 0) { + String title = "Owned Transitions"; + Integer level = 2; + String[] columns = { "Transition", "Source", "Target", "Trigger", "Effect", "Description" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_1); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (StateTransition transition : parameter.getOwnedTransitions()) { + String triggerName = ""; + EList triggers = transition.getTriggers(); + if (triggers != null && !triggers.isEmpty()) { + triggerName = triggers.get(0).getName(); + for (int i = 1; i < triggers.size(); i++) { + triggerName += ", " + triggers.get(i).getName(); + } + } + + String guard = ""; + + // FIXME: (Old code) Keep until migration validation + //guard = ( transition.getGuard() != null && transition.getGuard().length() > 0 ? "["+transition.getGuard()+"]" : ""); + // New code + Constraint constraint = transition.getGuard(); + if (constraint != null && constraint.getName() != null) { + String guardName = CapellaEmbeddedLinkedTextEditorInput.getDefaultText(constraint); + guard = guardName != null ? "[" + guardName + "]" : ""; + } + + EList effects = transition.getEffect(); + String trans_effect = ""; + for (AbstractEvent abstractEvent : effects) { + trans_effect += abstractEvent.getName(); + if (effects.indexOf(abstractEvent) != effects.size()) { + trans_effect += ", "; + } + } + + if (!trans_effect.isEmpty() && effects.size() > 1) { + trans_effect = "(" + trans_effect + ")"; + } + + // String trans_effect = (transition.getEffect() != null ? transition.getEffect().getName() : ""); + + String trans_label = (triggerName.trim().length() > 0 ? triggerName + : transition.getTriggerDescription()) + " " + guard + + (trans_effect.trim().length() > 0 ? " / " + trans_effect : ""); + + String trans_source = (transition.getSource() != null ? transition.getSource().getName() : ""); + + String trans_target = (transition.getTarget() != null ? transition.getTarget().getName() : ""); + + String trans_description = ""; + + if (transition instanceof StateTransition) { + StateTransition tt = (StateTransition) transition; + trans_description = tt.getDescription(); + trans_description = StringUtil.transformAREFString(transition, trans_description, + projectNameParameter, outputFolderParameter); + } + + stringBuffer.append(TEXT_3); + stringBuffer.append(trans_label); + stringBuffer.append(TEXT_4); + stringBuffer.append(trans_source); + stringBuffer.append(TEXT_4); + stringBuffer.append(trans_target); + stringBuffer.append(TEXT_4); + stringBuffer.append(triggerName); + stringBuffer.append(TEXT_4); + stringBuffer.append(trans_effect); + stringBuffer.append(TEXT_4); + stringBuffer.append(trans_description); + stringBuffer.append(TEXT_5); + } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + } + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Region; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/scenario/Scenario_SequenceMessages.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/scenario/Scenario_SequenceMessages.java new file mode 100644 index 00000000..7947360f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/scenario/Scenario_SequenceMessages.java @@ -0,0 +1,211 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.scenario; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; +import org.polarsys.capella.core.data.interaction.Scenario; +import org.polarsys.capella.core.data.interaction.SequenceMessage; +import org.polarsys.capella.docgen.util.StringUtil; + +public class Scenario_SequenceMessages { + protected static String nl; + + public static synchronized Scenario_SequenceMessages create(String lineSeparator) { + nl = lineSeparator; + Scenario_SequenceMessages result = new Scenario_SequenceMessages(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = ""; + protected final String TEXT_2 = NL; + protected final String TEXT_3 = NL + "" + NL + "\t" + NL + "\t" + NL + ""; + + public Scenario_SequenceMessages() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + + this.parameter = (org.polarsys.capella.core.data.interaction.Scenario) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.interaction.Scenario parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.interaction.Scenario object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + // Sort messages + List orderedMessagesList = parameter.getOwnedMessages(); + + stringBuffer.append(TEXT_1); + + if (orderedMessagesList.size() > 0) { + String title = "Sequence Messages"; + Integer level = 2; + String[] columns = { "Invoked Exchange", "Source element of the Exchange", "Target element of the Exchange", + "Description of the Sequence Message
(and not the one of the invoked exchange)" }; + Collection tableColumnList = Arrays.asList(columns); + + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + callParameters.put("tableColumnsListParameter", tableColumnList); + callParameters.put("sectionTitleParameter", title); + callParameters.put("sectionLevelParameter", level); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_HG8TkKc8EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + + for (SequenceMessage sMessage : orderedMessagesList) { + + String source = ""; + String target = ""; + + if (sMessage.getSendingEnd() != null && sMessage.getSendingEnd().getCovered() != null + && sMessage.getSendingEnd().getCovered().getRepresentedInstance() != null) + source = sMessage.getSendingEnd().getCovered().getRepresentedInstance().getName(); + + if (sMessage.getReceivingEnd() != null && sMessage.getReceivingEnd().getCovered() != null + && sMessage.getReceivingEnd().getCovered().getRepresentedInstance() != null) + target = sMessage.getReceivingEnd().getCovered().getRepresentedInstance().getName(); + + String name = sMessage.getName(); + String description = sMessage.getDescription(); + description = StringUtil.transformAREFString(sMessage, description, projectNameParameter, + outputFolderParameter); + if (description == null || description.trim().length() == 0) + description = "No description"; + + stringBuffer.append(TEXT_3); + stringBuffer.append(name); + stringBuffer.append(TEXT_4); + stringBuffer.append(source); + stringBuffer.append(TEXT_4); + stringBuffer.append(target); + stringBuffer.append(TEXT_4); + stringBuffer.append(description); + stringBuffer.append(TEXT_5); + } + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + { + //<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), null, stringBuffer.toString()); + stringBuffer.setLength(0); + + final Map callParameters = new HashMap(); + CallHelper.executeWithParameterInjection( + "platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#_GyZxgKc9EeuJhsj8yYqhhw", + new ExecutionContext((InternalPatternContext) ctx), callParameters); + stringBuffer.setLength(0); + } + + stringBuffer.append(TEXT_2); + } + stringBuffer.append(TEXT_2); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return parameter instanceof Scenario; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/template/templatePattern.java b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/template/templatePattern.java new file mode 100644 index 00000000..ebaee2b5 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/generated/org/polarsys/capella/docgen/sections/template/templatePattern.java @@ -0,0 +1,154 @@ +//Generated with EGF 1.6.2.202001031546 +package org.polarsys.capella.docgen.sections.template; + +import java.util.*; +import org.eclipse.egf.model.pattern.*; +import org.eclipse.egf.pattern.execution.*; +import org.eclipse.egf.pattern.query.*; + +public class templatePattern { + protected static String nl; + + public static synchronized templatePattern create(String lineSeparator) { + nl = lineSeparator; + templatePattern result = new templatePattern(); + nl = null; + return result; + } + + public final String NL = nl == null ? (System.getProperties().getProperty("line.separator")) : nl; + protected final String TEXT_1 = "%>"; + protected final String TEXT_2 = NL; + + public templatePattern() { + //Here is the constructor + StringBuffer stringBuffer = new StringBuffer(); + + // add initialisation of the pattern variables (declaration has been already done). + + } + + public String generate(Object argument) throws Exception { + final StringBuffer stringBuffer = new StringBuffer(); + + InternalPatternContext ctx = (InternalPatternContext) argument; + Map queryCtx = null; + IQuery.ParameterDescription paramDesc = null; + Node.Container currentNode = ctx.getNode(); + + List parameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List projectNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List outputFolderParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementNameParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + List elementTypeParameterList = null; + //this pattern can only be called by another (i.e. it's not an entry point in execution) + + for (Object parameterParameter : parameterList) { + for (Object projectNameParameterParameter : projectNameParameterList) { + for (Object outputFolderParameterParameter : outputFolderParameterList) { + for (Object elementNameParameterParameter : elementNameParameterList) { + for (Object elementTypeParameterParameter : elementTypeParameterList) { + + this.parameter = (org.polarsys.capella.core.data.fa.AbstractFunction) parameterParameter; + this.projectNameParameter = (java.lang.String) projectNameParameterParameter; + this.outputFolderParameter = (java.lang.String) outputFolderParameterParameter; + this.elementNameParameter = (java.lang.String) elementNameParameterParameter; + this.elementTypeParameter = (java.lang.String) elementTypeParameterParameter; + + if (preCondition(ctx)) { + ctx.setNode(new Node.Container(currentNode, getClass())); + orchestration(ctx); + } + + } + } + } + } + } + ctx.setNode(currentNode); + if (ctx.useReporter()) { + ctx.getReporter().executionFinished(OutputManager.computeExecutionOutput(ctx), ctx); + } + + stringBuffer.append(TEXT_2); + stringBuffer.append(TEXT_2); + return stringBuffer.toString(); + } + + public String orchestration(PatternContext ctx) throws Exception { + InternalPatternContext ictx = (InternalPatternContext) ctx; + + method_body(new StringBuffer(), ictx); + + if (ictx.useReporter()) { + Map parameterValues = new HashMap(); + parameterValues.put("parameter", this.parameter); + parameterValues.put("projectNameParameter", this.projectNameParameter); + parameterValues.put("outputFolderParameter", this.outputFolderParameter); + parameterValues.put("elementNameParameter", this.elementNameParameter); + parameterValues.put("elementTypeParameter", this.elementTypeParameter); + String outputWithCallBack = OutputManager.computeLoopOutput(ictx); + String loop = OutputManager.computeLoopOutputWithoutCallback(ictx); + ictx.getReporter().loopFinished(loop, outputWithCallBack, ictx, parameterValues); + } + return null; + } + + protected org.polarsys.capella.core.data.fa.AbstractFunction parameter = null; + + public void set_parameter(org.polarsys.capella.core.data.fa.AbstractFunction object) { + this.parameter = object; + } + + protected java.lang.String projectNameParameter = null; + + public void set_projectNameParameter(java.lang.String object) { + this.projectNameParameter = object; + } + + protected java.lang.String outputFolderParameter = null; + + public void set_outputFolderParameter(java.lang.String object) { + this.outputFolderParameter = object; + } + + protected java.lang.String elementNameParameter = null; + + public void set_elementNameParameter(java.lang.String object) { + this.elementNameParameter = object; + } + + protected java.lang.String elementTypeParameter = null; + + public void set_elementTypeParameter(java.lang.String object) { + this.elementTypeParameter = object; + } + + public Map getParameters() { + final Map parameters = new HashMap(); + parameters.put("parameter", this.parameter); + parameters.put("projectNameParameter", this.projectNameParameter); + parameters.put("outputFolderParameter", this.outputFolderParameter); + parameters.put("elementNameParameter", this.elementNameParameter); + parameters.put("elementTypeParameter", this.elementTypeParameter); + return parameters; + } + + protected void method_body(final StringBuffer stringBuffer, final PatternContext ctx) throws Exception { + + // String title = "Allocating Component"; + // Integer level = 2; + // <%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteList" args="allocatingComponents:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter" + stringBuffer.append(TEXT_1); + InternalPatternContext ictx = (InternalPatternContext) ctx; + new Node.DataLeaf(ictx.getNode(), getClass(), "body", stringBuffer.toString()); + } + + public boolean preCondition(PatternContext ctx) throws Exception { + return true; + } +} \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXsr9JEeC3itjHQ6nPuA.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXsr9JEeC3itjHQ6nPuA.pt index d2a3c0cf..e4187f49 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXsr9JEeC3itjHQ6nPuA.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXsr9JEeC3itjHQ6nPuA.pt @@ -1 +1,13 @@ -<%@ jet package="PACKAGE" class="CLASS" imports="org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput org.polarsys.capella.core.data.capellacore.Constraint java.util.* org.eclipse.egf.model.pattern.* org.eclipse.egf.pattern.execution.* org.eclipse.egf.pattern.query.* org.polarsys.capella.core.data.capellacommon.Region org.polarsys.capella.core.data.capellacommon.StateTransition org.polarsys.capella.docgen.util.CapellaElementService org.polarsys.capella.docgen.util.StringUtil org.polarsys.capella.docgen.util.pattern.helper.RegionHelper org.polarsys.capella.common.data.behavior.AbstractEvent org.eclipse.emf.common.util.EList" %> \ No newline at end of file +<%@ jet package="PACKAGE" class="CLASS" imports=" +org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput +org.polarsys.capella.core.data.capellacore.Constraint +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.capellacommon.StateTransition +org.polarsys.capella.docgen.util.StringUtil +org.polarsys.capella.docgen.util.pattern.helper.RegionHelper +org.polarsys.capella.common.data.behavior.AbstractEvent +org.eclipse.emf.common.util.EList +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXtb9JEeC3itjHQ6nPuA.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXtb9JEeC3itjHQ6nPuA.pt index 7f063dde..af5b9523 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXtb9JEeC3itjHQ6nPuA.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._1fzXtb9JEeC3itjHQ6nPuA.pt @@ -1,15 +1,5 @@ <% -super.method_content(new StringBuffer(), ctx); -String projectName = ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); - -Collection states = RegionHelper.getState(projectName, - outputFolder,(Region) element); - - if(states.size() > 0) { +super.method_content(new StringBuffer(), ctx); %> -

Modes and States

-<%=StringUtil.stringListToBulette(states)%> -<% -} -%> \ No newline at end of file + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.region.Region_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._A5FHED4pEeKDPO8mQtK38g.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._A5FHED4pEeKDPO8mQtK38g.pt index 2451e0ee..3970cc44 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._A5FHED4pEeKDPO8mQtK38g.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._A5FHED4pEeKDPO8mQtK38g.pt @@ -1,109 +1,10 @@ -<% // Realized Elements %> -<% -String outputFolder = ctx.getValue("outputFolder").toString(); -String projectName = ctx.getValue("projectName").toString(); -Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, outputFolder); -if(allocations.size() > 0) {%> -

Realized Elements

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> -<%=StringUtil.stringListToBulette(allocations)%> - -<%}%> - -<% // Realizing Elements %> -<% -//String outputFolder = ctx.getValue("outputFolder").toString(); -//String projectName = ctx.getValue("projectName").toString(); -Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, outputFolder); -if(allocations2.size() > 0) {%> -

Realizing Elements

- -<%=StringUtil.stringListToBulette(allocations2)%> - -<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> <% // owned diagrams%> <%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="element:element"%> -<%if (parameter.getOwnedTransitions() != null && parameter.getOwnedTransitions().size() > 0){%> -

Owned Transitions

-
"; + protected final String TEXT_3 = "
"; + protected final String TEXT_4 = ""; + protected final String TEXT_5 = "
"; + protected final String TEXT_4 = ""; + protected final String TEXT_5 = "
- - - - - - - - - - - -<% for (StateTransition transition : parameter.getOwnedTransitions()) - { - String triggerName = ""; - EList triggers = transition.getTriggers(); - if (triggers != null && ! triggers.isEmpty()) - { - triggerName = triggers.get(0).getName(); - for (int i = 1; i < triggers.size(); i++) { - triggerName += ", " + triggers.get(i).getName(); - } - } - - String guard = ""; - - // FIXME: (Old code) Keep until migration validation - //guard = ( transition.getGuard() != null && transition.getGuard().length() > 0 ? "["+transition.getGuard()+"]" : ""); - // New code - Constraint constraint = transition.getGuard(); - if (constraint != null && constraint.getName() != null) - { - String guardName = CapellaEmbeddedLinkedTextEditorInput.getDefaultText(constraint); - guard = guardName != null ? "[" + guardName + "]" : ""; - } - - EList effects = transition.getEffect(); - String trans_effect = ""; - for (AbstractEvent abstractEvent : effects) - { - trans_effect += abstractEvent.getName(); - if (effects.indexOf(abstractEvent) != effects.size()) - { - trans_effect += ", "; - } - } - - if (! trans_effect.isEmpty() && effects.size() > 1) - { - trans_effect = "(" + trans_effect + ")"; - } - - // String trans_effect = (transition.getEffect() != null ? transition.getEffect().getName() : ""); - - String trans_label = (triggerName.trim().length() > 0 ? triggerName : transition.getTriggerDescription()) + " " + guard+ - ( trans_effect.trim().length() > 0 ? " / " + trans_effect : ""); - - String trans_source = (transition.getSource() != null ? transition.getSource().getName() : ""); - - String trans_target = (transition.getTarget() != null ? transition.getTarget().getName() : ""); - - String trans_description = ""; - - if (transition instanceof StateTransition){ - StateTransition tt = (StateTransition) transition; - trans_description = tt.getDescription(); - trans_description = StringUtil.transformAREFString(transition, trans_description, projectName, outputFolder); - }%> - - - - - - - - - <%}%> -<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.region.Region_OwnedTransitions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._MshV8L9KEeC3itjHQ6nPuA.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._MshV8L9KEeC3itjHQ6nPuA.pt index 7a5a6686..e2779b20 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._MshV8L9KEeC3itjHQ6nPuA.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._1fzXsL9JEeC3itjHQ6nPuA/method._MshV8L9KEeC3itjHQ6nPuA.pt @@ -1,3 +1,5 @@ <% element = parameter; +projectName = ctx.getValue("projectName").toString(); +outputFolder = ctx.getValue("outputFolder").toString(); %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di86awEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di86awEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di86awEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di8qawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di8qawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..c253e78d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di8qawEeuJhsj8yYqhhw.pt @@ -0,0 +1,6 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9KawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9KawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9aawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9aawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..3e3b96f7 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9aawEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +><%=sectionTitleParameter%>> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9qawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._24di8KawEeuJhsj8yYqhhw/method._24di9qawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q46c4EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q46c4EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q46c4EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q4qc4EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q4qc4EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..6e40eb88 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q4qc4EeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5Kc4EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5Kc4EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5ac4EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5ac4EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..9e990305 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5ac4EeuJhsj8yYqhhw.pt @@ -0,0 +1,11 @@ +<% +Collection availableModeAndState = CapellaFunctionServices.getAvailableModeAndState(projectNameParameter, outputFolderParameter, parameter); + +if(availableModeAndState.size() > 0) { + String title = "Modes and States"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="availableModeAndState:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5qc4EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._5e5Q4Kc4EeuJhsj8yYqhhw/method._5e5Q5qc4EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBs6gLEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBs6gLEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBs6gLEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBsqgLEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBsqgLEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..be3e1d8b --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBsqgLEeu7bOcPHGGhcQ.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.capellacore.CapellaElement +org.polarsys.capella.docgen.util.CapellaElementService +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtKgLEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtKgLEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..ad5241e2 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtKgLEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof CapellaElement; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtagLEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtagLEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..3f9e7f16 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtagLEeu7bOcPHGGhcQ.pt @@ -0,0 +1,12 @@ +<% +String outputFolder = ctx.getValue("outputFolder").toString(); +String projectName = ctx.getValue("projectName").toString(); +Collection allocations = CapellaElementService.getIncomingAllocation(parameter, projectName, outputFolder); +if(allocations.size() > 0) { + String title = "Realizing Elements"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocations:parameterListParameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtqgLEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6IqBsKgLEeu7bOcPHGGhcQ/method._6IqBtqgLEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7is6hEEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7is6hEEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7is6hEEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7isqhEEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7isqhEEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d40f77a1 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7isqhEEeu7bOcPHGGhcQ.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.fa.ComponentExchangeCategory +org.polarsys.capella.docgen.util.CapellaCategoryServices +org.polarsys.capella.core.data.fa.ComponentExchange +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itKhEEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itKhEEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..890fe12b --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itKhEEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof ComponentExchangeCategory; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itahEEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itahEEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..6f0035d1 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itahEEeu7bOcPHGGhcQ.pt @@ -0,0 +1,17 @@ +<% +if (parameter.getExchanges().size() > 0) { + String title = "Involved Component Exchanges"; + Integer level = 2; + String[] columns = {"Component Exchange", "Source Component", "Target Component", "Description"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + for (ComponentExchange ce : parameter.getExchanges()) { + %> + <%=CapellaCategoryServices.edgeToTableLine(ce, projectNameParameter, outputFolderParameter)%> + <% + } +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> +<%}%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itqhEEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6K7isKhEEeu7bOcPHGGhcQ/method._6K7itqhEEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6RU6oXGlEeC8GrKepiiiTw/method._MXRzYHGmEeC8GrKepiiiTw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6RU6oXGlEeC8GrKepiiiTw/method._MXRzYHGmEeC8GrKepiiiTw.pt index 2c614c0c..6ba28c62 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6RU6oXGlEeC8GrKepiiiTw/method._MXRzYHGmEeC8GrKepiiiTw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._6RU6oXGlEeC8GrKepiiiTw/method._MXRzYHGmEeC8GrKepiiiTw.pt @@ -34,7 +34,7 @@ if(type instanceof Entity) {%> <%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.content.EntityContentDocGen" args="type:element"%> <% }%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:element"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="type:parameter"%> <% } %> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQ6dVEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQ6dVEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQ6dVEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQqdVEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQqdVEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmQqdVEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRKdVEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRKdVEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..6200c268 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRKdVEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof OperationalActivity; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRadVEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRadVEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..3a57db50 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRadVEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection incomingInternalInteractions = CapellaFunctionServices.getIncomingInternalFunctionalExchanges(parameter); +if(incomingInternalInteractions.size() > 0) { + String title = "Incoming Internal Interactions"; + Integer level = 2; + String[] columns = {"Interaction", "Involving Operational Processes", "Source", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange activityEdge : incomingInternalInteractions) { +%> +<%=CapellaFunctionServices.externalInteractionToTableLine(activityEdge, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRqdVEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._7ABmQKdVEeuJhsj8yYqhhw/method._7ABmRqdVEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._5f3gIFxqEemRLucKv8z86A.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._5f3gIFxqEemRLucKv8z86A.pt index 7a5a6686..4b13a46e 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._5f3gIFxqEemRLucKv8z86A.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._5f3gIFxqEemRLucKv8z86A.pt @@ -1,3 +1,5 @@ <% element = parameter; +projectName= ctx.getValue("projectName").toString(); +outputFolder = ctx.getValue("outputFolder").toString(); %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp4lxqEemRLucKv8z86A.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp4lxqEemRLucKv8z86A.pt index 06b377be..a9687f43 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp4lxqEemRLucKv8z86A.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp4lxqEemRLucKv8z86A.pt @@ -1 +1,9 @@ -<%@ jet package="PACKAGE" class="CLASS" imports="org.polarsys.capella.docgen.util.CapellaCategoryServices org.polarsys.capella.core.data.cs.PhysicalLink org.polarsys.capella.core.data.cs.PhysicalLinkCategory org.polarsys.capella.core.data.fa.ComponentExchange org.polarsys.capella.core.data.fa.FunctionalExchange org.polarsys.capella.core.data.fa.ExchangeCategory org.polarsys.capella.core.data.fa.ComponentExchangeCategory org.eclipse.egf.common.helper.* java.util.* org.eclipse.emf.ecore.* org.eclipse.egf.model.pattern.* org.eclipse.egf.pattern.execution.* org.eclipse.egf.pattern.query.*" %> \ No newline at end of file +<%@ jet package="PACKAGE" class="CLASS" imports=" +org.polarsys.capella.core.data.cs.PhysicalLinkCategory +org.polarsys.capella.core.data.fa.ExchangeCategory +org.polarsys.capella.core.data.fa.ComponentExchangeCategory +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp5VxqEemRLucKv8z86A.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp5VxqEemRLucKv8z86A.pt index d19fcd5c..a6da0c1e 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp5VxqEemRLucKv8z86A.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._B0Sp4FxqEemRLucKv8z86A/method._B0Sp5VxqEemRLucKv8z86A.pt @@ -1,98 +1,30 @@ <% super.method_content(new StringBuffer(), ctx); -String projectName= ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); // Exchange Categories if (element instanceof ExchangeCategory) { - ExchangeCategory category = (ExchangeCategory) element; - if (category.getExchanges().size() > 0) { - // Display Title - %> -

Involved Functional Exchanges

- <% - // Create table header - %> -
TransitionSourceTargetTriggerEffectDescription
<%=trans_label%><%=trans_source%><%=trans_target%><%=triggerName%><%=trans_effect%><%=trans_description%>
- - - - - - - <% - // Create each line - for (FunctionalExchange fe : category.getExchanges()) { - %> - <%=CapellaCategoryServices.edgeToTableLine(fe, projectName, outputFolder)%> - <% - } - // Create table footer - %> -
Functional ExchangeSource FunctionTarget FunctionDescription
- <% - } +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.ExchangeCategory_InvolvedFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + +<% } // Component Exchange Categories if (element instanceof ComponentExchangeCategory) { - ComponentExchangeCategory category = (ComponentExchangeCategory) element; - if (category.getExchanges().size() > 0) { - // Display Title - %> -

Involved Component Exchanges

- <% - // Create table header - %> - - - - - - - - <% - // Create each line - for (ComponentExchange ce : category.getExchanges()) { - %> - <%=CapellaCategoryServices.edgeToTableLine(ce, projectName, outputFolder)%> - <% - } - // Create table footer - %> -
Component ExchangeSource ComponentTarget ComponentDescription
- <% - } +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.ComponentExchangeCategory_InvolvedComponentExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + +<% } // Physical Link Categories if (element instanceof PhysicalLinkCategory) { - PhysicalLinkCategory category = (PhysicalLinkCategory) element; - if (category.getLinks().size() > 0) { - // Display Title - %> -

Involved Physical Links

- <% - // Create table header - %> - - - - - - - - <% - // Create each line - for (PhysicalLink pl : category.getLinks()) { - %> - <%=CapellaCategoryServices.edgeToTableLine(pl, projectName, outputFolder)%> - <% - } - // Create table footer - %> -
Physical LinkSource ComponentTarget ComponentDescription
- <% - } +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.category.PhysicalLinkCategory_InvolvedPhysicalLinks" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + +<% } %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LU6dqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LU6dqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LU6dqEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LUqdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LUqdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..467cad30 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LUqdqEeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVKdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVKdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVKdqEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVadqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVadqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..0225868d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVadqEeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectNameParameter, outputFolderParameter, parameter); +if(involvedFunctions.size() > 0 ) { + String title = "Related Functions"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedFunctions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVqdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._D-2LUKdqEeuJhsj8yYqhhw/method._D-2LVqdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg86dpEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg86dpEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg86dpEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg8qdpEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg8qdpEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..467cad30 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg8qdpEeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9KdpEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9KdpEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9KdpEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9adpEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9adpEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..76f5947f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9adpEeuJhsj8yYqhhw.pt @@ -0,0 +1,33 @@ +<% +Collection extendedCapabilities = CapellaCapabilityHelper.INSTANCE.getExtendedCapabilities(projectNameParameter, outputFolderParameter, parameter); +Collection includedCapabilities = CapellaCapabilityHelper.INSTANCE.getIncludedCapabilities(projectNameParameter, outputFolderParameter, parameter); +Collection superCapabilities = CapellaCapabilityHelper.INSTANCE.getParentCapabilities(projectNameParameter, outputFolderParameter, parameter); +if((extendedCapabilities.size() > 0) || (includedCapabilities.size() > 0) || (superCapabilities.size() > 0)) { + String title = "Relationships with other Capabilities"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TitleSection" args="title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + if(extendedCapabilities.size() > 0) { + title = "Extended Capabilities"; + level = 3; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="extendedCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + } + if(includedCapabilities.size() > 0) { + title = "Included Capabilities"; + level = 3; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="includedCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + } + if(superCapabilities.size() > 0) { + title = "Super"; + level = 3; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="superCapabilities:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + } +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9qdpEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._DIZg8KdpEeuJhsj8yYqhhw/method._DIZg9qdpEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxg6c9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxg6c9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxg6c9EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxgqc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxgqc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..ed47d0ab --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxgqc9EeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhKc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhKc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhac9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhac9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..000ca4b0 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhac9EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ + diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhqc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._GyZxgKc9EeuJhsj8yYqhhw/method._GyZxhqc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._2wLXEKgYEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._2wLXEKgYEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..bc7e74d3 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._2wLXEKgYEeu7bOcPHGGhcQ.pt @@ -0,0 +1,4 @@ +<% +outputFolder = ctx.getValue("outputFolder").toString(); +projectName = ctx.getValue("projectName").toString(); +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._H6ielqvLEeCas-LHcur3rg.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._H6ielqvLEeCas-LHcur3rg.pt index 36851568..8cba7d29 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._H6ielqvLEeCas-LHcur3rg.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._H6iekavLEeCas-LHcur3rg/method._H6ielqvLEeCas-LHcur3rg.pt @@ -1,43 +1,22 @@ -<% // Realized Elements %> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> -<% -String outputFolder = ctx.getValue("outputFolder").toString(); -String projectName = ctx.getValue("projectName").toString(); -Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, outputFolder); -if(allocations.size() > 0) {%> -

Realized Elements

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> -<%=StringUtil.stringListToBulette(allocations)%> - -<%}%> - -<% // Realizing Elements %> -<% -//String outputFolder = ctx.getValue("outputFolder").toString(); -//String projectName = ctx.getValue("projectName").toString(); -Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, outputFolder); -if(allocations2.size() > 0) {%> -

Realizing Elements

- -<%=StringUtil.stringListToBulette(allocations2)%> - -<%}%> - -<%if (element.getOwnedConstraints().isEmpty() == false){%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.ConstraintsDocGen" args="element:parameter"%> +<%if (parameter.getOwnedConstraints().isEmpty() == false){%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.ConstraintsDocGen" args="parameter:parameter"%> <%}%> <% // Presented in diagrams generation%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PropertyValueGen" args="element:element, outputFolder:outputFolder, projectName:projectName"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PropertyValueGen" args="parameter:element, outputFolder:outputFolder, projectName:projectName"%> <% // owned diagrams%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="element:element"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="parameter:element"%> <% // Presented in diagrams generation%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PresentedDiagrmsGeneration" args="element:element"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.PresentedDiagrmsGeneration" args="parameter:element"%> <%// Interested diagram in this model element %> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.InterestedDiagrmsGeneration" args="element:element"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.InterestedDiagrmsGeneration" args="parameter:element"%> -<% // Diagrams navigation tree%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramNavigationTree" args="element:element, outputFolder:outputFolder, projectName:projectName"%> +<% // Diagrams navigation tree%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramNavigationTree" args="parameter:element, outputFolder:outputFolder, projectName:projectName"%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tk6c8EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tk6c8EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tk6c8EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tkqc8EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tkqc8EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..ed47d0ab --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tkqc8EeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8TlKc8EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8TlKc8EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tlac8EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tlac8EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..0f0e8de1 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tlac8EeuJhsj8yYqhhw.pt @@ -0,0 +1,11 @@ + + +<% +Collection columns = (Collection) tableColumnsListParameter; +for (String column : columns) { +%> + +<% +} +%> + diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tlqc8EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HG8TkKc8EeuJhsj8yYqhhw/method._HG8Tlqc8EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKA6gGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKA6gGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKA6gGEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKAqgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKAqgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..28f3edb6 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKAqgGEeu7bOcPHGGhcQ.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.la.CapabilityRealization +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBKgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBKgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..1ea8c6db --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBKgGEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof CapabilityRealization; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBagGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBagGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..1877998d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBagGEeu7bOcPHGGhcQ.pt @@ -0,0 +1,10 @@ +<% +Collection involvedComponent = CapellaCapabilityHelper.INSTANCE.getInvolvedComponent(projectNameParameter, outputFolderParameter, parameter); +if(involvedComponent.size() > 0) { + String title = "Involved Components"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedComponent:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBqgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._HPrKAKgGEeu7bOcPHGGhcQ/method._HPrKBqgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQ6g5Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQ6g5Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQ6g5Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQqg5Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQqg5Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e65fe51d --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRQqg5Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.interaction.Scenario +org.polarsys.capella.core.data.interaction.SequenceMessage +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRKg5Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRKg5Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..15d4db59 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRKg5Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof Scenario; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRag5Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRag5Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..f004a114 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRag5Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,42 @@ +<%// Sort messages +List orderedMessagesList = parameter.getOwnedMessages(); +%> + +<% +if (orderedMessagesList.size()>0) { + String title = "Sequence Messages"; + Integer level = 2; + String[] columns = {"Invoked Exchange", "Source element of the Exchange", "Target element of the Exchange", "Description of the Sequence Message
(and not the one of the invoked exchange)"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% + for (SequenceMessage sMessage : orderedMessagesList) { + + String source = ""; + String target = ""; + + if (sMessage.getSendingEnd() != null && sMessage.getSendingEnd().getCovered() != null && sMessage.getSendingEnd().getCovered().getRepresentedInstance() != null) + source = sMessage.getSendingEnd().getCovered().getRepresentedInstance().getName(); + + if (sMessage.getReceivingEnd() != null && sMessage.getReceivingEnd().getCovered() != null && sMessage.getReceivingEnd().getCovered().getRepresentedInstance() != null) + target = sMessage.getReceivingEnd().getCovered().getRepresentedInstance().getName(); + + String name = sMessage.getName(); + String description = sMessage.getDescription(); + description = StringUtil.transformAREFString(sMessage, description, projectNameParameter, outputFolderParameter); + if (description == null || description.trim().length() == 0) + description = "No description"; +%> +
+ + + + + +<% }%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<%}%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRqg5Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._KEGRQKg5Eeu7bOcPHGGhcQ/method._KEGRRqg5Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl886dTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl886dTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl886dTEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl88qdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl88qdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl88qdTEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89KdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89KdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..eeecfe2f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89KdTEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return !(parameter instanceof OperationalActivity); \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89adTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89adTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2803db03 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89adTEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection outgoingInternalFunctionalExchanges = CapellaFunctionServices.getOutgoingInternalFunctionalExchanges(parameter); +if(outgoingInternalFunctionalExchanges.size() > 0) { + String title = "Outgoing Internal Functional Exchanges"; + Integer level = 2; + String[] columns = {"Exchange", "Involving functional chains", "Allocating component Exchanges", "Distant Port", "Source", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange functionalExchange : outgoingInternalFunctionalExchanges) { +%> +<%=CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89qdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Lgl88KdTEeuJhsj8yYqhhw/method._Lgl89qdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lU6dXEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lU6dXEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lU6dXEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lUqdXEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lUqdXEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lUqdXEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVKdXEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVKdXEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..6200c268 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVKdXEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof OperationalActivity; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVadXEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVadXEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..f5f74330 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVadXEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection outgoingInteractions = CapellaFunctionServices.getOutgoingFunctionalExchanges(parameter); +if(outgoingInteractions.size() > 0) { + String title = "Outgoing Interactions"; + Integer level = 2; + String[] columns = {"Interaction", "Target", "Description", "Allocated Exchange Items"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange activityEdge : outgoingInteractions) { +%> +<%=CapellaFunctionServices.outgoingInteractionToTableLine(activityEdge, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVqdXEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Ln8lUKdXEeuJhsj8yYqhhw/method._Ln8lVqdXEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lk6nWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lk6nWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lk6nWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lkqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lkqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05lkqnWEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llKnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llKnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llKnWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llanWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llanWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..75f48823 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llanWEeux98xBZ-sHgw.pt @@ -0,0 +1,13 @@ +<% +Collection dataValuesCollection = CapellaClassServices.getClassDataValues(parameter, projectNameParameter, outputFolderParameter); +if(dataValuesCollection.size() > 0) { + String title = "Data Values"; + Integer level = 2; + String structuralFeatureName = title; +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="dataValuesCollection:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._P05lkKnWEeux98xBZ-sHgw/method._P05llqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROg6nWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROg6nWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROg6nWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROgqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROgqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROgqnWEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhKnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhKnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhKnWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhanWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhanWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..b04d3306 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhanWEeux98xBZ-sHgw.pt @@ -0,0 +1,13 @@ +<% +Collection realisations = CapellaClassServices.getClassRealizeInformation(parameter); +if(realisations.size() > 0) { + String title = "Realisation"; + Integer level = 2; + String structuralFeatureName = title; +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="realisations:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._PQROgKnWEeux98xBZ-sHgw/method._PQROhqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0M6nWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0M6nWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0M6nWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0MqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0MqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0MqnWEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NKnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NKnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NKnWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NanWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NanWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..fc0a9f9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NanWEeux98xBZ-sHgw.pt @@ -0,0 +1,13 @@ +<% +Collection propertiesCollection = CapellaClassServices.getClassProperties(parameter, projectNameParameter, outputFolderParameter); +if(propertiesCollection.size() > 0) { + String title = "Properties"; + Integer level = 2; + String structuralFeatureName = title; +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="propertiesCollection:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Pir0MKnWEeux98xBZ-sHgw/method._Pir0NqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3s6nWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3s6nWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3s6nWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3sqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3sqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3sqnWEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tKnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tKnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tKnWEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tanWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tanWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..f7817c4f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tanWEeux98xBZ-sHgw.pt @@ -0,0 +1,13 @@ +<% +Collection operations = CapellaClassServices.getClassOperation(parameter); +if(operations.size() > 0) { + String title = "Operations"; + Integer level = 2; + String structuralFeatureName = title; +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="operations:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tqnWEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._Prw3sKnWEeux98xBZ-sHgw/method._Prw3tqnWEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoY6c0EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoY6c0EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoY6c0EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoYqc0EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoYqc0EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..b61b8d3e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoYqc0EeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.common.data.activity.InputPin +org.eclipse.emf.common.util.EList +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZKc0EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZKc0EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZac0EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZac0EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..4c3255d8 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZac0EeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +EList incomingPorts = parameter.getInputs(); +if(incomingPorts.size() > 0) { + String title = "Incoming Functional Ports"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromEList" args="incomingPorts:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZqc0EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._R9PoYKc0EeuJhsj8yYqhhw/method._R9PoZqc0EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD06dqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD06dqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD06dqEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD0qdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD0qdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..467cad30 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD0qdqEeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1KdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1KdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1KdqEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1adqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1adqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..1bb7dd97 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1adqEeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +Collection availableModeAndState = CapellaCapabilityHelper.INSTANCE.getAvailableModeAndState(projectNameParameter, outputFolderParameter, parameter); +if(availableModeAndState.size() > 0 ) { + String title = "Modes and States"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="availableModeAndState:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1qdqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SeqD0KdqEeuJhsj8yYqhhw/method._SeqD1qdqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGE6c9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGE6c9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGE6c9EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGEqc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGEqc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGEqc9EeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFKc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFKc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..eeecfe2f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFKc9EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return !(parameter instanceof OperationalActivity); \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFac9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFac9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..99d7ba72 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFac9EeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection incomingInternalFunctionalExchanges = CapellaFunctionServices.getIncomingInternalFunctionalExchanges(parameter); +if(incomingInternalFunctionalExchanges.size() > 0) { + String title = "Incoming Internal Functional Exchanges"; + Integer level = 2; + String[] columns = {"Exchange", "Involving functional chains", "Allocating component Exchanges", "Distant Port", "Source", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange functionalExchange : incomingInternalFunctionalExchanges) { +%> +<%=CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFqc9EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._SjNGEKc9EeuJhsj8yYqhhw/method._SjNGFqc9EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLojlmEeKfl43CFVnoFw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLojlmEeKfl43CFVnoFw.pt index e88fe31f..852b16b7 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLojlmEeKfl43CFVnoFw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLojlmEeKfl43CFVnoFw.pt @@ -1 +1,10 @@ -<%@ jet package="PACKAGE" class="CLASS" imports="org.eclipse.egf.common.helper.* java.util.* org.eclipse.emf.ecore.* org.eclipse.egf.model.pattern.* org.eclipse.egf.pattern.execution.* org.eclipse.egf.pattern.query.* org.polarsys.capella.core.data.interaction.Scenario org.polarsys.capella.core.data.interaction.SequenceMessage org.polarsys.capella.docgen.util.CapellaElementService org.polarsys.capella.docgen.util.StringUtil" %> \ No newline at end of file +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.interaction.Scenario +org.polarsys.capella.core.data.interaction.SequenceMessage +org.polarsys.capella.docgen.util.CapellaElementService +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLpTlmEeKfl43CFVnoFw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLpTlmEeKfl43CFVnoFw.pt index 5ab62519..848452eb 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLpTlmEeKfl43CFVnoFw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._TIBLpTlmEeKfl43CFVnoFw.pt @@ -1 +1,5 @@ -<%element = parameter;%> \ No newline at end of file +<% +element = parameter; +outputFolder = ctx.getValue("outputFolder").toString(); +projectName = ctx.getValue("projectName").toString(); +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._m0-ecDlmEeKfl43CFVnoFw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._m0-ecDlmEeKfl43CFVnoFw.pt index 91e62915..405204e0 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._m0-ecDlmEeKfl43CFVnoFw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._TIBLoDlmEeKfl43CFVnoFw/method._m0-ecDlmEeKfl43CFVnoFw.pt @@ -1,73 +1,9 @@ -<% // Realized Elements %> -<% -String outputFolder = ctx.getValue("outputFolder").toString(); -String projectName = ctx.getValue("projectName").toString(); -Collection allocations = CapellaElementService.getOutGoingAllocation(element, projectName, outputFolder); -if(allocations.size() > 0) {%> -

Realized Elements

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizedElements" args="parameter:parameter"%> -<%=StringUtil.stringListToBulette(allocations)%> - -<%}%> - -<% // Realizing Elements %> -<% -//String outputFolder = ctx.getValue("outputFolder").toString(); -//String projectName = ctx.getValue("projectName").toString(); -Collection allocations2 = CapellaElementService.getIncomingAllocation(element, projectName, outputFolder); -if(allocations2.size() > 0) {%> -

Realizing Elements

- -<%=StringUtil.stringListToBulette(allocations2)%> - -<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capellaelement.CapellaElement_RealizingElements" args="parameter:parameter"%> <% // owned diagrams%> <%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.DiagramsGeneration" args="element:element"%> -<%// Trier les messages -List orderedMessagesList = ((Scenario)parameter).getOwnedMessages(); -%> - -<%if (orderedMessagesList.size()>0){%> - -

Sequence Messages

- -
<%=column%>
<%=name%><%=source%><%=target%><%=description%>
- - - - - - - - - - -<%for (SequenceMessage sMessage : orderedMessagesList) { - -String source = ""; -String target = ""; - -if (sMessage.getSendingEnd() != null && sMessage.getSendingEnd().getCovered() != null && sMessage.getSendingEnd().getCovered().getRepresentedInstance() != null) - source = sMessage.getSendingEnd().getCovered().getRepresentedInstance().getName(); - -if (sMessage.getReceivingEnd() != null && sMessage.getReceivingEnd().getCovered() != null && sMessage.getReceivingEnd().getCovered().getRepresentedInstance() != null) - target = sMessage.getReceivingEnd().getCovered().getRepresentedInstance().getName(); - -String name = sMessage.getName(); -String description = sMessage.getDescription(); -description = StringUtil.transformAREFString(sMessage, description, projectName, outputFolder); -if (description == null || description.trim().length() == 0) - description = "No description";%> - - - - - - -<%}%> - -
Invoked ExchangeSource element of the ExchangeTarget element of the ExchangeDescription of the Sequence Message
(and not the one of the invoked exchange)
<%=name%><%=source%><%=target%><%=description%>
-<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.scenario.Scenario_SequenceMessages" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K646dUEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K646dUEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K646dUEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K64qdUEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K64qdUEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K64qdUEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65KdUEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65KdUEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..eeecfe2f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65KdUEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return !(parameter instanceof OperationalActivity); \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65adUEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65adUEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..173c0d03 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65adUEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection outgoingFunctionalExchanges = CapellaFunctionServices.getOutgoingFunctionalExchanges(parameter); +if(outgoingFunctionalExchanges.size() > 0) { + String title = "Outgoing Functional Exchanges"; + Integer level = 2; + String[] columns = {"Exchange", "Involving functional chains", "Allocating component Exchanges", "Distant Port", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange functionalExchange : outgoingFunctionalExchanges) { +%> +<%=CapellaFunctionServices.outgoingFunctionalExchangeToTableLine(functionalExchange, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65qdUEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._U4K64KdUEeuJhsj8yYqhhw/method._U4K65qdUEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKA6nNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKA6nNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKA6nNEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKAqnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKAqnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKAqnNEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBKnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBKnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBKnNEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBanNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBanNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..1c51207b --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBanNEeux98xBZ-sHgw.pt @@ -0,0 +1,10 @@ +<% +Collection referencedByCollection = CapellaClassServices.getReferencedBy(parameter, projectNameParameter, outputFolderParameter); +if(referencedByCollection.size() > 0 ) { + String title = "Referenced By"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="referencedByCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBqnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UFoKAKnNEeux98xBZ-sHgw/method._UFoKBqnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3gg6c2EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3gg6c2EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3gg6c2EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ggqc2EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ggqc2EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..4c21901f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ggqc2EeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.common.data.activity.OutputPin +org.eclipse.emf.common.util.EList +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghKc2EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghKc2EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghac2EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghac2EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..5d216487 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghac2EeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +EList outgoingPorts = parameter.getOutputs(); +if(outgoingPorts.size() > 0) { + String title = "Outgoing Functional Ports"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromEList" args="outgoingPorts:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghqc2EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UI3ggKc2EeuJhsj8yYqhhw/method._UI3ghqc2EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ck6nNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ck6nNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ck6nNEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ckqnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ckqnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0ckqnNEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clKnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clKnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clKnNEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clanNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clanNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..479fd7fd --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clanNEeux98xBZ-sHgw.pt @@ -0,0 +1,10 @@ +<% +Collection parameterOfCollection = CapellaClassServices.getParameterOf(parameter, projectNameParameter, outputFolderParameter); +if(parameterOfCollection.size() > 0 ) { + String title = "Parameter Of"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="parameterOfCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clqnNEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._UU0ckKnNEeux98xBZ-sHgw/method._UU0clqnNEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWE6dkEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWE6dkEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWE6dkEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWEqdkEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWEqdkEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..467cad30 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWEqdkEeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFKdkEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFKdkEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFKdkEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFadkEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFadkEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6b83203 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFadkEeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +Collection exploitingMissions = CapellaCapabilityHelper.INSTANCE.getExploitingMissions(projectNameParameter, outputFolderParameter, parameter); +if(exploitingMissions.size() > 0 ) { + String title = "Exploiting Missions"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="exploitingMissions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFqdkEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WSHWEKdkEeuJhsj8yYqhhw/method._WSHWFqdkEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCk6awEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCk6awEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCk6awEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCkqawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCkqawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..ed47d0ab --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRCkqawEeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClKawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClKawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClaawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClaawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..eddd76b0 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClaawEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%=StringUtil.stringListToBulette(parameterListParameter)%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClqawEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._WyRCkKawEeuJhsj8yYqhhw/method._WyRClqawEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDs70GEeC7JNoAKQ1P0g.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDs70GEeC7JNoAKQ1P0g.pt index 079172bd..e942fca7 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDs70GEeC7JNoAKQ1P0g.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDs70GEeC7JNoAKQ1P0g.pt @@ -1 +1,7 @@ -<%@ jet package="PACKAGE" class="CLASS" imports="org.eclipse.egf.common.helper.* java.util.* org.eclipse.emf.ecore.* org.eclipse.egf.model.pattern.* org.eclipse.egf.pattern.execution.* org.eclipse.egf.pattern.query.* org.polarsys.capella.docgen.util.StringUtil org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper org.polarsys.capella.core.data.ctx.Capability" %> \ No newline at end of file +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDtr0GEeC7JNoAKQ1P0g.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDtr0GEeC7JNoAKQ1P0g.pt index 2a166694..6685860f 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDtr0GEeC7JNoAKQ1P0g.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._bikDtr0GEeC7JNoAKQ1P0g.pt @@ -1,90 +1,12 @@ <% super.method_content(new StringBuffer(), ctx); -String projectName = ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); - - - -Collection exploitingMissions = CapellaCapabilityHelper.INSTANCE.getExploitingMissions(projectName, - outputFolder,(Capability) parameter); - - if(exploitingMissions.size() > 0) { %> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_ExploitingMissions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -

Exploiting Missions

-<%=StringUtil.stringListToBulette(exploitingMissions)%> - -<% -} -Collection actors = CapellaCapabilityHelper.INSTANCE.getInvolvedActors(projectName, - outputFolder,(Capability) parameter); - - if(actors.size() > 0) { -%> -

Involved Actors

-<%=StringUtil.stringListToBulette(actors)%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_InvolvedActors" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -Collection extendedCapabilities = CapellaCapabilityHelper.INSTANCE.getExtendedCapabilities(projectName, - outputFolder,(Capability) parameter); -Collection includedCapabilities = CapellaCapabilityHelper.INSTANCE.getIncludedCapabilities(projectName, - outputFolder,(Capability) parameter); -Collection superCapabilities = CapellaCapabilityHelper.INSTANCE.getParentCapabilities(projectName, - outputFolder,(Capability) parameter); - if((extendedCapabilities.size() > 0) || (includedCapabilities.size() > 0) || (superCapabilities.size() > 0)) { - %> -

Relationships with other Capabilities

-<% -} - if(extendedCapabilities.size() > 0) { -%> -

Extended Capabilities

-<%=StringUtil.stringListToBulette(extendedCapabilities)%> -<% - -} - - - - if(includedCapabilities.size() > 0) { -%> -

Included Capabilities

-<%=StringUtil.stringListToBulette(includedCapabilities)%> -<% - -} - - - - - if(superCapabilities.size() > 0) { -%> - -

Super

-<%=StringUtil.stringListToBulette(superCapabilities)%> - -<% -} -Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectName, - outputFolder,(Capability) parameter); - - if(involvedFunctions.size() > 0) { -%> -

Related Functions

-<%=StringUtil.stringListToBulette(involvedFunctions)%> -<% -} - -Collection availableModeAndState = CapellaCapabilityHelper.INSTANCE.getAvailableModeAndState(projectName, - outputFolder,(Capability) parameter); - - if(availableModeAndState.size() > 0) { -%> -

Modes and States

-<%=StringUtil.stringListToBulette(availableModeAndState)%> -<% -} -%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_RelationshipsWithOtherCapabilities" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_RelatedFunctions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.Capability_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._yiKgwKdjEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._yiKgwKdjEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2b4d8413 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._bikDsb0GEeC7JNoAKQ1P0g/method._yiKgwKdjEeuJhsj8yYqhhw.pt @@ -0,0 +1,5 @@ +<% +element = parameter; +projectName = ctx.getValue("projectName").toString(); +outputFolder = ctx.getValue("outputFolder").toString(); +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW06dWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW06dWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW06dWEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW0qdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW0qdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW0qdWEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1KdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1KdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..6200c268 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1KdWEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof OperationalActivity; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1adWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1adWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e7ab81a9 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1adWEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection outgoingInternalInteractions = CapellaFunctionServices.getOutgoingInternalFunctionalExchanges(parameter); +if(outgoingInternalInteractions.size() > 0) { + String title = "Outgoing Internal Interactions"; + Integer level = 2; + String[] columns = {"Interaction", "Involving Operational Processes", "Source", "Target", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange activityEdge : outgoingInternalInteractions) { +%> +<%=CapellaFunctionServices.externalInteractionToTableLine(activityEdge, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1qdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._cWDW0KdWEeuJhsj8yYqhhw/method._cWDW1qdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulw6g-Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulw6g-Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulw6g-Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulwqg-Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulwqg-Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..9ce71f9a --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulwqg-Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,13 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.capellacommon.Region +org.polarsys.capella.core.linkedtext.ui.CapellaEmbeddedLinkedTextEditorInput +org.polarsys.capella.core.data.capellacore.Constraint +org.polarsys.capella.core.data.capellacommon.StateTransition +org.polarsys.capella.docgen.util.StringUtil +org.polarsys.capella.common.data.behavior.AbstractEvent +org.eclipse.emf.common.util.EList +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxKg-Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxKg-Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..0f3942f7 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxKg-Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof Region; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxag-Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxag-Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..80ebe7eb --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxag-Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,74 @@ +<% +if (parameter.getOwnedTransitions() != null && parameter.getOwnedTransitions().size() > 0) { + String title = "Owned Transitions"; + Integer level = 2; + String[] columns = {"Transition", "Source", "Target", "Trigger", "Effect", "Description"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% + for (StateTransition transition : parameter.getOwnedTransitions()) { + String triggerName = ""; + EList triggers = transition.getTriggers(); + if (triggers != null && ! triggers.isEmpty()) { + triggerName = triggers.get(0).getName(); + for (int i = 1; i < triggers.size(); i++) { + triggerName += ", " + triggers.get(i).getName(); + } + } + + String guard = ""; + + // FIXME: (Old code) Keep until migration validation + //guard = ( transition.getGuard() != null && transition.getGuard().length() > 0 ? "["+transition.getGuard()+"]" : ""); + // New code + Constraint constraint = transition.getGuard(); + if (constraint != null && constraint.getName() != null) { + String guardName = CapellaEmbeddedLinkedTextEditorInput.getDefaultText(constraint); + guard = guardName != null ? "[" + guardName + "]" : ""; + } + + EList effects = transition.getEffect(); + String trans_effect = ""; + for (AbstractEvent abstractEvent : effects) { + trans_effect += abstractEvent.getName(); + if (effects.indexOf(abstractEvent) != effects.size()) { + trans_effect += ", "; + } + } + + if (! trans_effect.isEmpty() && effects.size() > 1) { + trans_effect = "(" + trans_effect + ")"; + } + + // String trans_effect = (transition.getEffect() != null ? transition.getEffect().getName() : ""); + + String trans_label = (triggerName.trim().length() > 0 ? triggerName : transition.getTriggerDescription()) + " " + guard+ + ( trans_effect.trim().length() > 0 ? " / " + trans_effect : ""); + + String trans_source = (transition.getSource() != null ? transition.getSource().getName() : ""); + + String trans_target = (transition.getTarget() != null ? transition.getTarget().getName() : ""); + + String trans_description = ""; + + if (transition instanceof StateTransition) { + StateTransition tt = (StateTransition) transition; + trans_description = tt.getDescription(); + trans_description = StringUtil.transformAREFString(transition, trans_description, projectNameParameter, outputFolderParameter); + } +%> + + <%=trans_label%> + <%=trans_source%> + <%=trans_target%> + <%=triggerName%> + <%=trans_effect%> + <%=trans_description%> + +<% }%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<%}%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxqg-Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._dyulwKg-Eeu7bOcPHGGhcQ/method._dyulxqg-Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeies6hFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeies6hFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeies6hFEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeiesqhFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeiesqhFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..aa4c00c8 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeiesqhFEeu7bOcPHGGhcQ.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.cs.PhysicalLinkCategory +org.polarsys.capella.docgen.util.CapellaCategoryServices +org.polarsys.capella.core.data.cs.PhysicalLink +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietKhFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietKhFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..84d29612 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietKhFEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof PhysicalLinkCategory; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietahFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietahFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..a0d0670f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietahFEeu7bOcPHGGhcQ.pt @@ -0,0 +1,17 @@ +<% +if (parameter.getLinks().size() > 0) { + String title = "Involved Physical Links"; + Integer level = 2; + String[] columns = {"Physical Link", "Source Component", "Target Component", "Description"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + for (PhysicalLink pl : parameter.getLinks()) { + %> + <%=CapellaCategoryServices.edgeToTableLine(pl, projectNameParameter, outputFolderParameter)%> + <% + } +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> +<%}%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietqhFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._eeiesKhFEeu7bOcPHGGhcQ/method._eeietqhFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYI6hDEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYI6hDEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYI6hDEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYIqhDEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYIqhDEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..09fc11c5 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYIqhDEeu7bOcPHGGhcQ.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.fa.ExchangeCategory +org.polarsys.capella.docgen.util.CapellaCategoryServices +org.polarsys.capella.core.data.fa.FunctionalExchange +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJKhDEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJKhDEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..0f10c98a --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJKhDEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof ExchangeCategory; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJahDEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJahDEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..c8ffba05 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJahDEeu7bOcPHGGhcQ.pt @@ -0,0 +1,17 @@ +<% +if (parameter.getExchanges().size() > 0) { + String title = "Involved Functional Exchanges"; + Integer level = 2; + String[] columns = {"Functional Exchange", "Source Function", "Target Function", "Description"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% + for (FunctionalExchange fe : parameter.getExchanges()) { + %> + <%=CapellaCategoryServices.edgeToTableLine(fe, projectNameParameter, outputFolderParameter)%> + <% + } +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> +<%}%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJqhDEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._g_mYIKhDEeu7bOcPHGGhcQ/method._g_mYJqhDEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfA6c3EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfA6c3EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfA6c3EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfAqc3EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfAqc3EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..ed47d0ab --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfAqc3EeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.StringUtil +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBKc3EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBKc3EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBac3EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBac3EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..f3824cad --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBac3EeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%=StringUtil.stringListToBulette(parameterListParameter, projectNameParameter, outputFolderParameter)%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBqc3EeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._iDNfAKc3EeuJhsj8yYqhhw/method._iDNfBqc3EeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ixj0MN0eEd-Vzvs7Wt1vzQ/method._5jqVAErlEeCvqtVx_IKrqA.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ixj0MN0eEd-Vzvs7Wt1vzQ/method._5jqVAErlEeCvqtVx_IKrqA.pt index 338558fd..664e0b9e 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ixj0MN0eEd-Vzvs7Wt1vzQ/method._5jqVAErlEeCvqtVx_IKrqA.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ixj0MN0eEd-Vzvs7Wt1vzQ/method._5jqVAErlEeCvqtVx_IKrqA.pt @@ -1,2 +1,2 @@ -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:element"%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.foundations.CapellaElementEndContentDocGen" args="element:parameter"%> <% super.method_endContent(new StringBuffer(), ctx); %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_U6doEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_U6doEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_U6doEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_UqdoEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_UqdoEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..467cad30 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_UqdoEeuJhsj8yYqhhw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VKdoEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VKdoEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VKdoEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VadoEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VadoEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..abec3440 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VadoEeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +Collection actors = CapellaCapabilityHelper.INSTANCE.getInvolvedActors(projectNameParameter, outputFolderParameter, parameter); +if(actors.size() > 0 ) { + String title = "Involved Actors"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="actors:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VqdoEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._mkc_UKdoEeuJhsj8yYqhhw/method._mkc_VqdoEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._VgI9AKnJEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._VgI9AKnJEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..c011ac10 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._VgI9AKnJEeux98xBZ-sHgw.pt @@ -0,0 +1,5 @@ +<% +super.method_setCapellaContext(new StringBuffer(), ctx); +projectName = ctx.getValue("projectName").toString(); +outputFolder = ctx.getValue("outputFolder").toString(); +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._nJ840js5EeCgH6PBi_KPBw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._nJ840js5EeCgH6PBi_KPBw.pt index a892efac..138775a8 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._nJ840js5EeCgH6PBi_KPBw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._nJ840js5EeCgH6PBi_KPBw.pt @@ -1 +1,9 @@ -<%@ jet package="PACKAGE" class="CLASS" imports="org.eclipse.egf.common.helper.* java.util.* org.eclipse.emf.ecore.* org.eclipse.egf.model.pattern.* org.eclipse.egf.pattern.execution.* org.eclipse.egf.pattern.query.* java.util.Collection org.polarsys.capella.docgen.util.CapellaClassServices org.polarsys.capella.docgen.util.CapellaServices org.polarsys.capella.docgen.util.StringUtil org.polarsys.capella.core.data.capellacore.VisibilityKind org.polarsys.capella.core.data.information.Class" %> \ No newline at end of file +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* + org.polarsys.capella.docgen.util.CapellaServices + org.polarsys.capella.core.data.capellacore.VisibilityKind + org.polarsys.capella.core.data.information.Class + " %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._t55ioDs5EeCgH6PBi_KPBw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._t55ioDs5EeCgH6PBi_KPBw.pt index 4528d547..6fa44555 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._t55ioDs5EeCgH6PBi_KPBw.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._nJ840Ds5EeCgH6PBi_KPBw/method._t55ioDs5EeCgH6PBi_KPBw.pt @@ -1,66 +1,18 @@ -<% super.method_content(new StringBuffer(), ctx); -String projectName= ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); +<% super.method_content(new StringBuffer(), ctx); %> -<% if(CapellaClassServices.getClassFeatures(element).size() >= 1){%> -
-<%String features = "Features";%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,features:property"%> -<%= StringUtil.stringListToBulette(CapellaClassServices.getClassFeatures(element)) %> -
-<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Features" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -<% if(CapellaClassServices.getClassRealizeInformation(element).size() >= 1){%> -
-<%String realisation = "Realisation";%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,realisation:property"%> -<%= StringUtil.stringListToBulette(CapellaClassServices.getClassRealizeInformation(element)) %> -
-<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Realisation" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -<% -Collection propertiesCollection = CapellaClassServices.getClassProperties(element, projectName, outputFolder); -if(propertiesCollection.size() >= 1){%> -
-<%String properties = "Properties";%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,properties:property"%> -<%= StringUtil.stringListToBulette(propertiesCollection) %> -
-<%}%> - - <% if(CapellaClassServices.getClassOperation(element).size() > 0){%> -
-<%String operation = "Operations";%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,operation:property"%> -<%= StringUtil.stringListToBulette(CapellaClassServices.getClassOperation(element)) %> -
-<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Properties" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -<% -Collection dataValuesCollection = CapellaClassServices.getClassDataValues(element, projectName, outputFolder); -if(dataValuesCollection.size() >= 1){%> -
-<%String dataValue = "Data Values";%> -<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.kitalpha.doc.gen.business.core/egf/HTMLDocGenCommon.fcore#LogicalName=org.polarsys.kitalpha.doc.gen.business.core.generic.ElementGenerateByPropterty" args="element:eObject,dataValue:property"%> -<%= StringUtil.stringListToBulette(dataValuesCollection) %> -
-<%}%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_Operations" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -<%Collection partofCollection = CapellaClassServices.getPartOf((Class)element, projectName, outputFolder); -if(partofCollection.size() > 0){%> -

Part Of

-<%= StringUtil.stringListToBulette(partofCollection) %> -<%} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_DataValues" args="element:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -Collection referencedByCollection = CapellaClassServices.getReferencedBy((Class)element, projectName, outputFolder); -if(referencedByCollection.size() > 0){%> -

Referenced By

-<%= StringUtil.stringListToBulette(referencedByCollection) %> -<%} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_PartOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -Collection parameterOfCollection = CapellaClassServices.getParameterOf((Class)element, projectName, outputFolder); -if(parameterOfCollection.size() > 0){%> -

Parameter Of

-<%= StringUtil.stringListToBulette(parameterOfCollection) %> -<%}%> \ No newline at end of file +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ReferencedBy" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.classes.Class_ParameterOf" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU86ctEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU86ctEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU86ctEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU8qctEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU8qctEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..7b59e5c9 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU8qctEeuJhsj8yYqhhw.pt @@ -0,0 +1,7 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9KctEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9KctEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9actEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9actEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..414f8ac9 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9actEeuJhsj8yYqhhw.pt @@ -0,0 +1,10 @@ +<% +Collection allocatingComponents = FunctionHelper.getAllocatingComponents(projectNameParameter, outputFolderParameter, parameter); +if(allocatingComponents.size() > 0 ) { + String title = "Allocating Component"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocatingComponents:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9qctEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._p_FU8KctEeuJhsj8yYqhhw/method._p_FU9qctEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdA445EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdA445EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdA445EeuxdbbVGtbmsw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdAo45EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdAo45EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..239bfb99 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdAo45EeuxdbbVGtbmsw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper +org.polarsys.capella.core.data.oa.OperationalActivity +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBI45EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBI45EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..6200c268 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBI45EeuxdbbVGtbmsw.pt @@ -0,0 +1 @@ +return parameter instanceof OperationalActivity; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBY45EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBY45EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..3139be62 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBY45EeuxdbbVGtbmsw.pt @@ -0,0 +1,10 @@ +<% +Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectNameParameter, outputFolderParameter, parameter); +if(involvingFunctionalChains.size() > 0 ) { + String title = "Involving Operational Processes"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvingFunctionalChains:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBo45EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._ptIdAI45EeuxdbbVGtbmsw/method._ptIdBo45EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGk6nUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGk6nUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGk6nUEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGkqnUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGkqnUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGkqnUEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlKnUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlKnUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlKnUEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlanUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlanUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..24d62205 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlanUEeux98xBZ-sHgw.pt @@ -0,0 +1,13 @@ +<% +Collection features = CapellaClassServices.getClassFeatures(parameter); +if(features.size() > 0) { + String title = "Features"; + Integer level = 2; + String structuralFeatureName = title; +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollectionWithDescriptionFromStructuralFeature" args="features:parameterListParameter, parameter:parameter, structuralFeatureName:structuralFeatureNameParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlqnUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._q7iGkKnUEeux98xBZ-sHgw/method._q7iGlqnUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNA6gGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNA6gGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNA6gGEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNAqgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNAqgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..28f3edb6 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNAqgGEeu7bOcPHGGhcQ.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.la.CapabilityRealization +org.polarsys.capella.docgen.util.pattern.helper.CapellaCapabilityHelper +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBKgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBKgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..1ea8c6db --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBKgGEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof CapabilityRealization; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBagGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBagGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..3d1cebe1 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBagGEeu7bOcPHGGhcQ.pt @@ -0,0 +1,10 @@ +<% +Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectNameParameter, outputFolderParameter, parameter); +if(involvedFunctions.size() > 0) { + String title = "Related Functions"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvedFunctions:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBqgGEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qAQNAKgGEeu7bOcPHGGhcQ/method._qAQNBqgGEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fg440EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fg440EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fg440EeuxdbbVGtbmsw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fgo40EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fgo40EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..239bfb99 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fgo40EeuxdbbVGtbmsw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.pattern.helper.FunctionHelper +org.polarsys.capella.core.data.oa.OperationalActivity +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhI40EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhI40EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..eeecfe2f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhI40EeuxdbbVGtbmsw.pt @@ -0,0 +1 @@ +return !(parameter instanceof OperationalActivity); \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhY40EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhY40EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..86a947c0 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2FhY40EeuxdbbVGtbmsw.pt @@ -0,0 +1,10 @@ +<% +Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectNameParameter, outputFolderParameter, parameter); +if(involvingFunctionalChains.size() > 0 ) { + String title = "Involving Functional Chains"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="involvingFunctionalChains:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fho40EeuxdbbVGtbmsw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qm2FgI40EeuxdbbVGtbmsw/method._qm2Fho40EeuxdbbVGtbmsw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._-5bQwKgFEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._-5bQwKgFEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..2b4d8413 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._-5bQwKgFEeu7bOcPHGGhcQ.pt @@ -0,0 +1,5 @@ +<% +element = parameter; +projectName = ctx.getValue("projectName").toString(); +outputFolder = ctx.getValue("outputFolder").toString(); +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._qz8z9r3TEeCFqqET0yrG_w.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._qz8z9r3TEeCFqqET0yrG_w.pt index 13082ab2..17cc9b40 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._qz8z9r3TEeCFqqET0yrG_w.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._qz8z8b3TEeCFqqET0yrG_w/method._qz8z9r3TEeCFqqET0yrG_w.pt @@ -1,24 +1,6 @@ <% -super.method_content(new StringBuffer(), ctx); -String projectName = ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); -Collection involvedComponent = CapellaCapabilityHelper.INSTANCE.getInvolvedComponent(projectName, - outputFolder,(CapabilityRealization) parameter); - - if(involvedComponent.size() > 0) { +super.method_content(new StringBuffer(), ctx); %> -

Involved Components

-<%=StringUtil.stringListToBulette(involvedComponent)%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.CapabilityRealization_InvolvedComponents" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> -Collection involvedFunctions = CapellaCapabilityHelper.INSTANCE.getInvolvedFunctions(projectName, - outputFolder,(CapabilityRealization) parameter); - - if(involvedFunctions.size() > 0) { -%> -

Related Functions

-<%=StringUtil.stringListToBulette(involvedFunctions)%> -<% -} -%> \ No newline at end of file +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.capability.CapabilityRealization_RelatedFunctions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNo6g9Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNo6g9Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNo6g9Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNoqg9Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNoqg9Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..a3f2cfea --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNoqg9Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.pattern.helper.RegionHelper +org.polarsys.capella.core.data.capellacommon.Region +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpKg9Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpKg9Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..0f3942f7 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpKg9Eeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof Region; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpag9Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpag9Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..a7785981 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpag9Eeu7bOcPHGGhcQ.pt @@ -0,0 +1,10 @@ +<% +Collection states = RegionHelper.getState(projectNameParameter, outputFolderParameter, parameter); +if(states.size() > 0) { + String title = "Modes and States"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="states:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpqg9Eeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._stiNoKg9Eeu7bOcPHGGhcQ/method._stiNpqg9Eeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEc6dWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEc6dWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEc6dWEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEcqdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEcqdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEcqdWEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdKdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdKdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..6200c268 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdKdWEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return parameter instanceof OperationalActivity; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdadWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdadWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..28a32d89 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdadWEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection incomingInteractions = CapellaFunctionServices.getIncomingFunctionalExchanges(parameter); +if(incomingInteractions.size() > 0) { + String title = "Incoming Interactions"; + Integer level = 2; + String[] columns = {"Interaction", "Source", "Description", "Allocated Exchange Items"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange activityEdge : incomingInteractions) { +%> +<%=CapellaFunctionServices.incomingInteractionToTableLine(activityEdge, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdqdWEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xJyEcKdWEeuJhsj8yYqhhw/method._xJyEdqdWEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4Y6dTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4Y6dTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4Y6dTEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4YqdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4YqdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..724f611e --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4YqdTEeuJhsj8yYqhhw.pt @@ -0,0 +1,9 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.oa.OperationalActivity +org.polarsys.capella.core.data.fa.FunctionalExchange +org.polarsys.capella.docgen.util.CapellaFunctionServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZKdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZKdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..eeecfe2f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZKdTEeuJhsj8yYqhhw.pt @@ -0,0 +1 @@ +return !(parameter instanceof OperationalActivity); \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZadTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZadTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..8fefaad1 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZadTEeuJhsj8yYqhhw.pt @@ -0,0 +1,23 @@ +<% +Collection incomingFunctionalExchanges = CapellaFunctionServices.getIncomingFunctionalExchanges(parameter); +if(incomingFunctionalExchanges.size() > 0) { + String title = "Incoming Functional Exchanges"; + Integer level = 2; + String[] columns = {"Exchange", "Involving functional chains", "Allocating component Exchanges", "Distant Port", "Source", "Description", "Allocated Exchange Items", "Realized Functional Exchange", "Realizing Functional Exchange"}; + Collection tableColumnList = Arrays.asList(columns); +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableHeaderFromListColumn" args="tableColumnList:tableColumnsListParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> + +<% +for(FunctionalExchange functionalExchange : incomingFunctionalExchanges) { +%> +<%=CapellaFunctionServices.incomingFunctionalExchangeToTableLine(functionalExchange, projectNameParameter, outputFolderParameter)%> +<% +} +%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.TableFooter"%> + +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZqdTEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._xOS4YKdTEeuJhsj8yYqhhw/method._xOS4ZqdTEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._t_b7gKaqEeuJhsj8yYqhhw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._t_b7gKaqEeuJhsj8yYqhhw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_Lwd2wiEeCUvpJOFjr3FQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_Lwd2wiEeCUvpJOFjr3FQ.pt index 57ebe5b4..0bcf9d1a 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_Lwd2wiEeCUvpJOFjr3FQ.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_Lwd2wiEeCUvpJOFjr3FQ.pt @@ -1,238 +1,30 @@ <% super.method_content(new StringBuffer(), ctx); -String elementName = EscapeChars.forHTML(CapellaLabelProviderHelper.getText(element)); -String elementType = EscapeChars.forHTML(element.eClass().getName()); -String projectName= ctx.getValue("projectName").toString(); -String outputFolder = ctx.getValue("outputFolder").toString(); - -Collection involvingFunctionalChains = FunctionHelper.getInvolvingFunctionalChains(projectName, outputFolder, (AbstractFunction)element); -if(involvingFunctionalChains.size() > 0 ) { - if (!(element instanceof OperationalActivity)) { -%> -

Involving Functional Chains

-<% - } else { - %> -

Involving Operational Processes

-<% -} %> -<%=StringUtil.stringListToBulette(involvingFunctionalChains)%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_InvolvingFunctionalChains" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -Collection allocatingComponents = FunctionHelper.getAllocatingComponents(projectName, outputFolder, (AbstractFunction)element); -if(allocatingComponents.size() > 0 ) { -%> -

Allocating Component

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_InvolvingOperationalProcesses" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -<%=StringUtil.stringListToBulette(allocatingComponents)%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_AllocatingComponents" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -EList incomingPorts = ((AbstractFunction) element).getInputs(); -if(incomingPorts.size() > 0) { -%> -

Incoming Functional Ports

-<%=StringUtil.stringListToBulette(incomingPorts, projectName, outputFolder)%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingFunctionalPorts" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingFunctionalPorts" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -EList outgoingPorts = ((AbstractFunction) element).getOutputs(); -if(outgoingPorts.size() > 0) { -%> -

Outgoing Functional Ports

-<%=StringUtil.stringListToBulette(outgoingPorts, projectName, outputFolder)%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInternalFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -<% -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInternalFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -if(!(element instanceof OperationalActivity)) { -Collection incomingInternalFunctionalExchanges = CapellaFunctionServices.getIncomingInternalFunctionalExchanges((AbstractFunction)element); -if(incomingInternalFunctionalExchanges.size() > 0) { -%> -

Incoming Internal Functional Exchanges

- - - - - - - - - - - - - - - -<% for(FunctionalExchange functionalExchange : incomingInternalFunctionalExchanges) {%> - <%=CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, projectName, outputFolder)%> -<% }%> -
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
- <% -} -Collection outgoingInternalFunctionalExchanges = CapellaFunctionServices.getOutgoingInternalFunctionalExchanges((AbstractFunction)element); -if(outgoingInternalFunctionalExchanges.size() > 0) { -%> -

Outgoing Internal Functional Exchanges

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> - - - - - - - - - - - - - -<% for(FunctionalExchange functionalExchange : outgoingInternalFunctionalExchanges) {%> - <%=CapellaFunctionServices.externalFunctionalExchangeToTableLine(functionalExchange, projectName, outputFolder)%> -<% }%> -
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
- <% -} - Collection incomingFunctionalExchanges = CapellaFunctionServices.getIncomingFunctionalExchanges((AbstractFunction) element); - if (incomingFunctionalExchanges.size() > 0) { -%> -

Incoming Functional Exchanges

- - - - - - - - - - - - -<% for(FunctionalExchange ae : incomingFunctionalExchanges) {%> - <%=CapellaFunctionServices.incomingFunctionalExchangeToTableLine(ae, projectName, outputFolder)%> -<% }%> -
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortSourceDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
-<% - } +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingFunctionalExchanges" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> - Collection outgoingFunctionalExchanges = CapellaFunctionServices.getOutgoingFunctionalExchanges((AbstractFunction) element); - if (outgoingFunctionalExchanges.size() > 0) { -%> -

Outgoing Functional Exchanges

- - - - - - - - - - - - -<% for(FunctionalExchange ae : outgoingFunctionalExchanges) {%> - <%=CapellaFunctionServices.outgoingFunctionalExchangeToTableLine(ae, projectName, outputFolder)%> -<% }%> -
ExchangeInvolving functional chainsAllocating component ExchangesDistant PortTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
-<% -} -} else { -Collection incomingInternalInteractions = CapellaFunctionServices.getIncomingInternalFunctionalExchanges((AbstractFunction)element); -if(incomingInternalInteractions.size() > 0) { -%> -

Incoming Internal Interactions

- - - - - - - - - - - - -<% for(FunctionalExchange activityEdge : incomingInternalInteractions) {%> - <%=CapellaFunctionServices.externalInteractionToTableLine(activityEdge, projectName, outputFolder)%> -<% }%> -
InteractionInvolving Operational ProcessesSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
- <% -} -Collection outgoingInternalInteractions = CapellaFunctionServices.getOutgoingInternalFunctionalExchanges((AbstractFunction)element); -if(outgoingInternalInteractions.size() > 0) { -%> -

Outgoing Internal Interactions

+<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInternalInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> - - - - - - - - - - - -<% for(FunctionalExchange activityEdge : outgoingInternalInteractions) {%> - <%=CapellaFunctionServices.externalInteractionToTableLine(activityEdge, projectName, outputFolder)%> -<% }%> -
InteractionInvolving Operational ProcessesSourceTargetDescriptionAllocated Exchange ItemsRealized Functional ExchangeRealizing Functional Exchange
- <% -} - - Collection incomingInteractions = CapellaFunctionServices.getIncomingFunctionalExchanges((AbstractFunction) element); - if (incomingInteractions.size() > 0) { -%> -

Incoming Interactions

- - - - - - - -<% for(FunctionalExchange ae : incomingInteractions) {%> - <%=CapellaFunctionServices.incomingInteractionToTableLine(ae, projectName, outputFolder)%> -<% }%> -
InteractionSourceDescriptionAllocated Exchange Items
-<% - } +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInternalInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> - Collection outgoingInteractions = CapellaFunctionServices.getOutgoingFunctionalExchanges((AbstractFunction) element); - if (outgoingInteractions.size() > 0) { -%> -

Outgoing Interactions

- - - - - - - -<% for(FunctionalExchange ae : outgoingInteractions) {%> - <%=CapellaFunctionServices.outgoingInteractionToTableLine(ae, projectName, outputFolder)%> -<% }%> -
InteractionTargetDescriptionAllocated Exchange Items
-<% -} -} +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_IncomingInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> -Collection availableModeAndState = CapellaFunctionServices.getAvailableModeAndState(projectName, - outputFolder, (AbstractFunction)element); - - if(availableModeAndState.size() > 0) { -%> -

Modes and States

-<%=StringUtil.stringListToBulette(availableModeAndState)%> -<% -} -%> \ No newline at end of file +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_OutgoingInteractions" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> + +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.abstractfunction.AbstractFunction_ModesAndStates" args="parameter:parameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, elementName:elementNameParameter, elementType:elementTypeParameter"%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_LwdmwiEeCUvpJOFjr3FQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_LwdmwiEeCUvpJOFjr3FQ.pt index f14df990..32e8d2db 100644 --- a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_LwdmwiEeCUvpJOFjr3FQ.pt +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._x_LwcGwiEeCUvpJOFjr3FQ/method._x_LwdmwiEeCUvpJOFjr3FQ.pt @@ -1,3 +1,7 @@ <% element = parameter; + elementName = EscapeChars.forHTML(CapellaLabelProviderHelper.getText(element)); + elementType = EscapeChars.forHTML(element.eClass().getName()); + projectName= ctx.getValue("projectName").toString(); + outputFolder = ctx.getValue("outputFolder").toString(); %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS46gKEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS46gKEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS46gKEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS4qgKEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS4qgKEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..be3e1d8b --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS4qgKEeu7bOcPHGGhcQ.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.capellacore.CapellaElement +org.polarsys.capella.docgen.util.CapellaElementService +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5KgKEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5KgKEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..ad5241e2 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5KgKEeu7bOcPHGGhcQ.pt @@ -0,0 +1 @@ +return parameter instanceof CapellaElement; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5agKEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5agKEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..d7272334 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5agKEeu7bOcPHGGhcQ.pt @@ -0,0 +1,12 @@ +<% +String outputFolder = ctx.getValue("outputFolder").toString(); +String projectName = ctx.getValue("projectName").toString(); +Collection allocations = CapellaElementService.getOutGoingAllocation(parameter, projectName, outputFolder); +if(allocations.size() > 0) { + String title = "Realized Elements"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="allocations:parameterListParameter, projectName:projectNameParameter, outputFolder:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5qgKEeu7bOcPHGGhcQ.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._yfHS4KgKEeu7bOcPHGGhcQ/method._yfHS5qgKEeu7bOcPHGGhcQ.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._Zaht8KnUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._Zaht8KnUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..bacb4600 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._Zaht8KnUEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._aOxOUKnUEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._aOxOUKnUEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..7f5eaa32 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._aOxOUKnUEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +
\ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h2G6gKnREeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h2G6gKnREeux98xBZ-sHgw.pt new file mode 100644 index 00000000..ad1a2e37 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h2G6gKnREeux98xBZ-sHgw.pt @@ -0,0 +1,15 @@ +

+<% +EClass eClass = parameter.eClass(); +EStructuralFeature eStructuralFeature = eClass.getEStructuralFeature(structuralFeatureNameParameter); +if (eStructuralFeature != null) { + Object value = parameter.eGet(eStructuralFeature); + String description = null; + if (value != null && value.toString().length() > 0) { + description = value.toString(); + } else { + description = "No " + structuralFeatureNameParameter; + }%> +<%=EscapeChars.replaceSpecialCharacters(description)%> +<%}%> +

\ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h8ouYKnTEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h8ouYKnTEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..47ca558f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._h8ouYKnTEeux98xBZ-sHgw.pt @@ -0,0 +1,7 @@ +<% +if (sectionTitleParameter == null) { + sectionTitleParameter = Character.toString(structuralFeatureNameParameter.charAt(0)).toUpperCase() + structuralFeatureNameParameter.substring(1); +} +super.method_title(new StringBuffer(), ctx); +%> +

\ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYI6nQEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYI6nQEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYI6nQEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYIqnQEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYIqnQEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..ffa70f5a --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYIqnQEeux98xBZ-sHgw.pt @@ -0,0 +1,10 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.docgen.util.StringUtil +org.eclipse.emf.ecore.EClass +org.eclipse.emf.ecore.EStructuralFeature +org.polarsys.kitalpha.doc.gen.business.core.util.EscapeChars +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJKnQEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJKnQEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJanQEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJanQEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..eddd76b0 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJanQEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%=StringUtil.stringListToBulette(parameterListParameter)%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJqnQEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zBOYIKnQEeux98xBZ-sHgw/method._zBOYJqnQEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cc6nMEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cc6nMEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..d6300533 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cc6nMEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +<%// add initialisation of the pattern variables (declaration has been already done).%> diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6ccqnMEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6ccqnMEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2451aa9f --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6ccqnMEeux98xBZ-sHgw.pt @@ -0,0 +1,8 @@ +<%@ jet package="PACKAGE" class="CLASS" imports=" +java.util.* +org.eclipse.egf.model.pattern.* +org.eclipse.egf.pattern.execution.* +org.eclipse.egf.pattern.query.* +org.polarsys.capella.core.data.ctx.Capability +org.polarsys.capella.docgen.util.CapellaClassServices +" %> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdKnMEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdKnMEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..2e42d253 --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdKnMEeux98xBZ-sHgw.pt @@ -0,0 +1 @@ +return parameter instanceof Capability; \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdanMEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdanMEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..313bd4ce --- /dev/null +++ b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdanMEeux98xBZ-sHgw.pt @@ -0,0 +1,10 @@ +<% +Collection partofCollection = CapellaClassServices.getPartOf(parameter, projectNameParameter, outputFolderParameter); +if(partofCollection.size() > 0 ) { + String title = "Part Of"; + Integer level = 2; +%> +<%@ egf:patternCall patternId="platform:/plugin/org.polarsys.capella.docgen/egf/HTMLDocGenCapella.fcore#LogicalName=org.polarsys.capella.docgen.sections.display.BuletteListFromStringCollection" args="partofCollection:parameterListParameter, projectNameParameter:projectNameParameter, outputFolderParameter:outputFolderParameter, title:sectionTitleParameter, level:sectionLevelParameter"%> +<% +} +%> \ No newline at end of file diff --git a/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdqnMEeux98xBZ-sHgw.pt b/docgenhtml/plugins/org.polarsys.capella.docgen/templates/pattern._zK6ccKnMEeux98xBZ-sHgw/method._zK6cdqnMEeux98xBZ-sHgw.pt new file mode 100644 index 00000000..e69de29b diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/.classpath b/tests/plugins/org.polarsys.capella.docgen.test.ju/.classpath new file mode 100644 index 00000000..edea0ff6 --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/.classpath @@ -0,0 +1,11 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/.project b/tests/plugins/org.polarsys.capella.docgen.test.ju/.project new file mode 100644 index 00000000..fb3ddcdc --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/.project @@ -0,0 +1,28 @@ + + + org.polarsys.capella.docgen.test.ju + + + + + + org.eclipse.jdt.core.javabuilder + + + + + org.eclipse.pde.ManifestBuilder + + + + + org.eclipse.pde.SchemaBuilder + + + + + + org.eclipse.pde.PluginNature + org.eclipse.jdt.core.javanature + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.afm b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.afm new file mode 100644 index 00000000..c0588abe --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.afm @@ -0,0 +1,4 @@ + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.aird b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.aird new file mode 100644 index 00000000..b5db0f15 --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.aird @@ -0,0 +1,1595 @@ + + + + TEST_AbstractFunction.afm + TEST_AbstractFunction.capella + + + + + + + + + + + + + + +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + + + strokeColor + size + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + + + strokeColor + size + routingStyle + + + + + + + + + + + + routingStyle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + borderColor + borderSize + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + + + strokeColor + size + + + + + + + + + + + + strokeColor + size + routingStyle + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + + routingStyle + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + borderColor + borderSize + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + borderColor + borderSize + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + borderColor + borderSize + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + strokeColor + size + + + + + + + + + + + + strokeColor + size + routingStyle + + + + + + + + + + + + routingStyle + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + color + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.capella b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.capella new file mode 100644 index 00000000..7cdb3c12 --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_AbstractFunction/TEST_AbstractFunction.capella @@ -0,0 +1,564 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.afm b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.afm new file mode 100644 index 00000000..8ba8d53f --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.afm @@ -0,0 +1,4 @@ + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.aird b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.aird new file mode 100644 index 00000000..8dc419f2 --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.aird @@ -0,0 +1,1493 @@ + + + + TEST_Capability.afm + TEST_Capability.capella + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + KEEP_LOCATION + KEEP_RATIO + KEEP_SIZE + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + borderColor + borderSize + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + borderColor + borderSize + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + strokeColor + size + + + + + + + + + + + + strokeColor + size + + + + + + + + + + + + color + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + KEEP_LOCATION + KEEP_SIZE + KEEP_RATIO + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.capella b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.capella new file mode 100644 index 00000000..31312748 --- /dev/null +++ b/tests/plugins/org.polarsys.capella.docgen.test.ju/model/TEST_Capability/TEST_Capability.capella @@ -0,0 +1,869 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/plugins/org.polarsys.capella.docgen.test.ju/src/.gitkeep b/tests/plugins/org.polarsys.capella.docgen.test.ju/src/.gitkeep new file mode 100644 index 00000000..e69de29b