|
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
Abstract non-synchronizing 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 | |
NSMutableDictionary |
_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 | |
ERXNonSynchronizingComponent(WOContext context)
Public constructor |
Method Summary | |
boolean |
booleanValueForBinding(String binding)
Resolves a given binding as a boolean value. |
boolean |
booleanValueForBinding(String binding,
boolean defaultValue)
Resolves a given binding as a boolean value. |
boolean |
booleanValueForBinding(String binding,
ERXUtilities.BooleanOperation defaultValue)
Resolves a given binding as a boolean value with the option of specifing a boolean operator as the default value. |
NSMutableDictionary |
dynamicBindings()
|
int |
intValueForBinding(String binding,
int defaultValue)
Resolves a given binding as a int value. |
boolean |
isStateless()
component is not stateless |
ERXLocalizer |
localizer()
|
Object |
objectValueForBinding(String binding)
Resolves a given binding as an object in the normal fashion of calling valueForBinding . |
Object |
objectValueForBinding(String binding,
Object defaultValue)
Resolves a given binding as an object in the normal fashion of calling valueForBinding . |
String |
stringValueForBinding(String binding)
Retrieves a given binding and if it is not null then returns toString called on the
bound object. |
String |
stringValueForBinding(String binding,
String defaultValue)
Retrieves a given binding and if it is not null then returns toString called on the
bound object. |
boolean |
synchronizesVariablesWithBindings()
component does not synchronize variables |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public NSMutableDictionary _dynamicBindings
Constructor Detail |
public ERXNonSynchronizingComponent(WOContext context)
Method Detail |
public NSMutableDictionary dynamicBindings()
public boolean synchronizesVariablesWithBindings()
public boolean isStateless()
public int intValueForBinding(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 booleanValueForBinding(String binding)
binding
- binding to be resolved as a boolean value.
public boolean booleanValueForBinding(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 booleanValueForBinding(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 objectValueForBinding(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 objectValueForBinding(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 String stringValueForBinding(String binding)
toString
called on the
bound object.
binding
- to be resolved
public String stringValueForBinding(String binding, String defaultValue)
toString
called on the
bound object.
binding
- to be resolveddefaultValue
- value to be used if valueForBinding
returns null.
public ERXLocalizer localizer()
|
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 |