er.extensions.components.conditionals
Class ERXInstanceOfConditional
java.lang.Object
com.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.extensions.components.conditionals.ERXWOConditional
er.extensions.components.conditionals.ERXInstanceOfConditional
public class ERXInstanceOfConditional
- extends ERXWOConditional
Conditional component that tests if an object is an instance of a given class
or interface
Synopsis:
object=anObject;className=aClassName2;[negate=aBoolean;]
| Bindings |
object | object to test |
className | class or interface name |
negate | Inverts the sense of the conditional. |
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, childrenElements, EmptyGroup, hasChildrenElements |
_object
protected WOAssociation _object
_className
protected WOAssociation _className
ERXInstanceOfConditional
public ERXInstanceOfConditional(String aName,
NSDictionary aDict,
WOElement aElement)
pullAssociations
protected void pullAssociations(NSDictionary<String,? extends WOAssociation> dict)
- Description copied from class:
ERXWOConditional
- Override to pull the associations for your condition. The
negate has already been pulled, so don't call super, as you
will get an IllegalStateException because condition isn't
bound.
- Overrides:
pullAssociations in class ERXWOConditional
conditionInComponent
protected boolean conditionInComponent(WOComponent component)
- Tests if the bound object is an instance of the class. Note: If the class
is not found a ClassNotFoundException will be thrown via an
NSForwardException.
- Overrides:
conditionInComponent in class ERXWOConditional
Copyright © 2002 – 2007 Project Wonder.