1 7 package org.jahia.security.license; 8 9 import java.io.Serializable ; 10 11 import org.jahia.utils.xml.XmlUtils; 12 import org.jahia.resourcebundle.ResourceMessage; 13 14 20 public class LimitValue implements Serializable { 21 22 private String value; 23 24 27 public LimitValue(String value) { 28 this.value = value; 29 } 30 33 public String getValue() { 34 return value; 35 } 36 37 public String toXMLString() { 38 return XmlUtils.escapeXml(value); 39 } 40 41 public boolean check(Validator validator) { 42 return validator.assertEquals(value); 43 } 44 45 public ResourceMessage getErrorMessage(Validator validator) { 46 return validator.getErrorMessage(); 47 } 48 49 } 50 | Popular Tags |