Esempio n. 1
0
 public boolean allow(Meta meta) {
   boolean allowed = this.metaMatcher.match(meta);
   if (!allowed) {
     monitor.metaNotAllowed(meta, this);
   }
   return allowed;
 }
 public boolean allow(Meta meta) {
   boolean allowed;
   if (!include.isEmpty() && exclude.isEmpty()) {
     allowed = match(include, meta);
   } else if (include.isEmpty() && !exclude.isEmpty()) {
     allowed = !match(exclude, meta);
   } else if (!include.isEmpty() && !exclude.isEmpty()) {
     allowed = match(merge(include, exclude), meta) && !match(exclude, meta);
   } else {
     allowed = true;
   }
   if (!allowed) {
     monitor.metaNotAllowed(meta, this);
   }
   return allowed;
 }