public class SavePropertyBindingImpl extends PropertyBindingImpl implements SavePropertyBinding
SavePropertyBinding
._accessInfo, _fieldExpr
Constructor and Description |
---|
SavePropertyBindingImpl(Binder binder,
Component comp,
java.lang.String attr,
java.lang.String saveAttr,
java.lang.String saveExpr,
ConditionType conditionType,
java.lang.String command,
java.util.Map<java.lang.String,java.lang.Object> bindingArgs,
java.lang.String converterExpr,
java.util.Map<java.lang.String,java.lang.Object> converterArgs,
java.lang.String validatorExpr,
java.util.Map<java.lang.String,java.lang.Object> validatorArgs) |
Modifier and Type | Method and Description |
---|---|
Property |
getValidate(BindContext ctx)
Returns
Property to be validated. |
Validator |
getValidator()
return
Validator to do validation |
java.util.Map<java.lang.String,java.lang.Object> |
getValidatorArgs()
Returns an argument
|
java.lang.String |
getValidatorExpressionString() |
boolean |
hasValidator()
Returns whether to do validation. which means, if true, than getValidator should not return null
|
protected boolean |
ignoreTracker() |
void |
save(BindContext ctx)
Save data from the source attribute into the target property.
|
void |
validate(ValidationContext vctx)
do the validation by validator
|
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString, toString
containsAttribute, getArgs, getAttribute, getBinder, getComponent, setAttribute
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCommandName, getConditionType, getConverter, getConverterArgs, getFieldName, getProperty, getPropertyString
getArgs, getBinder, getComponent
public SavePropertyBindingImpl(Binder binder, Component comp, java.lang.String attr, java.lang.String saveAttr, java.lang.String saveExpr, ConditionType conditionType, java.lang.String command, java.util.Map<java.lang.String,java.lang.Object> bindingArgs, java.lang.String converterExpr, java.util.Map<java.lang.String,java.lang.Object> converterArgs, java.lang.String validatorExpr, java.util.Map<java.lang.String,java.lang.Object> validatorArgs)
public java.util.Map<java.lang.String,java.lang.Object> getValidatorArgs()
SaveBinding
getValidatorArgs
in interface SaveBinding
protected boolean ignoreTracker()
ignoreTracker
in class PropertyBindingImpl
public Validator getValidator()
SaveBinding
Validator
to do validationgetValidator
in interface SaveBinding
public java.lang.String getValidatorExpressionString()
public void save(BindContext ctx)
SaveBinding
save
in interface SaveBinding
ctx
- the binding runtime contextpublic Property getValidate(BindContext ctx)
SaveBinding
Property
to be validated.getValidate
in interface SaveBinding
ctx
- the binding runtime contextProperty
to be validated.public boolean hasValidator()
SaveBinding
hasValidator
in interface SaveBinding
public void validate(ValidationContext vctx)
SaveBinding
validate
in interface SaveBinding
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.