com.raritantechnologies.xml.sax.filter.comparators
Interface CDataComparator

All Known Implementing Classes:
CDataAndComparator, CDataContainsComparator, CDataEqualsComparator, CDataIComparator, CDataIntegerRangeComparator, CDataListComparator, CDataOrComparator, CDataRangeComparator, CDataRegExprComparator

public interface CDataComparator

Base interface for objects that detect patterns in character data sections. Used by SAXDeleteFilter ElementSelector objects to determine if an element should be deleted from an XML document.


Developed by Raritan Technologies Inc..

Author:
Ted Sullivan

Method Summary
 void initialize(org.w3c.dom.Element elem)
           
 boolean matches(char[] source, int start, int length)
          determines if the character data source matches the criteria of this comparator.
 

Method Detail

matches

public boolean matches(char[] source,
                       int start,
                       int length)
determines if the character data source matches the criteria of this comparator.

Parameters:
source - character array obtained from original SAX parser.
start - position of the first character in the array to consider.
length - number of characters to consider.
Returns:
true if the characters match the criteria defined by this comparator. false otherwise.

initialize

public void initialize(org.w3c.dom.Element elem)