er.extensions.components.conditionals
Class ERXEqualConditional
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.ERXEqualConditional
public class ERXEqualConditional
- extends ERXWOConditional
Conditional component that compares two objects using the equals method.
| Bindings |
value1 | first object to compare |
value2 | second object to compare |
negate | Inverts the sense of the conditional. |
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
_children |
| Fields inherited from class com.webobjects.appserver.WODynamicElement |
_ConstructorParameters |
|
Constructor Summary |
ERXEqualConditional(java.lang.String aS,
com.webobjects.foundation.NSDictionary aNsdictionary,
com.webobjects.appserver.WOElement aWoelement)
|
|
Method Summary |
boolean |
conditionInComponent(com.webobjects.appserver.WOComponent component)
Tests for the equality of the two value bindings. |
protected void |
pullAssociations(com.webobjects.foundation.NSDictionary<java.lang.String,? extends com.webobjects.appserver.WOAssociation> dict)
Override to pull the associations for your condition. |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
addChildElement, childrenElements, EmptyGroup, hasChildrenElements |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ERXEqualConditional
public ERXEqualConditional(java.lang.String aS,
com.webobjects.foundation.NSDictionary aNsdictionary,
com.webobjects.appserver.WOElement aWoelement)
pullAssociations
protected void pullAssociations(com.webobjects.foundation.NSDictionary<java.lang.String,? extends com.webobjects.appserver.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
public boolean conditionInComponent(com.webobjects.appserver.WOComponent component)
- Tests for the equality of the two value bindings. First tests a direct
== comparision then tests with an equals comparision.
- Overrides:
conditionInComponent in class ERXWOConditional
- Returns:
- equality of the two bindings.
Copyright © 2002 – 2007 Project Wonder.