1 28 29 package com.caucho.relaxng.pattern; 30 31 import com.caucho.relaxng.RelaxException; 32 import com.caucho.relaxng.program.Item; 33 import com.caucho.relaxng.program.TextItem; 34 35 38 public class TextPattern extends Pattern { 39 42 public TextPattern() 43 { 44 } 45 46 49 public Item createItem(GrammarPattern grammar) 50 throws RelaxException 51 { 52 return TextItem.TEXT; 53 } 54 55 58 public String toProduction() 59 { 60 return "text"; 61 } 62 63 public boolean equals(Object o) 64 { 65 if (this == o) 66 return true; 67 68 return o instanceof TextPattern; 69 } 70 71 74 public String toString() 75 { 76 return "TextPattern[]"; 77 } 78 } 79 80 | Popular Tags |