com.inxar.affirm
Class AbstractAffirmation

java.lang.Object
  |
  +--com.inxar.affirm.AbstractAffirmation
All Implemented Interfaces:
Affirmation
Direct Known Subclasses:
AffirmBoolean, AffirmByte, AffirmChar, AffirmCreditCard, AffirmDouble, AffirmDoubleRange, AffirmExists, AffirmFloat, AffirmInt, AffirmIntegralRange, AffirmLong, AffirmMatch, AffirmShort, AffirmString, AffirmStringLength, AffirmType

public abstract class AbstractAffirmation
extends java.lang.Object
implements Affirmation

Base class for Affirmation implementations.


Field Summary
protected  boolean isFatal
           
protected  java.lang.Object key
           
protected  java.lang.String msg
           
 
Constructor Summary
AbstractAffirmation(java.lang.Object key, java.lang.String msg, boolean isFatal)
           
 
Method Summary
 java.lang.Object getKey()
          Returns the key for which this affirmation targets.
 boolean isFatal()
          Returns true if upon negative affirmation all subsequent processing of this key should be halted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.inxar.affirm.Affirmation
affirm
 

Field Detail

key

protected java.lang.Object key

msg

protected java.lang.String msg

isFatal

protected boolean isFatal
Constructor Detail

AbstractAffirmation

public AbstractAffirmation(java.lang.Object key,
                           java.lang.String msg,
                           boolean isFatal)
Method Detail

getKey

public java.lang.Object getKey()
Description copied from interface: Affirmation
Returns the key for which this affirmation targets.
Specified by:
getKey in interface Affirmation

isFatal

public boolean isFatal()
Description copied from interface: Affirmation
Returns true if upon negative affirmation all subsequent processing of this key should be halted.
Specified by:
isFatal in interface Affirmation