com.japisoft.fastparser.walker
Class AttributeCriteria

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

public class AttributeCriteria
extends java.lang.Object
implements ValidCriteria

Match tag with the good attribute name and value

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

Constructor Summary
AttributeCriteria(java.lang.String attribute)
          Match the following attribute
AttributeCriteria(java.lang.String attribute, java.lang.String value)
          Match the following attribute and value
 
Method Summary
 boolean isValid(SimpleNode node)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeCriteria

public AttributeCriteria(java.lang.String attribute)
Match the following attribute


AttributeCriteria

public AttributeCriteria(java.lang.String attribute,
                         java.lang.String value)
Match the following attribute and value

Method Detail

isValid

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