Class SavePropertyBindingImpl

All Implemented Interfaces:
Serializable, Binding, PropertyBinding, SaveBinding, SavePropertyBinding

public class SavePropertyBindingImpl extends PropertyBindingImpl implements SavePropertyBinding
Implementation of SavePropertyBinding.
Since:
6.0.0
Author:
henrichen
See Also:
  • Constructor Details

  • Method Details

    • getValidatorArgs

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

      protected boolean ignoreTracker()
      Overrides:
      ignoreTracker in class PropertyBindingImpl
    • getValidator

      public Validator getValidator()
      Description copied from interface: SaveBinding
      return Validator to do validation
      Specified by:
      getValidator in interface SaveBinding
      Returns:
      the validator if existed
    • getValidatorExpressionString

      public 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
      Parameters:
      ctx - the binding runtime context
    • getValidate

      public Property getValidate(BindContext ctx)
      Description copied from interface: SaveBinding
      Returns Property to be validated.
      Specified by:
      getValidate in interface SaveBinding
      Parameters:
      ctx - the binding runtime context
      Returns:
      Property to be validated.
    • 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
      Returns:
      whether to do validation.
    • validate

      public void validate(ValidationContext vctx)
      Description copied from interface: SaveBinding
      do the validation by validator
      Specified by:
      validate in interface SaveBinding
    • getBasePropertyIfFromCollection

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