1 package org.jahia.security.license; 2 3 import org.jahia.resourcebundle.ResourceMessage; 4 5 13 14 public abstract class AbstractValidator implements Validator { 15 16 protected String name; 17 protected String value; 18 protected License license; 19 20 protected ResourceMessage errorMessage = null; 21 22 public AbstractValidator(String name, String value, License license) { 23 this.name = name; 24 this.value = value; 25 this.license = license; 26 } 27 28 public abstract boolean assertEquals(String value); 29 30 public abstract boolean assertInRange(String fromValue, String toValue); 31 32 public ResourceMessage getErrorMessage() { 33 return errorMessage; 34 } 35 36 } | Popular Tags |