public class BindContextImpl extends java.lang.Object implements BindContext, java.io.Serializable
BindContext
.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BINDING_ARGS |
static java.lang.String |
COMMAND_ARGS |
static java.lang.String |
CONVERTER_ARGS |
static java.lang.String |
VALIDATOR_ARGS |
Constructor and Description |
---|
BindContextImpl(Binder binder,
Binding binding,
boolean save,
java.lang.String command,
Component comp,
Event event) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getAttribute(java.lang.Object key)
Returns value of the given key in this Bind Context.
|
java.util.Map<java.lang.Object,java.lang.Object> |
getAttributes()
Returns a copy of all attributes in this Bind context.
|
Binder |
getBinder()
Returns associated Binder of this Bind context.
|
Binding |
getBinding()
Returns associated Binding of this Bind context.
|
java.lang.Object |
getBindingArg(java.lang.String key)
Returns binding arg value of the given key in this Bind Context.
|
java.util.Map<java.lang.String,java.lang.Object> |
getBindingArgs() |
java.lang.Object |
getCommandArg(java.lang.String key)
Returns command arg value of the given key in this Bind Context.
|
java.util.Map<java.lang.String,java.lang.Object> |
getCommandArgs() |
java.lang.String |
getCommandName()
Returns associated command name of this Bind Context; null if not involved.
|
Component |
getComponent()
Returns the associated component context.
|
java.lang.Object |
getConverterArg(java.lang.String key)
Returns converter arg value of the given key in this Bind Context.
|
java.util.Map<java.lang.String,java.lang.Object> |
getConverterArgs() |
Event |
getTriggerEvent()
Returns associated event that trigger the associated command; null if not involved.
|
java.lang.Object |
getValidatorArg(java.lang.String key)
Returns validator arg value of the given key in this Bind Context.
|
java.util.Map<java.lang.String,java.lang.Object> |
getValidatorArgs() |
boolean |
isSave()
Returns whether currently is doing save operation.
|
java.lang.Object |
setAttribute(java.lang.Object key,
java.lang.Object value)
Sets given value to the given key in this Bind context.
|
public static final java.lang.String COMMAND_ARGS
public static final java.lang.String BINDING_ARGS
public static final java.lang.String VALIDATOR_ARGS
public static final java.lang.String CONVERTER_ARGS
public Binder getBinder()
BindContext
getBinder
in interface BindContext
public Binding getBinding()
BindContext
getBinding
in interface BindContext
public java.lang.Object getAttribute(java.lang.Object key)
BindContext
getAttribute
in interface BindContext
key
- the key to the value.public java.lang.Object setAttribute(java.lang.Object key, java.lang.Object value)
BindContext
setAttribute
in interface BindContext
key
- the key to the valuevalue
- the valuepublic java.util.Map<java.lang.Object,java.lang.Object> getAttributes()
BindContext
getAttributes
in interface BindContext
public java.lang.Object getCommandArg(java.lang.String key)
BindContext
getCommandArg
in interface BindContext
key
- the key to the value.public java.lang.Object getBindingArg(java.lang.String key)
BindContext
getBindingArg
in interface BindContext
key
- the key to the value.public java.lang.Object getConverterArg(java.lang.String key)
BindContext
getConverterArg
in interface BindContext
key
- the key to the value.public java.lang.Object getValidatorArg(java.lang.String key)
BindContext
getValidatorArg
in interface BindContext
key
- the key to the value.public java.util.Map<java.lang.String,java.lang.Object> getCommandArgs()
public java.util.Map<java.lang.String,java.lang.Object> getBindingArgs()
public java.util.Map<java.lang.String,java.lang.Object> getConverterArgs()
public java.util.Map<java.lang.String,java.lang.Object> getValidatorArgs()
public boolean isSave()
BindContext
isSave
in interface BindContext
public java.lang.String getCommandName()
BindContext
getCommandName
in interface BindContext
public Component getComponent()
BindContext
getComponent
in interface BindContext
public Event getTriggerEvent()
BindContext
getTriggerEvent
in interface BindContext
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.