jfun.yan.xml.nuts.optional
Class InstanceOfNut

java.lang.Object
  extended by jfun.yan.xml.nut.Nut
      extended by jfun.yan.xml.nut.ComponentNut
          extended by jfun.yan.xml.nuts.DelegatingNut
              extended by jfun.yan.xml.nuts.optional.InstanceOfNut
All Implemented Interfaces:
java.io.Serializable

public class InstanceOfNut
extends DelegatingNut

A nut class to determine if the instance instantiated by a Component is of a certain type.

Author:
Ben Yu Nov 23, 2005 11:29:33 PM
See Also:
Serialized Form

Constructor Summary
InstanceOfNut()
           
 
Method Summary
 Component eval()
           
 void setClass(java.lang.Class of)
           
 
Methods inherited from class jfun.yan.xml.nuts.DelegatingNut
add, delegateTo, getComponent, getMandatory, setComponent
 
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

InstanceOfNut

public InstanceOfNut()
Method Detail

setClass

public void setClass(java.lang.Class of)

eval

public Component eval()
               throws java.lang.Exception
Specified by:
eval in class ComponentNut
Throws:
java.lang.Exception