jfun.yan.xml.nuts.optional
Class BinaryAssertionNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.ComponentNut
          extended by jfun.yan.xml.nuts.optional.BinaryNut
              extended by jfun.yan.xml.nuts.optional.BinaryAssertionNut
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AssertEqualNut, AssertNotEqualNut, AssertNotSameNut, AssertSameNut

public abstract class BinaryAssertionNut
extends BinaryNut

Super class for any Nut that supports "val1" and "val2" attributes and checks a binary predicate on them.

Author:
Ben Yu Nov 9, 2005 11:56:26 PM
See Also:
Serialized Form

Constructor Summary
BinaryAssertionNut()
           
 
Method Summary
abstract  void assertion(java.lang.Object v1, java.lang.Object v2)
          Apply the binary assertion.
 Component eval()
           
 
Methods inherited from class jfun.yan.xml.nuts.optional.BinaryNut
getComponent1, getComponent2, getType1, getType2, getVal1, getVal2, isVal1Set, isVal2Set, set, setType1, setType2, setVal1, setVal2
 
Methods inherited from class jfun.yan.xml.nut.Nut
cast, checkDuplicate, checkMandatory, checkMandatory, convert, getComponentClassLoader, getId, getNutClassLoader, getNutEnvironment, getParameterWiring, getPropertyWiring, getSequenceNumber, getTagLocation, getTagName, initGloballyDefined, initNutEnvironment, initSequenceNumber, initTagLocation, initTagName, isGloballyDefined, raise, raise, register, registerEagerInstantiation, setId, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BinaryAssertionNut

public BinaryAssertionNut()
Method Detail

assertion

public abstract void assertion(java.lang.Object v1,
                               java.lang.Object v2)
Apply the binary assertion.

Parameters:
v1 - the first value.
v2 - the second value.

eval

public Component eval()
Specified by:
eval in class ComponentNut