KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > security > license > AbstractValidator


1 package org.jahia.security.license;
2
3 import org.jahia.resourcebundle.ResourceMessage;
4
5 /**
6  * <p>Title: </p>
7  * <p>Description: </p>
8  * <p>Copyright: Copyright (c) 2002</p>
9  * <p>Company: Jahia Ltd</p>
10  * @author Serge Huber
11  * @version 1.0
12  */

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