com.japisoft.fastparser.walker
Class TextCriteria

java.lang.Object
  |
  +--com.japisoft.fastparser.walker.TextCriteria
All Implemented Interfaces:
ValidCriteria

public class TextCriteria
extends java.lang.Object
implements ValidCriteria

Match text or sub-text

Version:
1.0
Author:
Alexandre Brillant (abrillant@wanadoo.fr)

Constructor Summary
TextCriteria()
          Match all Text node
TextCriteria(java.lang.String text)
          Match text nodes with the following sub-text
 
Method Summary
 boolean isValid(SimpleNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextCriteria

public TextCriteria()
Match all Text node


TextCriteria

public TextCriteria(java.lang.String text)
Match text nodes with the following sub-text

Method Detail

isValid

public boolean isValid(SimpleNode node)
Specified by:
isValid in interface ValidCriteria