1 61 62 package org.jaxen.pattern; 63 64 import org.jaxen.Context; 65 66 71 public class TextNodeTest extends NodeTest { 72 73 public static final TextNodeTest SINGLETON = new TextNodeTest(); 74 75 public TextNodeTest() 76 { 77 } 78 79 81 public boolean matches( Object node, Context context ) 82 { 83 return context.getNavigator().isText( node ); 84 } 85 86 public double getPriority() 87 { 88 return -0.5; 89 } 90 91 public short getMatchType() 92 { 93 return Pattern.TEXT_NODE; 94 } 95 96 public String getText() 97 { 98 return "text()"; 99 } 100 } 101 | Popular Tags |