Project Wonder 5.0

er.extensions.components.conditionals
Class ERXListContainsItemConditional

java.lang.Object
  extended by com.webobjects.appserver.WOElement
      extended by com.webobjects.appserver.WODynamicElement
          extended by com.webobjects.appserver._private.WODynamicGroup
              extended by er.extensions.components.conditionals.ERXWOConditional
                  extended by er.extensions.components.conditionals.ERXListContainsItemConditional

public class ERXListContainsItemConditional
extends ERXWOConditional

Conditional component that tests if a given item is contained in an List.

Bindings
list array of objects
           
item object to test inclusion in the list
           
negate inverts the sense of the conditional.
           

Field Summary
protected  com.webobjects.appserver.WOAssociation _item
           
protected  com.webobjects.appserver.WOAssociation _list
           
 
Fields inherited from class er.extensions.components.conditionals.ERXWOConditional
_condition, LAST_CONDITION_KEY
 
Fields inherited from class com.webobjects.appserver._private.WODynamicGroup
_children
 
Fields inherited from class com.webobjects.appserver.WODynamicElement
_ConstructorParameters
 
Constructor Summary
ERXListContainsItemConditional(java.lang.String aName, com.webobjects.foundation.NSDictionary aDict, com.webobjects.appserver.WOElement aElement)
           
 
Method Summary
protected  boolean conditionInComponent(com.webobjects.appserver.WOComponent component)
          Tests if the bound item is contained within the bound list.
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 er.extensions.components.conditionals.ERXWOConditional
appendChildrenToResponse, appendToResponse, invokeAction, invokeChildrenAction, lastCondition, meetsConditionInComponent, setLastCondition, takeChildrenValuesFromRequest, takeValuesFromRequest, toString
 
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
 

Field Detail

_list

protected com.webobjects.appserver.WOAssociation _list

_item

protected com.webobjects.appserver.WOAssociation _item
Constructor Detail

ERXListContainsItemConditional

public ERXListContainsItemConditional(java.lang.String aName,
                                      com.webobjects.foundation.NSDictionary aDict,
                                      com.webobjects.appserver.WOElement aElement)
Method Detail

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

protected boolean conditionInComponent(com.webobjects.appserver.WOComponent component)
Tests if the bound item is contained within the bound list.

Overrides:
conditionInComponent in class ERXWOConditional

Last updated: Tue, Feb 21, 2017 • 05:45 PM CET

Copyright © 2002 – 2007 Project Wonder.