com.agilejava.docbkx.maven
Class ExpressionHandler

java.lang.Object
  extended by com.agilejava.docbkx.maven.ExpressionHandler
All Implemented Interfaces:
ProcessingInstructionHandler

public class ExpressionHandler
extends java.lang.Object
implements ProcessingInstructionHandler

A ProcessingInstructionHandler that evaluates expressions passed as data as JSP expression language expressions.

Author:
Wilfred Springer

Constructor Summary
ExpressionHandler(javax.servlet.jsp.el.VariableResolver resolver, org.apache.maven.plugin.logging.Log log)
          Constructs a new instance.
 
Method Summary
 void handle(java.lang.String data, org.xml.sax.ContentHandler handler)
          Handles the processing instruction, optionally using the handler to replace content.
 boolean matches(java.lang.String target)
          Returns a boolean indicating if this filter is interested in handling the processing instruction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExpressionHandler

public ExpressionHandler(javax.servlet.jsp.el.VariableResolver resolver,
                         org.apache.maven.plugin.logging.Log log)
Constructs a new instance.

Parameters:
resolver - The object used for resolving variables. (Not null.)
log - The object used for logging. (Not null.)
Method Detail

handle

public void handle(java.lang.String data,
                   org.xml.sax.ContentHandler handler)
Description copied from interface: ProcessingInstructionHandler
Handles the processing instruction, optionally using the handler to replace content. Note that implementations need to take care that the result is still going to be a well-balanced XML document.

Specified by:
handle in interface ProcessingInstructionHandler
Parameters:
data - The data part of the processing instruction.
handler - The ContentHandler optionally receiving some additional events.

matches

public boolean matches(java.lang.String target)
Description copied from interface: ProcessingInstructionHandler
Returns a boolean indicating if this filter is interested in handling the processing instruction.

Specified by:
matches in interface ProcessingInstructionHandler
Parameters:
target - The target part of the processing instruction.
Returns:
A boolean indicating if this object has an interest in handling this processing instruction.


Copyright © 2006-2009. All Rights Reserved.