Date: Fri, 29 Mar 2024 10:46:14 +0100 (CET) Message-ID: <234330090.1816.1711705574791@nm-docs> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1815_1188939093.1711705574791" ------=_Part_1815_1188939093.1711705574791 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
A pattern=E2=80=99s com.nomagic.magicdraw.patterns.Target encapsulates informati= on about the classifier you want to apply the pattern for.
A Target <= /em>owns:
A Target<= /a> is passed to the pattern=E2=80=99s method com.nomagic.magicdraw.patterns.AbstractPattern.applyPattern(Target, AbstractPatternProperties). It is also accessible from pattern=E2=80=99s properties= <= em>com.nomagic.magicdraw.patterns.AbstractPatternProperties.
Open API provides a helper class com.nomagic.magicdraw.patterns.PatternHelper= with useful methods for patterns. For more details about methods of th= is class, see javadoc.
Every implementation of a specif= ic pattern must provide:
This information is encapsulated in the com.nomagic.magicdraw.patterns.PatternInfo<= /em> class.
PatternIn= fo is used only for the pattern registration in the com.nomagic.magicdraw.= patterns.PatternsManager. Other usages are internal and do not imp= act specific patterns.
Every pattern must provide main properties and optionally can have exten= ded properties. Main properties are used for the user input from the first = pattern wizard page. Extended properties may be used for storing the user i= nput from other wizard pages.
A specific pattern must provide implementation of this abstract class an= d override the AbstractPatternProperties.confi= gurePropertyManager() method. If a specific pattern has some exten= ded properties, it must override the A= bstractPatternProperties.configureExtendedPropertyManager() = em>method. Both these methods must configure some property manager =E2=80= =93 add or remove properties from it.
Every pattern must provide one or more panels for the patterns wizard. T= he first wizard page is always used for displaying main pattern properties.= Other pages are optional and may be the pattern specific. The com.nomagic.m= agicdraw.patterns.AbstractPanelContainer class is used for providi= ng the pattern wizard information:
A specific pattern must provide a pattern implementation class. This cla= ss must extend AbstractPattern and implement AbstractPattern.applyPattern(Target<= a class=3D"external-link" href=3D"http://jdocs.nomagic.com/190_sp2/com/noma= gic/magicdraw/patterns/AbstractPattern.html#applyPattern-com.nomagic.magicd= raw.patterns.Target-com.nomagic.magicdraw.patterns.AbstractPatternPropertie= s-" rel=3D"nofollow">, = AbstractPatternProperties) and AbstractPattern.getCategorizedName() methods.