de.armax.ax.devtools.uml
Class AXmodelChecker

java.lang.Object
  extended byde.armax.ax.devtools.uml.AXmodelChecker
Direct Known Subclasses:
AXdefaultModelChecker, AXojbHelper

public abstract class AXmodelChecker
extends java.lang.Object

Abstract base class for model checkers.

A model checker is a util that may be used to perform any kind of check on a model and produces warning and error events that may be consumed by an AXmodelCheckerListener.

Author:
Peter Wieland, ARMAX mindware GmbH

Field Summary
static int RESULT_ERRORS
           
static int RESULT_OK
           
static int RESULT_WARNINGS
           
 
Constructor Summary
protected AXmodelChecker()
           
 
Method Summary
 void addModelCheckerListener(AXmodelCheckerListener listener)
           
abstract  int check(AXmodel model)
           
 void fireErrorEvent(AXmodelElement element, java.lang.String msg)
           
 void fireFinishedEvent(int result, int warnings, int errors)
           
 void fireWarningEvent(AXmodelElement element, java.lang.String msg)
           
abstract  int getErrorCount()
           
abstract  int getWarningCount()
           
 void removeModelCheckerListener(AXmodelCheckerListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESULT_OK

public static final int RESULT_OK
See Also:
Constant Field Values

RESULT_WARNINGS

public static final int RESULT_WARNINGS
See Also:
Constant Field Values

RESULT_ERRORS

public static final int RESULT_ERRORS
See Also:
Constant Field Values
Constructor Detail

AXmodelChecker

protected AXmodelChecker()
Method Detail

check

public abstract int check(AXmodel model)

getErrorCount

public abstract int getErrorCount()

getWarningCount

public abstract int getWarningCount()

addModelCheckerListener

public void addModelCheckerListener(AXmodelCheckerListener listener)

removeModelCheckerListener

public void removeModelCheckerListener(AXmodelCheckerListener listener)

fireErrorEvent

public void fireErrorEvent(AXmodelElement element,
                           java.lang.String msg)

fireWarningEvent

public void fireWarningEvent(AXmodelElement element,
                             java.lang.String msg)

fireFinishedEvent

public void fireFinishedEvent(int result,
                              int warnings,
                              int errors)


Copyright © 2003 ARMAX mindware GmbH. All Rights Reserved.