public class ERDDefaultsEmbeddedAssignment extends ERDAssignment
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
Modifier and Type | Field and Description |
---|---|
static NSArray |
_DEPENDENT_KEYS
holds the array of dependent keys
|
D2WContextClassArray
Constructor and Description |
---|
ERDDefaultsEmbeddedAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
Public constructor
|
ERDDefaultsEmbeddedAssignment(String key,
Object value)
Public constructor
|
Modifier and Type | Method and Description |
---|---|
static Object |
decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
Static constructor required by the EOKeyValueUnarchiver
interface.
|
NSArray |
defaultEmbeddedDisplayPropertyKeys(com.webobjects.directtoweb.D2WContext c)
Calculates the default embedded display property keys for a
given context.
|
String |
defaultEmbeddedEditPageConfiguration(com.webobjects.directtoweb.D2WContext c)
Calculates and returns the default embedded edit page
configuration to be used for embedded edit pages.
|
String |
defaultEmbeddedEntityDisplayName(com.webobjects.directtoweb.D2WContext c)
Calculates and returns the default embedded entity
display name.
|
Object |
defaultEmbeddedEntityName(com.webobjects.directtoweb.D2WContext c)
Calculates the default embedded entity name using the
current object and propertyKey.
|
String |
defaultEmbeddedInspectPageConfiguration(com.webobjects.directtoweb.D2WContext c)
Calculates and returns the default embedded inspect page
configuration to be used for embedded inspect pages.
|
String |
defaultEmbeddedListPageConfiguration(com.webobjects.directtoweb.D2WContext c)
Calculates and returns the default embedded list page
configuration to be used for embedded list pages.
|
NSArray |
dependentKeys(String keyPath)
Implementation of the
ERDComputingAssignmentInterface . |
String |
keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
By default the key path being requested is used
as the key to lookup the method to call on the
ERDAssignment subclass.
|
ERXLocalizer |
localizerForContext(com.webobjects.directtoweb.D2WContext c)
Gets the localizer for the current context.
|
booleanContextValueForKey, fire, localizedTemplateStringForKeyInContext, localizedValueForKeyInContext, localizedValueForKeyWithDefaultInContext, logDeprecatedMessage
public static final NSArray _DEPENDENT_KEYS
public ERDDefaultsEmbeddedAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
u
- key-value unarchiver used when unarchiving
from rule files.public static Object decodeWithKeyValueUnarchiver(com.webobjects.eocontrol.EOKeyValueUnarchiver eokeyvalueunarchiver)
eokeyvalueunarchiver
- to be unarchivedpublic NSArray dependentKeys(String keyPath)
ERDComputingAssignmentInterface
. This
assignment depends upon the context keys: "propertyKey", "object.entityName",
and "embeddedEntityName". This array of keys is used when constructing the
significant keys for the passed in keyPath.keyPath
- to compute significant keys for.public ERXLocalizer localizerForContext(com.webobjects.directtoweb.D2WContext c)
localizerForSession
off of ERXLocalizer
.localizerForContext
in class ERDAssignment
c
- a D2W contextpublic String defaultEmbeddedEntityDisplayName(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic NSArray defaultEmbeddedDisplayPropertyKeys(com.webobjects.directtoweb.D2WContext c)
c
- current D2W contextpublic Object defaultEmbeddedEntityName(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic String defaultEmbeddedListPageConfiguration(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic String defaultEmbeddedInspectPageConfiguration(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic String defaultEmbeddedEditPageConfiguration(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic String keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
value
of the assignment as the key to
lookup the method. For example if value of this
assignment is "foo", then when this assignment is
fired the method foo(D2WContext)
will
be called.keyForMethodLookup
in class ERDAssignment
c
- current contextvalue
of the assignment is returned.Copyright © 2002 – 2020 Project Wonder.