1 8 9 package net.sourceforge.chaperon.model.extended; 10 11 import net.sourceforge.chaperon.model.Violations; 12 13 19 public class UniversalCharacter extends Pattern 20 { 21 24 public UniversalCharacter() {} 25 26 public boolean isNullable() 27 { 28 return false; 29 } 30 31 public PatternSet getFirstSet() 32 { 33 PatternSet set = new PatternSet(); 34 set.addPattern(this); 35 return set; 36 } 37 38 public PatternSet getLastSet() 39 { 40 PatternSet set = new PatternSet(); 41 set.addPattern(this); 42 return set; 43 } 44 45 public char[] getLimits() 46 { 47 return new char[0]; 48 } 49 50 public boolean contains(char minimum, char maximum) 51 { 52 return true; 53 } 54 55 public boolean contains(char c) 56 { 57 return true; 58 } 59 60 public String getSymbol() 61 { 62 return null; 63 } 64 65 70 public String toString() 71 { 72 return "."; 73 } 74 75 82 public Object clone() 83 { 84 UniversalCharacter clone = new UniversalCharacter(); 85 return clone; 86 } 87 88 93 public Violations validate() 94 { 95 return null; 96 } 97 } 98 | Popular Tags |