Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Class TagMatchingAlgorithm

  extended by 
Direct Known Subclasses:

public abstract class TagMatchingAlgorithm
extends java.lang.Object

An algorithm that can be applied at a particular DOM node. The result may be expressed as a boolean or a set of matching nodes. The following are equivalent: false and empty set true and non-empty set Concrete implementations must be idempotent on evaluate(): 1) evaluate(node) must always return the same set if called repeatedly on the same node in the same DOM tree. 2) evaluate must be able to be called on any number of nodes in order and always produce the same result independent of what was called before and in what order.

Provisional API - subject to change

Method Summary
  AxiomaticSet evaluate (org.w3c.dom.Node applyTo)
 void initialize ()
          Called exactly once to initialize any pre-evaluation setup for the expression set for the algorithm.
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Method Detail


public final void initialize()
Called exactly once to initialize any pre-evaluation setup for the expression set for the algorithm. This is public to allow the client control when this initialization occurs in case it is expensive. evaluate() will call this method automatically if it has never been called

InvalidExpressionException - if the underlying algorithm throws an exception during init
java.lang.IllegalStateException - if it has already been determined that the expression is invalid.


public final 
AxiomaticSet evaluate(org.w3c.dom.Node applyTo)
applyTo -
the set matching the configured expression applied to applyTo using the algorithm represented by this instance.
InvalidExpressionException - of a problem occurs initializing the expression
EvaluationException - if the internal algorithm throws an exception while evaluating.
java.lang.IllegalStateException - if evaluate is called again once InvalidExpressionException has already been thrown.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire