public abstract class ERDAssignment extends com.webobjects.directtoweb.Assignment implements ERDComputingAssignmentInterface
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 Class[] |
D2WContextClassArray
Cached context class array
|
static Logger |
log
logging supprt
|
Constructor and Description |
---|
ERDAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
Public constructor
|
ERDAssignment(String key,
Object value)
Public constructor
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
booleanContextValueForKey(com.webobjects.directtoweb.D2WContext c,
String key,
boolean defaultValue) |
Object |
fire(com.webobjects.directtoweb.D2WContext c)
Method called to fire an assignment.
|
String |
keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
There are basically two choices to lookup the method to
be called when an assignment is fired.
|
Object |
localizedTemplateStringForKeyInContext(String key,
com.webobjects.directtoweb.D2WContext c) |
Object |
localizedValueForKeyInContext(String key,
com.webobjects.directtoweb.D2WContext c)
Returns a localized value for a given key in a given
context if localization is enabled.
|
Object |
localizedValueForKeyWithDefaultInContext(String key,
com.webobjects.directtoweb.D2WContext c)
Returns a localized value for a given key in a given
context if localization is enabled.
|
ERXLocalizer |
localizerForContext(com.webobjects.directtoweb.D2WContext c)
Gets the localizer for a given context.
|
protected static void |
logDeprecatedMessage(Class oldClass,
Class newClass) |
decodeWithKeyValueUnarchiver, encodeWithKeyValueArchiver, keyPath, toString, value, value
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
dependentKeys
public static final Logger log
public static final Class[] D2WContextClassArray
public ERDAssignment(com.webobjects.eocontrol.EOKeyValueUnarchiver u)
u
- key-value unarchiver used when unarchiving
from rule files.protected boolean booleanContextValueForKey(com.webobjects.directtoweb.D2WContext c, String key, boolean defaultValue)
public ERXLocalizer localizerForContext(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic Object localizedValueForKeyWithDefaultInContext(String key, com.webobjects.directtoweb.D2WContext c)
localizedStringForKeyWithDefault
on the
localizer for the given context.key
- to be looked up on the contextc
- current contextpublic Object localizedValueForKeyInContext(String key, com.webobjects.directtoweb.D2WContext c)
valueForKeyPath
on the
localizer for the given context.key
- to be looked up on the contextc
- current contextpublic Object localizedTemplateStringForKeyInContext(String key, com.webobjects.directtoweb.D2WContext c)
public String keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
c
- current contextpublic Object fire(com.webobjects.directtoweb.D2WContext c)
keyForMethodLookup
. The default
implementation will lookup the method based on the
key path of the assignment. If you are building a
generic assignment like a BooleanAssignment you
should override this method seeing as you wouldn't
care what the key path of the assignment is. If you
would like to provide a different methodology for the
method to be fired override the method keyForMethodLookup.fire
in class com.webobjects.directtoweb.Assignment
c
- current D2W contextCopyright © 2002 – 2020 Project Wonder.