it.sauronsoftware.grab4j.html.search
Class Condition

java.lang.Object
  extended by it.sauronsoftware.grab4j.html.search.Condition

public class Condition
extends java.lang.Object

This class represents criteria conditions.

Author:
Carlo Pelliccia

Method Summary
 AttributeSelector[] getAttributeSelectors()
          This method returns the restrictions on attributes.
 int getIndexSelector()
          This method returns the restriction on the tag index.
 WildcardPattern getTagSelector()
          This method returns a pattern representing the restriction on the name of the tag.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAttributeSelectors

public AttributeSelector[] getAttributeSelectors()
This method returns the restrictions on attributes.

Returns:
The restrictions on attributes

getIndexSelector

public int getIndexSelector()
This method returns the restriction on the tag index. If less than 0 then no restriction on the index should be used.

Returns:
The restriction on the tag index. If less than 0 then no restriction on the index should be used.

getTagSelector

public WildcardPattern getTagSelector()
This method returns a pattern representing the restriction on the name of the tag.

Returns:
A pattern representing the restriction on the name of the tag.