All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cdc.mf.html.templates.mf-puml.stg Maven / Gradle / Ivy

There is a newer version: 0.41.0
Show newest version
delimiters "<", ">"

noName() ::= "?"


visibilityMap ::= [
   "PUBLIC":"+",
   "PROTECTED":"#",
   "PACKAGE":"~",
   "PRIVATE":"-",
   default:""
]

severityFGMap ::= [
   "INFO":"infoFG",
   "MINOR":"minorFG",
   "MAJOR":"majorFG",
   "CRITICAL":"criticalFG",
   "BLOCKER":"blockerFG",
   default:""
]


severityBGMap ::= [
   "INFO":"infoBG",
   "MINOR":"minorBG",
   "MAJOR":"majorBG",
   "CRITICAL":"criticalBG",
   "BLOCKER":"blockerBG",
   default:""
]


generateModelOverviewImage(model) ::= <<


}; separator="\n">
}; separator="\n">


>>

generatePackageOverviewImage(package, ltor=false) ::= <<


package "" as   {
   ' sub packages
   }; separator="\n">
   
   ' external types
   
   };separator="\n">

   ' internal types
   };separator="\n">
   };separator="\n">
   };separator="\n">
   
   ' constraints
   

   ' inheritance
   };separator="\n">
   
      };separator="\n">
   
      };separator="\n">
   
   
   ' connectors
   };separator="\n">

   ' constraints links
   
   
   ' layout links
   }; separator="\n">
}


>>

generateTypeOverviewImage(type, ltor=false) ::= <<


' related types
};separator="\n">

' type


' inherits



' inherited


' connectors


' reversed connectors



>>


addPumlHeader(ltor = false) ::= <<
@startuml

!$fontname = "Arial"

' font size
!$titleFS = "12"
!$memberFS = "10"
!$stereotypeFS = "10"

' foreground / font color
!$extFG = "999999"
!$stereotypeFG = "blue"
!$constraintFG = "CC0000"
!$cardinalityFG = "FFAA00"
!$issuesFG = "FF2200"
!$infoFG = "498508"
!$infoBG = "D4FAAB"
!$minorFG = "AEA100"
!$minorBG = "FCF599"
!$majorFG = "B27300"
!$majorBG = "FFDB99"
!$criticalFG = "BF3E00"
!$criticalBG = "FFC3A6"
!$blockerFG = "9A1400"
!$blockerBG = "F1A599"


' background color
!$extBG = "FFFFFF"
!$constraintBG = "FFCCCC"

scale max 2000*2000
hide empty members
hide circle
'hide stereotype

skinparam wrapWidth 500
skinparam svgLinkTarget _parent

skinparam shadowing truefalse
skinparam monochrome falsetrue
'left to right direction

' Use file for notes to always use dashed lines
skinparam file {
   FontName $fontname
   BackgroundColor FFFFDD
}
' Order of declaration of parameters matters!
skinparam class {
   AttributeFontName $fontname
   AttributeFontSize $memberFS
   FontName $fontname
   FontSize $titleFS
   StereotypeFontStyle normal
   StereotypeFontName $fontname
   StereotypeFontSize $stereotypeFS
   StereotypeFontColor $stereotypeFG
}
skinparam package {
   FontName $fontname
   FontSize $titleFS
   StereotypeFontStyle normal
   StereotypeFontName $fontname
   StereotypeFontSize $stereotypeFS
   StereotypeFontColor $stereotypeFG
}
skinparam arrow {
   FontName $fontname
   FontSize $memberFS
   StereotypeFontName $fontname
   StereotypeFontSize $stereotypeFS
}

skinparam nodesep 5
skinparam ranksep 40

skinparam nodesep 10
skinparam ranksep 40


>>

addPumlFooter() ::= <<
@enduml
>>


addModelOverviewPackage(package) ::= <<
package "" as   {
   }; separator="\n">
}
>>

addModelOverviewDependencies(package) ::= <<

' 
 ..\> }; separator="\n">
>>


checkEmptyPackage(package) ::= <%

rectangle " " as empty #00000000;line:00000000

%>

addPackage(package, upPath) ::= <<
package "" as    {
}
>>

addType(type, upPath, external=false, inheritance=true) ::= <%


<\ >
"****" as 

<\ >


   <\ >
   #$extBG;line:$extFG;text:$extFG

<\ >
{
<\n>
}
%>

addDetailedType(type, upPath) ::= <<
 "****\n" as   {
   
   
   
      
   
}
>>


addProperties(type, upPath) ::= <<
}; separator="\n">
>>

addProperty(property, upPath) ::= <<
<\\>
<\\>
<\\>
<\\>
 : <\\>
<\\>
<\\>
<\\>
 <\\>

>>

addOperations(type, upPath) ::= <<
}; separator="\n">
>>

addOperation(operation, upPath) ::= <<
<\\>
<\\>
<\\>
<\\>
<\\>
()<\\>
<\ >
>>

addOperationSignatureParameters(operation) ::= <<
}; separator=", ">
>>

addOperationReturnParameters(operation) ::= <<
<\\>
<\ >: }; separator=", "><\\>

>>


addEnumerationValues(type, upPath) ::= <<
}; separator="\n">
>>

addEnumerationValue(value, upPath) ::= <<
  
>>

addRef(ref, suffix, upPath) ::= <%

   
      \\ 
   
       
   

   

   

   

%>

addNakedRef(ref) ::= <%

   
      \\
   
      
   

   

   

   

%>


addDefault(item) ::= " = " 
addAbstractMember(item) ::= "{abstract}"
addVisibility(item) ::= ""
addStatic(item) ::= "{static}"
addCardinality(item) ::= " \[]\"
addIssuesIcon(item) ::= "\>\>⚠\\ "

addMemberStereotypes(item) ::= <%

   <\ >
   \\<\<>>\\}; separator=" ">
   <\ >

%>

addStereotypes(item) ::= <%

   <\ >
   >>}; separator=", ">

%>

addMemberConstraints(item) ::= <%

   <\ >
   {\\\\\}\}; separator=" ">

%>

addBlockConstraints(item) ::= <<

}; separator="\n">

>>

addBlockConstraint(constraint) ::= <<

file  #$constraintBG [
   \{\\\\\}\
]

note as 
   {\\\\\}
end note

>>


addBlockConstraintsLinks(item) ::= <<

}; separator="\n">

>>

addBlockConstraintLinks(constraint) ::= <<
 .. }; separator="\n">
>>

addExtendsLinks(type) ::= <<
 -up-|> }; separator="\n">
>>

addImplementsLinks(type) ::= <%

    .up.|> }; separator="\n">

%>

addInternalImplementsLinks(type) ::= <%

    .up.|> }; separator="\n">

%>

addExtendedLinks(type) ::= <<
 -up-|>  #$extBG;line:$extFG;text:$extFG}; separator="\n">
>>

addImplementedLinks(type) ::= <%
 .up.|>  #$extBG;line:$extFG;text:$extFG}; separator="\n">
%>


addConnectors(type, wrap) ::= <%

   
      }; separator="\n">
   
      }; separator="\n">
   

%>

addReversedConnectors(type) ::= <%

   };separator="\n">

%>

addWrappedConnector(wrapper, style) ::= <<