Class ThreatPatternConversion
java.lang.Object
be.kuleuven.cs.distrinet.sparta.core.patterns.ThreatPatternConversion
Renders the (long) description of a
ThreatPattern for a concrete
IPatternMatch by substituting parameter placeholders with values from
the match.
Placeholder syntax:
<$name$>— replaced with the name (ModelElement.getName()) of the match parameter calledname;<$name.type$>— replaced with the model type of that parameter (the element's class name without the EMFImplsuffix, e.g.Process).typeis the only supported attribute; any other attribute renders asUNSUPPORTED ATTRIBUTE.
Substitution is literal: replacement values containing regex-special
characters such as $ or \ are inserted as-is. When a
placeholder references a parameter that is absent from the match (or that is
not a ModelElement), it renders as the visible marker
<unknown: name> instead of failing the whole conversion.
-
Constructor Summary
ConstructorsConstructorDescriptionThreatPatternConversion(ThreatPattern meta, org.eclipse.viatra.query.runtime.api.IPatternMatch match) -
Method Summary
-
Constructor Details
-
ThreatPatternConversion
public ThreatPatternConversion(ThreatPattern meta, org.eclipse.viatra.query.runtime.api.IPatternMatch match)
-
-
Method Details
-
getDescription
-
getLongDescription
-
processAndReplaceParams
-
processMatch
-
getProperty
-
getElementFromMatch
-
getThreatLocation
-
getDataFlow
-
map
-