source: xssim/trunk/src/test/rewolucja/resources/utils/validator/ResourceNameValidator.java @ 104

Revision 104, 401 bytes checked in by wojtekp, 13 years ago (diff)
  • Property svn:mime-type set to text/plain
Line 
1package test.rewolucja.resources.utils.validator;
2
3import test.rewolucja.resources.physical.base.ComputingResource;
4
5public class ResourceNameValidator implements ResourceValidator {
6
7        private String name;
8        public ResourceNameValidator(String name) {
9                super();
10                this.name = name;
11        }       
12
13        @Override
14        public boolean validate(ComputingResource resource) {
15                return resource.getName().equals(name);
16        }
17
18}
Note: See TracBrowser for help on using the repository browser.