public class ERXPathDirectAction extends WODirectAction
ERXPathDirectActionRequestHandler
for more information.NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility
NSKeyValueCoding._BooleanFieldBinding, NSKeyValueCoding._BooleanMethodBinding, NSKeyValueCoding._FieldBinding, NSKeyValueCoding._ForwardingBinding, NSKeyValueCoding._KeyBinding, NSKeyValueCoding._KeyBindingCreation, NSKeyValueCoding._MethodBinding, NSKeyValueCoding._NumberFieldBinding, NSKeyValueCoding._NumberMethodBinding, NSKeyValueCoding._ReflectionKeyBindingCreation, NSKeyValueCoding.ErrorHandling, NSKeyValueCoding.MapImplementation, NSKeyValueCoding.Null<T>, NSKeyValueCoding.UnknownKeyException, NSKeyValueCoding.ValueAccessor
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException
Modifier and Type | Field and Description |
---|---|
protected NSArray |
pathParts
caches the path parts
|
protected NSDictionary |
pathPartsByKeys
caches the path parts by keys
|
protected NSDictionary |
pathPartsByKeysCaseInsensitive
caches the path parts by case insensitive keys
|
actionText
_actionClasses, _context
_CLASS
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator
NullValue
_CLASS
Constructor and Description |
---|
ERXPathDirectAction(WORequest aRequest)
Just calls super.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasPathPartForKey(String key)
Determines if a path part exists for a given key.
|
boolean |
hasPathPartForKey(String key,
boolean caseInsensitive)
Determines if a path part exists for a given key
with the option of performing a case insensitve
comparison.
|
String |
pathPartForKey(String key)
Gets a path part for a given key.
|
String |
pathPartForKeyWithDefault(String key,
String defaultValue)
Gets a path part for a given key, returning the default
value if nothing was specified.
|
String |
pathPartForKeyWithDefault(String key,
String defaultValue,
boolean caseInsensitiveCompare)
Gets a path part for a given key, returning the default
value if nothing was specified.
|
NSArray |
pathParts()
The path parts of a request correspond to to all of the pieces between the
request handler key and the class name.
|
NSDictionary |
pathPartsByKeys()
Given an array of path parts (foo=food, bar=baz, gee) this will
produce a dictionary of the form: { foo=food; bar=baz; }.
|
NSDictionary |
pathPartsByKeysCaseInsensitive()
Same method as pathPartsByKeys except all of the keys have been down cased, ie
for path parts (Foo=food, bAr=baz, gee) this will give a dictionary of the form
{ foo=food; bar=baz; }.
|
_componentAction, defaultAction, getSessionIDForRequest, performActionNamed, takeFormValueArraysForKeyArray, takeFormValuesForKeyArray
_isActionOnClass, _methodForAction, _preloadAllActionsOnClass, canAccessFieldsDirectly, context, debugString, existingSession, handleQueryWithUnboundKey, handleTakeValueForUnboundKey, initializeRequestSessionIDInContext, languages, logString, pageWithName, request, session, setLanguages, takeValueForKey, takeValueForKeyPath, toString, unableToSetNullForKey, validateTakeValueForKeyPath, validateValueForKey, valueForKey, valueForKeyPath
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
handleQueryWithUnboundKey, handleTakeValueForUnboundKey, unableToSetNullForKey
takeValueForKeyPath, valueForKeyPath
takeValueForKey, valueForKey
validateTakeValueForKeyPath, validateValueForKey
protected NSArray pathParts
protected NSDictionary pathPartsByKeys
protected NSDictionary pathPartsByKeysCaseInsensitive
public ERXPathDirectAction(WORequest aRequest)
public NSArray pathParts()
public NSDictionary pathPartsByKeys()
public NSDictionary pathPartsByKeysCaseInsensitive()
public boolean hasPathPartForKey(String key)
key
- path part keypublic boolean hasPathPartForKey(String key, boolean caseInsensitive)
key
- path part keycaseInsensitive
- key comparison should be case sensitivepublic String pathPartForKey(String key)
key
- path part keypublic String pathPartForKeyWithDefault(String key, String defaultValue)
key
- path part keydefaultValue
- default valuepublic String pathPartForKeyWithDefault(String key, String defaultValue, boolean caseInsensitiveCompare)
key
- path part keydefaultValue
- default valuecaseInsensitiveCompare
- key comparison should ignore caseCopyright © 2002 – 2024 Project Wonder.