Class SavePropertyBindingImpl

    • Constructor Detail

      • SavePropertyBindingImpl

        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)
    • Method Detail

      • getValidatorArgs

        public java.util.Map<java.lang.String,​java.lang.Object> getValidatorArgs()
        Description copied from interface: SaveBinding
        Returns an argument <tags, object> pairs map for validator.
        Specified by:
        getValidatorArgs in interface SaveBinding
        an argument <tags, object> pairs map for validator.
      • getValidatorExpressionString

        public java.lang.String getValidatorExpressionString()
      • save

        public void save​(BindContext ctx)
        Description copied from interface: SaveBinding
        Save data from the source attribute into the target property.
        Specified by:
        save in interface SaveBinding
        ctx - the binding runtime context
      • hasValidator

        public boolean hasValidator()
        Description copied from interface: SaveBinding
        Returns whether to do validation. which means, if true, than getValidator should not return null
        Specified by:
        hasValidator in interface SaveBinding
        whether to do validation.
      • getBasePropertyIfFromCollection

        public Property getBasePropertyIfFromCollection()
        Internal use only, only for collections