@OpenApiAll
public class PatternInfo
extends java.lang.Object
AbstractPanelContainer
,
AbstractPattern
Constructor and Description |
---|
PatternInfo(AbstractPattern pattern,
AbstractPanelContainer panel,
AbstractPatternProperties properties,
java.lang.String descriptionResource)
The info class used to describe one pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
configureForTarget(Target target)
Sets target, the design pattern is being applied to
|
java.io.InputStream |
getDescriptionAsStream()
The method returns input stream in order to read pattern description
|
AbstractPanelContainer |
getPanelContainer()
Returns panel container for the certain pattern.
|
AbstractPattern |
getPattern()
Returns pattern implementation object.
|
java.lang.String |
getPatternName()
Returns the name of a pattern(not categorized).
|
AbstractPatternProperties |
getPatternProperties()
Returns pattern properties for a pattern.
|
public PatternInfo(AbstractPattern pattern, AbstractPanelContainer panel, AbstractPatternProperties properties, java.lang.String descriptionResource)
pattern
- the pattern class.panel
- the pattern panels.properties
- the pattern properties.descriptionResource
- the description resource string(the syntax must be the same as for
pattern.getClass().getResourceAsStream().public AbstractPattern getPattern()
public AbstractPanelContainer getPanelContainer()
public AbstractPatternProperties getPatternProperties()
public java.io.InputStream getDescriptionAsStream()
public void configureForTarget(Target target)
target
- the given target.public java.lang.String getPatternName()