de.infoasset.platform.template.consistency.substitutions
Class ConsistencyConditionalSubstitution

java.lang.Object
  extended by de.infoasset.platform.template.ConditionalSubstitution
      extended by de.infoasset.platform.template.consistency.substitutions.ConsistencyConditionalSubstitution
All Implemented Interfaces:
ConsistencySubstitution, Substitution, Testable

public class ConsistencyConditionalSubstitution
extends ConditionalSubstitution
implements ConsistencySubstitution

A ConsistencyConditionalTemplate is a special implemetation which should only be used for conistency checks.


Constructor Summary
ConsistencyConditionalSubstitution(java.lang.String tag, de.infoasset.imf.core.ModelElement method)
           
 
Method Summary
 de.infoasset.imf.core.ModelElement getModelElement()
          Returns the put-method that was the reason for creating this ConsistencySubstitution.
 java.lang.String getTag()
           
 boolean test()
          Deceides wheter this substitution is caried out or suppressed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsistencyConditionalSubstitution

public ConsistencyConditionalSubstitution(java.lang.String tag,
                                          de.infoasset.imf.core.ModelElement method)
Method Detail

getModelElement

public de.infoasset.imf.core.ModelElement getModelElement()
Description copied from interface: ConsistencySubstitution
Returns the put-method that was the reason for creating this ConsistencySubstitution.

Specified by:
getModelElement in interface ConsistencySubstitution
Returns:
The put-method.

test

public boolean test()
Description copied from class: ConditionalSubstitution
Deceides wheter this substitution is caried out or suppressed. Test is called for every occurence of the conditional tag, in list templates as often as the line is produced, if the tag is contained in a line. This is very useful for supressing different parts in different lines. Subclasses must implement this operation.

Specified by:
test in interface Testable
Specified by:
test in class ConditionalSubstitution

getTag

public java.lang.String getTag()