OnlyOneExistsRule constructor

OnlyOneExistsRule(List<String> properties)

Creates a new validation rule and sets its values

  • properties a list of property names where at only one property must exist