ERDDefaultDisplayNameAssignment Class Reference

Inherits er::directtoweb::assignments::ERDAssignment, and er::directtoweb::assignments::ERDLocalizableAssignmentInterface.

Collaboration diagram for ERDDefaultDisplayNameAssignment:

Collaboration graph
[legend]

List of all members.

Public Member Functions

NSArray dependentKeys (String keyPath)
Object displayNameForConfirmDeleteConfiguration (D2WContext c)
Object displayNameForCreateConfiguration (D2WContext c)
Object displayNameForDestinationEntity (D2WContext c)
Object displayNameForEditConfiguration (D2WContext c)
Object displayNameForEntity (D2WContext c)
Object displayNameForInspectConfiguration (D2WContext c)
Object displayNameForPageConfiguration (D2WContext c)
Object displayNameForProperty (D2WContext c)
Object displayNameForPropertyKeyPath (D2WContext c)
Object displayNameForSectionKey (D2WContext c)
Object displayNameForTabKey (D2WContext c)
 ERDDefaultDisplayNameAssignment (String key, Object value)
 ERDDefaultDisplayNameAssignment (EOKeyValueUnarchiver u)

Static Public Member Functions

static Object decodeWithKeyValueUnarchiver (EOKeyValueUnarchiver eokeyvalueunarchiver)

Protected Member Functions

Object localizedValueForDisplayNameOfKeyPath (String keyPath, D2WContext c)

Static Protected Attributes

static final NSDictionary keys

Static Package Attributes

static final Logger log = Logger.getLogger(ERDDefaultDisplayNameAssignment.class)

Private Member Functions

String localizedValueForKey (String result, String localizerKey)


Detailed Description

Beautify the display names for the various keys in D2W a better way.
Author:
ak

Constructor & Destructor Documentation

ERDDefaultDisplayNameAssignment ( EOKeyValueUnarchiver  u  ) 

Public constructor

Parameters:
u key-value unarchiver used when unarchiving from rule files.

ERDDefaultDisplayNameAssignment ( String  key,
Object  value 
)

Public constructor

Parameters:
key context key
value of the assignment


Member Function Documentation

static Object decodeWithKeyValueUnarchiver ( EOKeyValueUnarchiver  eokeyvalueunarchiver  )  [static]

Static constructor required by the EOKeyValueUnarchiver interface. If this isn't implemented then the default behavior is to construct the first super class that does implement this method. Very lame.

Parameters:
eokeyvalueunarchiver to be unarchived
Returns:
decoded assignment of this class

NSArray dependentKeys ( String  keyPath  ) 

Implementation of the ERDComputingAssignmentInterface. This array of keys is used when constructing the significant keys for the passed in keyPath.

Parameters:
keyPath to compute significant keys for.
Returns:
array of context keys this assignment depends upon.

Implements ERDComputingAssignmentInterface.

Object displayNameForConfirmDeleteConfiguration ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current confirmDeleteConfigurationName

Object displayNameForCreateConfiguration ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current createConfigurationName

Object displayNameForDestinationEntity ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current destinationEntity

Object displayNameForEditConfiguration ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current editConfigurationName

Object displayNameForEntity ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current entity.name

Object displayNameForInspectConfiguration ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current inspectConfigurationName

Object displayNameForPageConfiguration ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current pageConfiguration

Object displayNameForProperty ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current propertyKey, showing only the last component

Object displayNameForPropertyKeyPath ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the key path of the current propertyKey

Object displayNameForSectionKey ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current sectionKey

Object displayNameForTabKey ( D2WContext  c  ) 

Returns:
a beautified, localized display name for the current tabKey

Object localizedValueForDisplayNameOfKeyPath ( String  keyPath,
D2WContext  c 
) [protected]

Helper to get pull the value, pretty-print it and run it through the localizer.

String localizedValueForKey ( String  result,
String  localizerKey 
) [private]


Member Data Documentation

final NSDictionary keys [static, protected]

Initial value:

 ERXDictionaryUtilities.dictionaryWithObjectsAndKeys( new Object [] {
        new NSArray(new Object[] {"pageConfiguration", "task", "entity.name"}), "displayNameForPageConfiguration",
        new NSArray(new Object[] {"entity", "object.entityName"}), "displayNameForEntity",
        new NSArray(new Object[] {"sectionKey"}), "displayNameForSectionKey",
        new NSArray(new Object[] {"tabKey"}), "displayNameForTabKey",
        new NSArray(new Object[] {"propertyKey"}), "displayNameForProperty",
        new NSArray(new Object[] {"propertyKey"}), "displayNameForPropertyKeyPath",
        
        new NSArray(new Object[] {"smartRelationship.destinationEntity", "destinationEntityName"}), "displayNameForDestinationEntity",
        new NSArray(new Object[] {"editConfigurationName"}), "displayNameForEditConfiguration",
        new NSArray(new Object[] {"inspectConfigurationName"}), "displayNameForInspectConfiguration",
        new NSArray(new Object[] {"createConfigurationName"}), "displayNameForCreateConfiguration",
        new NSArray(new Object[] {"confirmDeleteConfigurationName"}), "displayNameForConfirmDeleteConfiguration"
    })
holds the dependent keys of the assignment

final Logger log = Logger.getLogger(ERDDefaultDisplayNameAssignment.class) [static, package]

logging support

Reimplemented from ERDAssignment.


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

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