|
Project Wonder 2.0 | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.webobjects.directtoweb.Assignment er.directtoweb.ERDAssignment
Abstact super class of most assignments found in the ERDirectToWeb framework. This class provides default implementations for localization support and dynamic method lookup for firing rules.
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 Class[] |
D2WContextClassArray
Cached context class array |
static ERXLogger |
log
logging supprt |
Fields inherited from class com.webobjects.directtoweb.Assignment |
KeyPathKey, ValueKey |
Fields inherited from interface com.webobjects.eocontrol.EOKeyValueArchiving |
_CLASS |
Constructor Summary | |
ERDAssignment(EOKeyValueUnarchiver u)
Public constructor |
|
ERDAssignment(String key,
Object value)
Public constructor |
Method Summary | |
protected boolean |
booleanContextValueForKey(D2WContext c,
String key,
boolean defaultValue)
|
Object |
fire(D2WContext c)
Method called to fire an assignment. |
String |
keyForMethodLookup(D2WContext c)
There are basically two choices to lookup the method to be called when an assignment is fired. |
Object |
localizedTemplateStringForKeyInContext(String key,
D2WContext c)
|
Object |
localizedValueForKeyInContext(String key,
D2WContext c)
Returns a localized value for a given key in a given context if localization is enabled. |
Object |
localizedValueForKeyWithDefaultInContext(String key,
D2WContext c)
Returns a localized value for a given key in a given context if localization is enabled. |
ERXLocalizer |
localizerForContext(D2WContext c)
Gets the localizer for a given context. |
protected static void |
logDeprecatedMessage(Class oldClass,
Class newClass)
|
Methods inherited from class com.webobjects.directtoweb.Assignment |
decodeWithKeyValueUnarchiver, encodeWithKeyValueArchiver, keyPath, toString, value, value |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface er.directtoweb.ERDComputingAssignmentInterface |
dependentKeys |
Field Detail |
public static final ERXLogger log
public static final Class[] D2WContextClassArray
Constructor Detail |
public ERDAssignment(EOKeyValueUnarchiver u)
u
- key-value unarchiver used when unarchiving
from rule files.public ERDAssignment(String key, Object value)
key
- context keyvalue
- of the assignmentMethod Detail |
protected boolean booleanContextValueForKey(D2WContext c, String key, boolean defaultValue)
protected static void logDeprecatedMessage(Class oldClass, Class newClass)
public ERXLocalizer localizerForContext(D2WContext c)
ERDLocaizableInterface
.
c
- current context
public Object localizedValueForKeyWithDefaultInContext(String key, D2WContext c)
localizedStringForKeyWithDefault
on the
localizer for the given context. This method belongs to
ERDLocalizableInterface
.
key
- to be looked up on the context
public Object localizedValueForKeyInContext(String key, D2WContext c)
valueForKeyPath
on the
localizer for the given context. This method belongs to
ERDLocaizableInterface
.
key
- to be looked up on the context
public Object localizedTemplateStringForKeyInContext(String key, D2WContext c)
public String keyForMethodLookup(D2WContext c)
public Object fire(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.
c
- current D2W context
|
Last updated: Do, Dez 9, 2004 12:46 PM CET | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |