com.telelogic.rhapsody.core
Class RPExternalCheck

java.lang.Object
  extended by com.telelogic.rhapsody.core.RPExternalCheck

public abstract class RPExternalCheck
extends java.lang.Object


Constructor Summary
RPExternalCheck()
           
 
Method Summary
abstract  boolean check(IRPModelElement ElementToCheck, IRPCollection FailedElements)
          Called by Rhapsody to execute the check.
 boolean connect(IRPExternalCheckRegistry connectionPoint)
           
 boolean disconnect()
           
abstract  void doExit()
          exit and allow Rhapsody to exit
protected  void finalize()
           
abstract  boolean getCompleteness()
          Return true if this is a check for completeness or false if this is a check for correctness
abstract  java.lang.String getDomain()
          Return the domain of the check which can be user defined or one from predefined list of , or .
abstract  java.lang.String getMetaclasses()
          Return a comma separated list of metaclasses or new terms - Rhapsody will call check for all elements in scope of check that are of the metaclass type in the list
abstract  java.lang.String getName()
          Return the name of the check (also used as its error message)
abstract  java.lang.String getSeverity()
          Return the Severity of the check which one from predefined list of , ,
abstract  boolean getShouldCallFromCG()
          Return true if this check should be automatically called before code generation
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RPExternalCheck

public RPExternalCheck()
Method Detail

connect

public boolean connect(IRPExternalCheckRegistry connectionPoint)

disconnect

public boolean disconnect()

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable

check

public abstract boolean check(IRPModelElement ElementToCheck,
                              IRPCollection FailedElements)
Called by Rhapsody to execute the check. Return a list of elements to highlight if check fails (or empty list if the check is OK)

Throws:
RhapsodyRuntimeException

getCompleteness

public abstract boolean getCompleteness()
Return true if this is a check for completeness or false if this is a check for correctness

Throws:
RhapsodyRuntimeException

getDomain

public abstract java.lang.String getDomain()
Return the domain of the check which can be user defined or one from predefined list of , or . (For RIC )

Throws:
RhapsodyRuntimeException

getMetaclasses

public abstract java.lang.String getMetaclasses()
Return a comma separated list of metaclasses or new terms - Rhapsody will call check for all elements in scope of check that are of the metaclass type in the list

Throws:
RhapsodyRuntimeException

getName

public abstract java.lang.String getName()
Return the name of the check (also used as its error message)

Throws:
RhapsodyRuntimeException

getSeverity

public abstract java.lang.String getSeverity()
Return the Severity of the check which one from predefined list of , ,

Throws:
RhapsodyRuntimeException

getShouldCallFromCG

public abstract boolean getShouldCallFromCG()
Return true if this check should be automatically called before code generation

Throws:
RhapsodyRuntimeException

doExit

public abstract void doExit()
exit and allow Rhapsody to exit

Throws:
RhapsodyRuntimeException