|
Project Wonder 5.0.0.8787 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webobjects.appserver.WOElement
com.webobjects.appserver.WODynamicElement
com.webobjects.appserver._private.WODynamicGroup
er.extensions.components._private.ERXWORepetition
public class ERXWORepetition
Replacement for WORepetition. Is installed via ERXPatcher.setClassForName(ERXWORepetition.class, "WORepetition") into the runtime system, so you don't need to reference it explicitely.
List and Array, in addition to
NSArray and Vector (which is a List in 1.4). This
is listed as Radar #3325342 since June 2003.er.extensions.ERXWORepetition.raiseOnUnmatchedObject=true -
an ERXWORepetition.UnmatchedObjectException is thrown.er.extensions.ERXWORepetition.checkHashCodes=true or on a
per-component basis by setting the checkHashCodes binding to true or false.
| Bindings | |
list | the array or list of items to iterate over |
item | the current item in the iteration |
count | the total number of items to iterate over |
index | the current index in the iteration |
uniqueKey | a String keypath on item (relative to item, not relative to the component) |
checkHashCodes | if true, checks the validity of repetition references during the RR loop |
raiseOnUnmatchedObject | if true, an exception is thrown when the repetition does not find a matching object |
debugHashCodes | if true, prints out hashcodes for each entry in the repetition as it is traversed |
batchFetch | a comma-separated list of keypaths on the "list" array binding to batch fetch |
| Nested Class Summary | |
|---|---|
protected class |
ERXWORepetition.Context
WOElements must be reentrant, so we need a context object or will have to add the parameters to every method. |
static class |
ERXWORepetition.UnmatchedObjectException
|
| Field Summary | |
|---|---|
protected WOAssociation |
_batchFetch
|
protected WOAssociation |
_checkHashCodes
|
protected WOAssociation |
_count
|
protected WOAssociation |
_debugHashCodes
|
protected WOAssociation |
_eoSupport
|
protected WOAssociation |
_index
|
protected WOAssociation |
_item
|
protected WOAssociation |
_list
|
protected WOAssociation |
_raiseOnUnmatchedObject
|
protected WOAssociation |
_uniqueKey
|
| Fields inherited from class com.webobjects.appserver._private.WODynamicGroup |
|---|
_children |
| Fields inherited from class com.webobjects.appserver.WODynamicElement |
|---|
_ConstructorParameters |
| Constructor Summary | |
|---|---|
ERXWORepetition(String string,
NSDictionary associations,
WOElement woelement)
Designated Constructor. |
|
| Method Summary | |
|---|---|
protected void |
_cleanupAfterIteration(int i,
WOContext wocontext,
WOComponent wocomponent)
Cleans the WOContext after the loop iteration. |
protected int |
_count(ERXWORepetition.Context context,
WOComponent wocomponent)
|
protected void |
_failCreation(String message)
Utility to throw an exception if the bindings are incomplete. |
protected String |
_indexOfChosenItem(WORequest worequest,
WOContext wocontext)
|
protected String |
_indexStringForSenderAndElement(String senderID,
String elementID)
Fills the context with the object given in the "list" binding. |
protected void |
_prepareForIterationWithIndex(ERXWORepetition.Context context,
int index,
WOContext wocontext,
WOComponent wocomponent,
boolean checkHashCodes)
Prepares the WOContext for the loop iteration. |
void |
appendToResponse(WOResponse woresponse,
WOContext wocontext)
|
protected ERXWORepetition.Context |
createContext(WOComponent wocomponent)
|
WOActionResults |
invokeAction(WORequest worequest,
WOContext wocontext)
|
void |
takeValuesFromRequest(WORequest worequest,
WOContext wocontext)
|
String |
toString()
Human readable description. |
| Methods inherited from class com.webobjects.appserver._private.WODynamicGroup |
|---|
addChildElement, appendChildrenToResponse, childrenElements, EmptyGroup, hasChildrenElements, invokeChildrenAction, takeChildrenValuesFromRequest |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected WOAssociation _list
protected WOAssociation _item
protected WOAssociation _count
protected WOAssociation _index
protected WOAssociation _uniqueKey
protected WOAssociation _checkHashCodes
protected WOAssociation _raiseOnUnmatchedObject
protected WOAssociation _eoSupport
protected WOAssociation _debugHashCodes
protected WOAssociation _batchFetch
| Constructor Detail |
|---|
public ERXWORepetition(String string,
NSDictionary associations,
WOElement woelement)
| Method Detail |
|---|
protected void _failCreation(String message)
public String toString()
toString in class com.webobjects.appserver._private.WODynamicGroup
protected void _prepareForIterationWithIndex(ERXWORepetition.Context context,
int index,
WOContext wocontext,
WOComponent wocomponent,
boolean checkHashCodes)
checkHashCodes -
protected void _cleanupAfterIteration(int i,
WOContext wocontext,
WOComponent wocomponent)
protected String _indexStringForSenderAndElement(String senderID,
String elementID)
protected String _indexOfChosenItem(WORequest worequest,
WOContext wocontext)
protected int _count(ERXWORepetition.Context context,
WOComponent wocomponent)
protected ERXWORepetition.Context createContext(WOComponent wocomponent)
public void takeValuesFromRequest(WORequest worequest,
WOContext wocontext)
takeValuesFromRequest in class com.webobjects.appserver._private.WODynamicGroup
public WOActionResults invokeAction(WORequest worequest,
WOContext wocontext)
invokeAction in class com.webobjects.appserver._private.WODynamicGroup
public void appendToResponse(WOResponse woresponse,
WOContext wocontext)
appendToResponse in class com.webobjects.appserver._private.WODynamicGroup
|
Last updated: Wed, Jan 7, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||