1 package org.sapia.validator; 2 3 4 18 public class RuleRef implements Validatable { 19 private String _ref; 20 21 24 public RuleRef() { 25 super(); 26 } 27 28 33 public void setId(String ref) { 34 _ref = ref; 35 } 36 37 42 public String getId() { 43 return _ref; 44 } 45 46 49 public void validate(ValidationContext ctx) { 50 ctx.getConfig().getRule(_ref).validate(ctx); 51 } 52 } 53 | Popular Tags |