ERXWORepetition Class Reference

Inherits com::webobjects::appserver::_private::WODynamicGroup.

Collaboration diagram for ERXWORepetition:

Collaboration graph
[legend]

List of all members.

Classes

class  Context
class  UnmatchedObjectException

Public Member Functions

void appendToResponse (WOResponse woresponse, WOContext wocontext)
 ERXWORepetition (String string, NSDictionary associations, WOElement woelement)
WOActionResults invokeAction (WORequest worequest, WOContext wocontext)
void takeValuesFromRequest (WORequest worequest, WOContext wocontext)
String toString ()

Protected Member Functions

void _cleanupAfterIteration (int i, WOContext wocontext, WOComponent wocomponent)
int _count (Context context, WOComponent wocomponent)
void _failCreation (String message)
String _indexOfChosenItem (WORequest worequest, WOContext wocontext)
String _indexStringForSenderAndElement (String senderID, String elementID)
void _prepareForIterationWithIndex (Context context, int index, WOContext wocontext, WOComponent wocomponent, boolean checkHashCodes)
Context createContext (WOComponent wocomponent)

Protected Attributes

WOAssociation _batchFetch
WOAssociation _checkHashCodes
WOAssociation _count
WOAssociation _debugHashCodes
WOAssociation _eoSupport
WOAssociation _index
WOAssociation _item
WOAssociation _list
WOAssociation _notFoundMarker
WOAssociation _raiseOnUnmatchedObject
WOAssociation _uniqueKey

Private Member Functions

boolean checkHashCodes (WOComponent wocomponent)
boolean eoSupport (WOComponent wocomponent)
int hashCodeForObject (WOComponent component, Object object)
String keyForObject (WOComponent component, Object object)
boolean raiseOnUnmatchedObject (WOComponent wocomponent)

Static Private Attributes

static boolean _checkHashCodesDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.checkHashCodes", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".checkHashCodes"))
static boolean _eoSupportDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.eoSupport", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".eoSupport"))
static boolean _raiseOnUnmatchedObjectDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.raiseOnUnmatchedObject", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".raiseOnUnmatchedObject"))
static final Logger log = Logger.getLogger(ERXWORepetition.class)


Detailed Description

Replacement for WORepetition. It is installed via ERXPatcher.setClassForName(ERXWORepetition.class, "WORepetition") into the runtime system, so you don't need to reference it explicitly.

Constructor & Destructor Documentation

ERXWORepetition ( String  string,
NSDictionary  associations,
WOElement  woelement 
)

Designated Constructor. Gets called by the template parser. Checks if the bindings are valid.


Member Function Documentation

void _cleanupAfterIteration ( int  i,
WOContext  wocontext,
WOComponent  wocomponent 
) [protected]

Cleans the WOContext after the loop iteration.

int _count ( Context  context,
WOComponent  wocomponent 
) [protected]

void _failCreation ( String  message  )  [protected]

Utility to throw an exception if the bindings are incomplete.

String _indexOfChosenItem ( WORequest  worequest,
WOContext  wocontext 
) [protected]

String _indexStringForSenderAndElement ( String  senderID,
String  elementID 
) [protected]

Fills the context with the object given in the "list" binding.

void _prepareForIterationWithIndex ( Context  context,
int  index,
WOContext  wocontext,
WOComponent  wocomponent,
boolean  checkHashCodes 
) [protected]

Prepares the WOContext for the loop iteration.

Parameters:
checkHashCodes 

void appendToResponse ( WOResponse  woresponse,
WOContext  wocontext 
)

boolean checkHashCodes ( WOComponent  wocomponent  )  [private]

Context createContext ( WOComponent  wocomponent  )  [protected]

boolean eoSupport ( WOComponent  wocomponent  )  [private]

int hashCodeForObject ( WOComponent  component,
Object  object 
) [private]

WOActionResults invokeAction ( WORequest  worequest,
WOContext  wocontext 
)

String keyForObject ( WOComponent  component,
Object  object 
) [private]

boolean raiseOnUnmatchedObject ( WOComponent  wocomponent  )  [private]

void takeValuesFromRequest ( WORequest  worequest,
WOContext  wocontext 
)

String toString (  ) 

Human readable description.


Member Data Documentation

WOAssociation _batchFetch [protected]

WOAssociation _checkHashCodes [protected]

boolean _checkHashCodesDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.checkHashCodes", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".checkHashCodes")) [static, private]

WOAssociation _count [protected]

WOAssociation _debugHashCodes [protected]

WOAssociation _eoSupport [protected]

boolean _eoSupportDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.eoSupport", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".eoSupport")) [static, private]

WOAssociation _index [protected]

WOAssociation _item [protected]

WOAssociation _list [protected]

WOAssociation _notFoundMarker [protected]

WOAssociation _raiseOnUnmatchedObject [protected]

boolean _raiseOnUnmatchedObjectDefault = ERXProperties.booleanForKeyWithDefault("er.extensions.ERXWORepetition.raiseOnUnmatchedObject", ERXProperties.booleanForKey(ERXWORepetition.class.getName() + ".raiseOnUnmatchedObject")) [static, private]

WOAssociation _uniqueKey [protected]

final Logger log = Logger.getLogger(ERXWORepetition.class) [static, private]

logging support


The documentation for this class was generated from the following file:

Generated on Sat May 26 06:43:06 2012 for Project Wonder by  doxygen 1.5.8