1   package com.trendmicro.grid.acl.metadata;
2   
3   /**
4    * Defines an interface for Meta element validators.
5    *
6    * @author Juergen_Kellerer, 2010-04-21
7    * @version 1.0
8    */
9   public interface Validator {
10  
11  	/**
12  	 * Returns true if the given meta data is valid according to the active profile.
13  	 *
14  	 * @param meta the meta element to validate.
15  	 * @return true if the given meta data is valid according to the active profile.
16  	 */
17  	boolean isValid(Meta meta);
18  
19  	/**
20  	 * Returns true if the given meta key may be read in the current active context.
21  	 *
22  	 * @param metaName the name of the meta element to check.
23  	 * @return true if the given meta key may be read in the current active context.
24  	 */
25  	boolean isReadable(String metaName);
26  
27  	/**
28  	 * Returns true if the given meta key may be written in the current active context.
29  	 *
30  	 * @param metaName the name of the meta element to check.
31  	 * @return true if the given meta key may be written in the current active context.
32  	 */
33  	boolean isWritable(String metaName);
34  }