jfun.yan.xml.nuts.optional
Class BinaryNut

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
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BinaryAssertionNut, BinaryPredicateNut

public abstract class BinaryNut
extends ComponentNut

Super class for any tag that supports val1, val2, type1, type2 attributes. It also supports up to 2 sub-elements for these two values.

Author:
Ben Yu Nov 11, 2005 3:41:02 PM
See Also:
Serialized Form

Constructor Summary
BinaryNut()
           
 
Method Summary
 Component getComponent1()
          Get val1 as a component.
 Component getComponent2()
          Get val2 as a component.
 java.lang.Class getType1()
           
 java.lang.Class getType2()
           
 java.lang.Object getVal1()
           
 java.lang.Object getVal2()
           
 boolean isVal1Set()
          Is the val1 attribute set?
 boolean isVal2Set()
          Is the val2 attribute set?
 void set(java.lang.Object[] vals)
           
 void setType1(java.lang.Class type1)
           
 void setType2(java.lang.Class type2)
           
 void setVal1(java.lang.Object val1)
           
 void setVal2(java.lang.Object val2)
           
 
Methods inherited from class jfun.yan.xml.nut.ComponentNut
eval
 
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

BinaryNut

public BinaryNut()
Method Detail

isVal1Set

public boolean isVal1Set()
Is the val1 attribute set?


isVal2Set

public boolean isVal2Set()
Is the val2 attribute set?


getComponent1

public Component getComponent1()
Get val1 as a component.


getComponent2

public Component getComponent2()
Get val2 as a component.


getVal1

public java.lang.Object getVal1()

setVal1

public void setVal1(java.lang.Object val1)

set

public void set(java.lang.Object[] vals)

getVal2

public java.lang.Object getVal2()

setVal2

public void setVal2(java.lang.Object val2)

getType1

public java.lang.Class getType1()

setType1

public void setType1(java.lang.Class type1)

getType2

public java.lang.Class getType2()

setType2

public void setType2(java.lang.Class type2)