public abstract class ERDAssignment extends com.webobjects.directtoweb.Assignment implements ERDComputingAssignmentInterface
EOKeyValueArchiving._NullValueSupport, EOKeyValueArchiving._NumberSupport, EOKeyValueArchiving._TimestampSupport, EOKeyValueArchiving.Awaking, EOKeyValueArchiving.FinishInitialization, EOKeyValueArchiving.Support| Modifier and Type | Field and Description |
|---|---|
static java.lang.Class[] |
D2WContextClassArray
Cached context class array
|
static org.apache.log4j.Logger |
log
logging supprt
|
_CLASS| Constructor and Description |
|---|
ERDAssignment(EOKeyValueUnarchiver u)
Public constructor
|
ERDAssignment(java.lang.String key,
java.lang.Object value)
Public constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
booleanContextValueForKey(com.webobjects.directtoweb.D2WContext c,
java.lang.String key,
boolean defaultValue) |
java.lang.Object |
fire(com.webobjects.directtoweb.D2WContext c)
Method called to fire an assignment.
|
java.lang.String |
keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
There are basically two choices to lookup the method to
be called when an assignment is fired.
|
java.lang.Object |
localizedTemplateStringForKeyInContext(java.lang.String key,
com.webobjects.directtoweb.D2WContext c) |
java.lang.Object |
localizedValueForKeyInContext(java.lang.String key,
com.webobjects.directtoweb.D2WContext c)
Returns a localized value for a given key in a given
context if localization is enabled.
|
java.lang.Object |
localizedValueForKeyWithDefaultInContext(java.lang.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(java.lang.Class oldClass,
java.lang.Class newClass) |
decodeWithKeyValueUnarchiver, encodeWithKeyValueArchiver, keyPath, toString, value, valueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdependentKeyspublic static final org.apache.log4j.Logger log
public static final java.lang.Class[] D2WContextClassArray
public ERDAssignment(EOKeyValueUnarchiver u)
u - key-value unarchiver used when unarchiving
from rule files.public ERDAssignment(java.lang.String key,
java.lang.Object value)
key - context keyvalue - of the assignmentprotected boolean booleanContextValueForKey(com.webobjects.directtoweb.D2WContext c,
java.lang.String key,
boolean defaultValue)
protected static void logDeprecatedMessage(java.lang.Class oldClass,
java.lang.Class newClass)
public ERXLocalizer localizerForContext(com.webobjects.directtoweb.D2WContext c)
c - current contextpublic java.lang.Object localizedValueForKeyWithDefaultInContext(java.lang.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 java.lang.Object localizedValueForKeyInContext(java.lang.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 java.lang.Object localizedTemplateStringForKeyInContext(java.lang.String key,
com.webobjects.directtoweb.D2WContext c)
public java.lang.String keyForMethodLookup(com.webobjects.directtoweb.D2WContext c)
c - current contextpublic java.lang.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.Assignmentc - current D2W contextCopyright © 2002 – 2022 Project Wonder.