com.ibm.dse.tools.workbench.tbg
Class TagAssertion

java.lang.Object
  |
  +--com.ibm.dse.tools.workbench.tbg.TagAssertion

public class TagAssertion
extends java.lang.Object
implements TagProcessor

This class implements an assertion TBG tag.


Fields inherited from interface com.ibm.dse.tools.workbench.tbg.TbgNames
ATTRIB_LAST, ATTRIB_SEP, ATTRIBUTE, END_SIMPLE_TAG, END_TAG, INI_FINAL_TAG, INI_TAG, LITERAL, LITERAL_LAST1, LITERAL_LAST2, LITERAL_LAST3, LITERAL_SEP1, LITERAL_SEP2, LITERAL_SEP3
 
Constructor Summary
TagAssertion()
          This constructor creates a TagAssertion object.
 
Method Summary
 java.lang.String generate(TbgContext aContext)
          Evaluates the assertion condition.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TagAssertion

public TagAssertion()
This constructor creates a TagAssertion object.
Method Detail

generate

public java.lang.String generate(TbgContext aContext)
                          throws WorkbenchException,
                                 TbgException
Evaluates the assertion condition.

If the condition is not true throws a TbgException to notify this state.
Specified by:
generate in interface TagProcessor
Parameters:
aContext - TbgContext The context of the generation.
Returns:
java.lang.String Returns a null value because this is a control tag.
Throws:
TbgException - When the assertion is not true.
WorkbenchException - Thrown while the condition is being evaluated or while the method tries to write in the log file.