1 18 19 package org.apache.tools.ant.types.selectors; 20 21 22 30 public class NotSelector extends NoneSelector { 31 32 35 public NotSelector() { 36 } 37 38 43 public NotSelector(FileSelector other) { 44 this(); 45 appendSelector(other); 46 } 47 48 51 public String toString() { 52 StringBuffer buf = new StringBuffer (); 53 if (hasSelectors()) { 54 buf.append("{notselect: "); 55 buf.append(super.toString()); 56 buf.append("}"); 57 } 58 return buf.toString(); 59 } 60 61 65 public void verifySettings() { 66 if (selectorCount() != 1) { 67 setError("One and only one selector is allowed within the " 68 + "<not> tag"); 69 } 70 } 71 72 } 73 74 | Popular Tags |