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:
- com.webobjects.eocontrol.EOKeyValueArchiving, ERDComputingAssignmentInterface, ERDLocalizableAssignmentInterface, java.io.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
Nested classes/interfaces inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
com.webobjects.eocontrol.EOKeyValueArchiving._NullValueSupport, com.webobjects.eocontrol.EOKeyValueArchiving._NumberSupport, com.webobjects.eocontrol.EOKeyValueArchiving._TimestampSupport, com.webobjects.eocontrol.EOKeyValueArchiving.Awaking, com.webobjects.eocontrol.EOKeyValueArchiving.FinishInitialization, com.webobjects.eocontrol.EOKeyValueArchiving.Support |
Field Summary |
protected static com.webobjects.foundation.NSDictionary |
keys
holds the dependent keys of the assignment |
Fields inherited from class com.webobjects.directtoweb.Assignment |
KeyPathKey, ValueKey |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
_CLASS |
Methods inherited from class com.webobjects.directtoweb.Assignment |
encodeWithKeyValueArchiver, keyPath, toString, value, value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
keys
protected static final com.webobjects.foundation.NSDictionary keys
- holds the dependent keys of the assignment
ERDDefaultDisplayNameAssignment
public ERDDefaultDisplayNameAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
- Public constructor
- Parameters:
u
- key-value unarchiver used when unarchiving
from rule files.
ERDDefaultDisplayNameAssignment
public ERDDefaultDisplayNameAssignment(java.lang.String key,
java.lang.Object value)
- Public constructor
- Parameters:
key
- context keyvalue
- of the assignment
dependentKeys
public com.webobjects.foundation.NSArray dependentKeys(java.lang.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 java.lang.Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.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 java.lang.Object localizedValueForDisplayNameOfKeyPath(java.lang.String keyPath,
com.webobjects.directtoweb.D2WContext c)
- Helper to get pull the value, pretty-print it and run it through the localizer.
displayNameForProperty
public java.lang.Object displayNameForProperty(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
propertyKey
, showing only the last component
displayNameForPropertyKeyPath
public java.lang.Object displayNameForPropertyKeyPath(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the key path of the current
propertyKey
displayNameForEntity
public java.lang.Object displayNameForEntity(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
entity.name
displayNameForDestinationEntity
public java.lang.Object displayNameForDestinationEntity(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
destinationEntity
displayNameForSectionKey
public java.lang.Object displayNameForSectionKey(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
sectionKey
displayNameForTabKey
public java.lang.Object displayNameForTabKey(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
tabKey
displayNameForPageConfiguration
public java.lang.Object displayNameForPageConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
pageConfiguration
displayNameForEditConfiguration
public java.lang.Object displayNameForEditConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
editConfigurationName
displayNameForInspectConfiguration
public java.lang.Object displayNameForInspectConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
inspectConfigurationName
displayNameForCreateConfiguration
public java.lang.Object displayNameForCreateConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
createConfigurationName
displayNameForConfirmDeleteConfiguration
public java.lang.Object displayNameForConfirmDeleteConfiguration(com.webobjects.directtoweb.D2WContext c)
- Returns:
- a beautified, localized display name for the current
confirmDeleteConfigurationName
Copyright © 2002 – 2007 Project Wonder.