|
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.appserver.WOElement com.webobjects.appserver.WOComponent er.extensions.ERXNonSynchronizingComponent er.extensions.ERXStatelessComponent
Abstract stateless component used as the super class for a number of components within the ER frameworks. Adds a number of nice binding resolution methods.
Nested Class Summary |
Nested classes inherited from class com.webobjects.appserver.WOComponent |
WOComponent._EventLoggingEnabler, WOComponent.Event |
Nested classes inherited from class com.webobjects.foundation.NSKeyValueCodingAdditions |
NSKeyValueCodingAdditions.DefaultImplementation, NSKeyValueCodingAdditions.Utility |
Nested classes inherited from class com.webobjects.foundation.NSValidation |
NSValidation._MethodBinding, NSValidation._ValidationBinding, NSValidation.DefaultImplementation, NSValidation.Utility, NSValidation.ValidationException |
Field Summary |
Fields inherited from class er.extensions.ERXNonSynchronizingComponent |
_dynamicBindings |
Fields inherited from class com.webobjects.appserver.WOComponent |
_Extension, _IsEventLoggingEnabled, _keyAssociations |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding |
_CLASS, NullValue |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCoding.ErrorHandling |
_CLASS |
Fields inherited from interface com.webobjects.foundation.NSKeyValueCodingAdditions |
_CLASS, _KeyPathSeparatorChar, KeyPathSeparator |
Fields inherited from interface com.webobjects.foundation.NSValidation |
_CLASS |
Constructor Summary | |
ERXStatelessComponent(WOContext context)
Public constructor |
Method Summary | |
boolean |
isStateless()
component is stateless |
void |
reset()
|
boolean |
valueForBooleanBinding(String binding)
Resolves a given binding as a boolean value. |
boolean |
valueForBooleanBinding(String binding,
boolean defaultValue)
Deprecated. use booleanValueForBinding() instead |
boolean |
valueForBooleanBinding(String binding,
ERXUtilities.BooleanOperation defaultValue)
Deprecated. use booleanValueForBinding() instead |
int |
valueForIntBinding(String binding,
int defaultValue)
Deprecated. use intValueForBinding() instead |
Object |
valueForObjectBinding(String binding)
Deprecated. use objectValueForBinding() instead |
Object |
valueForObjectBinding(String binding,
Object defaultValue)
Deprecated. use objectValueForBinding() instead |
Methods inherited from class er.extensions.ERXNonSynchronizingComponent |
booleanValueForBinding, booleanValueForBinding, booleanValueForBinding, dynamicBindings, intValueForBinding, localizer, objectValueForBinding, objectValueForBinding, stringValueForBinding, stringValueForBinding, synchronizesVariablesWithBindings |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ERXStatelessComponent(WOContext context)
Method Detail |
public boolean isStateless()
isStateless
in class ERXNonSynchronizingComponent
public int valueForIntBinding(String binding, int defaultValue)
binding
- binding to be resolved as a int value.defaultValue
- default int value to be used if the
binding is not bound.
public boolean valueForBooleanBinding(String binding)
binding
- binding to be resolved as a boolean value.
public boolean valueForBooleanBinding(String binding, boolean defaultValue)
binding
- binding to be resolved as a boolean value.defaultValue
- default boolean value to be used if the
binding is not bound.
public boolean valueForBooleanBinding(String binding, ERXUtilities.BooleanOperation defaultValue)
binding
- name of the component binding.defaultValue
- boolean operator to be evaluated if the
binding is not present.
public Object valueForObjectBinding(String binding)
valueForBinding
. This has the one advantage
of being able to resolve the resulting object as
a {link ERXUtilities$Operation} if it is an Operation and
then returning the result as the evaluation of that operation.
binding
- name of the component binding.
public Object valueForObjectBinding(String binding, Object defaultValue)
valueForBinding
. This has the one advantage
of being able to resolve the resulting object as
a {link ERXUtilities$Operation} if it is an Operation and
then returning the result as the evaluation of that operation.
binding
- name of the component binding.defaultValue
- value to be used if valueForBinding
returns null.
public void reset()
|
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 |