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 Class[] |
D2WContextClassArray
Cached context class array
|
static org.apache.log4j.Logger |
log
logging supprt
|
_CLASS
Constructor and Description |
---|
ERDAssignment(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 org.apache.log4j.Logger log
public static final Class[] D2WContextClassArray
public ERDAssignment(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 – 2024 Project Wonder.