edu.utexas.its.eis.tools.qwicap.template.css
Class CSSPatterns

java.lang.Object
  extended by edu.utexas.its.eis.tools.qwicap.template.css.CSSPatterns

public final class CSSPatterns
extends Object

CSSPatterns represents one or more CSS2 patterns.

Author:
Chris W. Johnson

Constructor Summary
CSSPatterns(String PatternStr)
          Creates a CSSPatterns object from a string containing a comma-separated list of CSS2 patterns.
 
Method Summary
 Namespace getDefaultNamespace()
           
 Namespace getNamespaceForPrefix(String NsPrefix)
           
 Results search(MarkupEnumeration Enumerator)
          Searches the markup supplied by a MarkupEnumeration object for elements that match any of the patterns represented by this object.
 Results search(MarkupEnumeration Enumerator, Results DestResults)
          Searches the markup supplied by a MarkupEnumeration object for elements that match any of the patterns represented by this object.
 String toString()
          Recreates the string representation of this CSS2 pattern list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSSPatterns

public CSSPatterns(String PatternStr)
Creates a CSSPatterns object from a string containing a comma-separated list of CSS2 patterns.

Parameters:
PatternStr - A comma-separated list of CSS2 patterns. If there is no comma in the string, it is assumed that it contains only one pattern, which is perfectly acceptable.
Method Detail

toString

public String toString()
Recreates the string representation of this CSS2 pattern list.

Overrides:
toString in class Object
Returns:
The string representation of this CSS2 pattern list.

getDefaultNamespace

public Namespace getDefaultNamespace()

getNamespaceForPrefix

public Namespace getNamespaceForPrefix(String NsPrefix)

search

public Results search(MarkupEnumeration Enumerator)
Searches the markup supplied by a MarkupEnumeration object for elements that match any of the patterns represented by this object.

Parameters:
Enumerator - A MarkupEnumeration that will supply the markup to be searched.
Returns:
A Results object containing the search results.

search

public Results search(MarkupEnumeration Enumerator,
                      Results DestResults)
Searches the markup supplied by a MarkupEnumeration object for elements that match any of the patterns represented by this object.

Parameters:
Enumerator - A MarkupEnumeration that will supply the markup to be searched.
DestResults - The results of this search will be added to this Results object. If null, a new Results object is created.
Returns:
The Results object to which the search results were added.