archimate.patterns
Class Pattern

java.lang.Object
  extended by archimate.patterns.Pattern
All Implemented Interfaces:
ICodeGenerator
Direct Known Subclasses:
MVCPattern, Primitive

public abstract class Pattern
extends java.lang.Object
implements ICodeGenerator


Constructor Summary
Pattern()
           
 
Method Summary
 int estimateTasks()
          Estimates the number of tasks to execute for generating code
 void generate_code(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.MultiStatus status)
          Generates source code for the pattern
 org.eclipse.core.runtime.IProgressMonitor monitor()
          Returns the ProgressMonitor for the generator
 java.lang.String name()
          Returns the name of the pattern
 java.lang.String packageBase()
          Returns the package base of the pattern
 org.eclipse.core.runtime.MultiStatus status()
          Returns the MultiStatus for the generator
 TagTree tree()
          Returns a tree containing all archiMateTags for the key source elements
 void validate_code(org.eclipse.core.runtime.IProgressMonitor monitor, org.eclipse.core.runtime.MultiStatus status)
          Validates the source code in the workspace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Pattern

public Pattern()
Method Detail

name

public java.lang.String name()
Description copied from interface: ICodeGenerator
Returns the name of the pattern

Specified by:
name in interface ICodeGenerator
Returns:
The name of the pattern

packageBase

public java.lang.String packageBase()
Description copied from interface: ICodeGenerator
Returns the package base of the pattern

Specified by:
packageBase in interface ICodeGenerator
Returns:
The package base of the pattern

tree

public TagTree tree()
Description copied from interface: ICodeGenerator
Returns a tree containing all archiMateTags for the key source elements

Specified by:
tree in interface ICodeGenerator
Returns:
The TagTree of the current pattern

monitor

public org.eclipse.core.runtime.IProgressMonitor monitor()
Description copied from interface: ICodeGenerator
Returns the ProgressMonitor for the generator

Specified by:
monitor in interface ICodeGenerator
Returns:
The ProgressMonitor for the generator

status

public org.eclipse.core.runtime.MultiStatus status()
Description copied from interface: ICodeGenerator
Returns the MultiStatus for the generator

Specified by:
status in interface ICodeGenerator
Returns:
The MultiStatus for the generator

estimateTasks

public int estimateTasks()
Description copied from interface: ICodeGenerator
Estimates the number of tasks to execute for generating code

Specified by:
estimateTasks in interface ICodeGenerator
Returns:
The number of estimated tasks for generating code

generate_code

public void generate_code(org.eclipse.core.runtime.IProgressMonitor monitor,
                          org.eclipse.core.runtime.MultiStatus status)
Description copied from interface: ICodeGenerator
Generates source code for the pattern

Specified by:
generate_code in interface ICodeGenerator

validate_code

public void validate_code(org.eclipse.core.runtime.IProgressMonitor monitor,
                          org.eclipse.core.runtime.MultiStatus status)
Description copied from interface: ICodeGenerator
Validates the source code in the workspace

Specified by:
validate_code in interface ICodeGenerator