er.directtoweb.assignments.defaults
Class ERDDefaultDisplayNameAssignment
java.lang.Object
com.webobjects.directtoweb.Assignment
er.directtoweb.assignments.ERDAssignment
er.directtoweb.assignments.defaults.ERDDefaultDisplayNameAssignment
- All Implemented Interfaces:
- EOKeyValueArchiving, ERDComputingAssignmentInterface, ERDLocalizableAssignmentInterface, Serializable
public class ERDDefaultDisplayNameAssignment
- extends ERDAssignment
- implements ERDLocalizableAssignmentInterface
Beautify the display names for the various keys in D2W a better way.
- See Also:
- Serialized Form
- Author:
- ak
|
Field Summary |
protected static NSDictionary |
keys
holds the dependent keys of the assignment |
| Fields inherited from class com.webobjects.directtoweb.Assignment |
KeyPathKey, ValueKey |
| Methods inherited from class com.webobjects.directtoweb.Assignment |
encodeWithKeyValueArchiver, keyPath, toString, value, value |
keys
protected static final NSDictionary keys
- holds the dependent keys of the assignment
ERDDefaultDisplayNameAssignment
public ERDDefaultDisplayNameAssignment(EOKeyValueUnarchiver u)
- Public constructor
- Parameters:
u - key-value unarchiver used when unarchiving
from rule files.
ERDDefaultDisplayNameAssignment
public ERDDefaultDisplayNameAssignment(String key,
Object value)
- Public constructor
- Parameters:
key - context keyvalue - of the assignment
dependentKeys
public NSArray dependentKeys(String keyPath)
- Implementation of the
ERDComputingAssignmentInterface. This array
of keys is used when constructing the
significant keys for the passed in keyPath.
- Specified by:
dependentKeys in interface ERDComputingAssignmentInterface
- Parameters:
keyPath - to compute significant keys for.
- Returns:
- array of context keys this assignment depends upon.
decodeWithKeyValueUnarchiver
public static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
- 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
localizedValueForDisplayNameOfKeyPath
protected Object localizedValueForDisplayNameOfKeyPath(String keyPath,
com.webobjects.directtoweb.D2WContext c)
- Helper to get pull the value, pretty-print it and run it through the localizer.
displayNameForProperty
public Object displayNameForProperty(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
propertyKey, showing only the last component
displayNameForPropertyKeyPath
public Object displayNameForPropertyKeyPath(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the key path of the current
propertyKey
displayNameForEntity
public Object displayNameForEntity(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
entity.name
displayNameForDestinationEntity
public Object displayNameForDestinationEntity(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
destinationEntity
displayNameForSectionKey
public Object displayNameForSectionKey(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
sectionKey
displayNameForTabKey
public Object displayNameForTabKey(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
tabKey
displayNameForPageConfiguration
public Object displayNameForPageConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
pageConfiguration
displayNameForEditConfiguration
public Object displayNameForEditConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
editConfigurationName
displayNameForInspectConfiguration
public Object displayNameForInspectConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
inspectConfigurationName
displayNameForCreateConfiguration
public Object displayNameForCreateConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
createConfigurationName
displayNameForConfirmDeleteConfiguration
public Object displayNameForConfirmDeleteConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
confirmDeleteConfigurationName
Copyright © 2002 – 2011 Project Wonder.