org.apache.maven.jelly
Class MavenExpressionFactory

java.lang.Object
  extended byorg.apache.maven.jelly.MavenExpressionFactory
All Implemented Interfaces:
ExpressionFactory

public class MavenExpressionFactory
extends java.lang.Object
implements ExpressionFactory

Represents a factory of Jexl expression which fully supports the Expression Language in JSTL and JSP. In addition this ExpressionFactory can also support Ant style variable names, where '.' is used inside variable names.

Version:
$Revision: 517014 $
Author:
James Strachan

Constructor Summary
MavenExpressionFactory()
           
 
Method Summary
 Expression createExpression(java.lang.String text)
           
 boolean isSupportAntVariables()
           
protected  boolean isValidAntVariableName(java.lang.String text)
          Determine if a variable name is a valid ant variable name.
 void setSupportAntVariables(boolean supportAntVariables)
          Sets whether we should allow Ant-style expresssions, using dots as part of variable name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenExpressionFactory

public MavenExpressionFactory()
Method Detail

createExpression

public Expression createExpression(java.lang.String text)
                            throws JellyException
Specified by:
createExpression in interface ExpressionFactory
Throws:
JellyException
See Also:
ExpressionFactory

isSupportAntVariables

public boolean isSupportAntVariables()
Returns:
whether we should allow Ant-style expresssions, using dots as part of variable name

setSupportAntVariables

public void setSupportAntVariables(boolean supportAntVariables)
Sets whether we should allow Ant-style expresssions, using dots as part of variable name

Parameters:
supportAntVariables - true to indicate that ant variable should be supported, otherwise false.

isValidAntVariableName

protected boolean isValidAntVariableName(java.lang.String text)
Determine if a variable name is a valid ant variable name.

Parameters:
text - The text to test.
Returns:
true if the given string is a valid Ant variable name, typically thats alphanumeric text with '.' etc.


Copyright © 2001-2008 Apache Software Foundation. All Rights Reserved.