Project Wonder 2.0

er.directtoweb
Class ERDDefaultConfigurationNameAssignment

java.lang.Object
  extended bycom.webobjects.directtoweb.Assignment
      extended byer.directtoweb.ERDAssignment
          extended byer.directtoweb.ERDDefaultConfigurationNameAssignment
All Implemented Interfaces:
EOKeyValueArchiving, ERDComputingAssignmentInterface, Serializable
Direct Known Subclasses:
ERDConfigurationAssignment, ERDTabConfigurationAssignment

public class ERDDefaultConfigurationNameAssignment
extends ERDAssignment

This assignment calculates default page configuration names for the current entity in the context.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class com.webobjects.eocontrol.EOKeyValueArchiving
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support
 
Field Summary
static NSArray _DEPENDENT_KEYS
          holds the array of keys this assignment depends upon
 
Fields inherited from class er.directtoweb.ERDAssignment
D2WContextClassArray, log
 
Fields inherited from class com.webobjects.directtoweb.Assignment
KeyPathKey, ValueKey
 
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving
_CLASS
 
Constructor Summary
ERDDefaultConfigurationNameAssignment(EOKeyValueUnarchiver u)
          Public constructor
ERDDefaultConfigurationNameAssignment(String key, Object value)
          Public constructor
 
Method Summary
 Object confirmConfigurationName(D2WContext c)
          Generates a default confirm page configuration based on the current entity name.
 Object confirmDeleteConfigurationName(D2WContext c)
          Generates a default confirm delete page configuration based on the current entity name.
 Object createConfigurationName(D2WContext c)
          Generates a default create page configuration based on the current entity name.
 Object createTabConfigurationName(D2WContext c)
          Generates a default create tab page configuration based on the current entity name.
 Object createWizardConfigurationName(D2WContext c)
          Generates a default create tab page configuration based on the current entity name.
static Object decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver)
          Static constructor required by the EOKeyValueUnarchiver interface.
 NSArray dependentKeys(String keyPath)
          Implementation of the ERDComputingAssignmentInterface.
 Object editConfigurationName(D2WContext c)
          Generates a default edit page configuration based on the current entity name.
 Object editEmbeddedConfigurationName(D2WContext c)
          Generates a default embedded edit page configuration based on the current entity name.
 Object editRelationshipConfigurationName(D2WContext c)
          Generates a default edit relationship page configuration based on the current entity name.
 Object editTabConfigurationName(D2WContext c)
          Generates a default edit tab page configuration based on the current entity name.
protected  String entityNameForContext(D2WContext c)
          Calculates the entity name for a given context.
 Object inspectConfigurationName(D2WContext c)
          Generates a default inspect page configuration based on the current entity name.
 Object inspectEmbeddedConfigurationName(D2WContext c)
          Generates a default inspect page configuration based on the current entity name.
 Object inspectTabConfigurationName(D2WContext c)
          Generates a default inspect tab page configuration based on the current entity name.
 Object listConfigurationName(D2WContext c)
          Generates a default list page configuration based on the current entity name.
 Object listEmbeddedConfigurationName(D2WContext c)
          Generates a default list page configuration based on the current entity name.
 Object queryConfigurationName(D2WContext c)
          Generates a default query page configuration based on the current entity name.
 
Methods inherited from class er.directtoweb.ERDAssignment
booleanContextValueForKey, fire, keyForMethodLookup, localizedTemplateStringForKeyInContext, localizedValueForKeyInContext, localizedValueForKeyWithDefaultInContext, localizerForContext, logDeprecatedMessage
 
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
 

Field Detail

_DEPENDENT_KEYS

public static final NSArray _DEPENDENT_KEYS
holds the array of keys this assignment depends upon

Constructor Detail

ERDDefaultConfigurationNameAssignment

public ERDDefaultConfigurationNameAssignment(EOKeyValueUnarchiver u)
Public constructor

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

ERDDefaultConfigurationNameAssignment

public ERDDefaultConfigurationNameAssignment(String key,
                                             Object value)
Public constructor

Parameters:
key - context key
value - of the assignment
Method Detail

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

dependentKeys

public NSArray dependentKeys(String keyPath)
Implementation of the ERDComputingAssignmentInterface. This assignment depends upon the context keys: "entity.name" and "object.entityName". 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.

entityNameForContext

protected String entityNameForContext(D2WContext c)
Calculates the entity name for a given context. If the property is a relationship (meaning that destinationEntity is set) then this entity is used

Parameters:
c - a D2W context
Returns:
the current entity name for that context.

confirmConfigurationName

public Object confirmConfigurationName(D2WContext c)
Generates a default confirm page configuration based on the current entity name. Default format is 'Confirm' + entity name.

Parameters:
c - current D2W context
Returns:
default confirm page configuration name

confirmDeleteConfigurationName

public Object confirmDeleteConfigurationName(D2WContext c)
Generates a default confirm delete page configuration based on the current entity name. Default format is 'ConfirmDelete' + entity name.

Parameters:
c - current D2W context
Returns:
default confirm delete page configuration name

createConfigurationName

public Object createConfigurationName(D2WContext c)
Generates a default create page configuration based on the current entity name. Default format is 'Create' + entity name.

Parameters:
c - current D2W context
Returns:
default create page configuration name

editConfigurationName

public Object editConfigurationName(D2WContext c)
Generates a default edit page configuration based on the current entity name. Default format is 'Edit' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

editRelationshipConfigurationName

public Object editRelationshipConfigurationName(D2WContext c)
Generates a default edit relationship page configuration based on the current entity name. Default format is 'EditRelationship' + entity name.

Parameters:
c - current D2W context
Returns:
default edit relationship page configuration name

editEmbeddedConfigurationName

public Object editEmbeddedConfigurationName(D2WContext c)
Generates a default embedded edit page configuration based on the current entity name. Default format is 'Edit' + entity name.

Parameters:
c - current D2W context
Returns:
default edit page configuration name

inspectConfigurationName

public Object inspectConfigurationName(D2WContext c)
Generates a default inspect page configuration based on the current entity name. Default format is 'Inspect' + entity name.

Parameters:
c - current D2W context
Returns:
default inspect page configuration name

inspectEmbeddedConfigurationName

public Object inspectEmbeddedConfigurationName(D2WContext c)
Generates a default inspect page configuration based on the current entity name. Default format is 'InspectEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default inspect page configuration name

listConfigurationName

public Object listConfigurationName(D2WContext c)
Generates a default list page configuration based on the current entity name. Default format is 'List' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

listEmbeddedConfigurationName

public Object listEmbeddedConfigurationName(D2WContext c)
Generates a default list page configuration based on the current entity name. Default format is 'ListEmbedded' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

queryConfigurationName

public Object queryConfigurationName(D2WContext c)
Generates a default query page configuration based on the current entity name. Default format is 'Query' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

inspectTabConfigurationName

public Object inspectTabConfigurationName(D2WContext c)
Generates a default inspect tab page configuration based on the current entity name. Default format is 'InspectTab' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

editTabConfigurationName

public Object editTabConfigurationName(D2WContext c)
Generates a default edit tab page configuration based on the current entity name. Default format is 'EditTab' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

createTabConfigurationName

public Object createTabConfigurationName(D2WContext c)
Generates a default create tab page configuration based on the current entity name. Default format is 'CreateTab' + entity name.

Parameters:
c - current D2W context
Returns:
default list page configuration name

createWizardConfigurationName

public Object createWizardConfigurationName(D2WContext c)
Generates a default create tab page configuration based on the current entity name. Default format is 'Create' + entity name + 'Wizard'.

Parameters:
c - current D2W context
Returns:
default list page configuration name

Last updated: Do, Dez 9, 2004 • 12:46 PM CET

Copyright © 2002 – 2004 Project Wonder.