This project has retired. For details please refer to its Attic page.
Expression (Tiles 2 2.2.2 API)

org.apache.tiles
Class Expression

Package class diagram package Expression
java.lang.Object
  extended by org.apache.tiles.Expression

public class Expression
extends Object

It is an expression, along with the expression language (e.g. EL, MVEL, OGNL) it is expressed with.

Since:
2.2.0
Version:
$Rev: 788032 $ $Date: 2009-06-24 16:08:32 +0200 (mer, 24 giu 2009) $

Constructor Summary
Expression(Expression toCopy)
          Copy constructor.
Expression(String expression)
          Constructor, using the default (i.e.
Expression(String expression, String language)
          Constructor.
 
Method Summary
static Expression createExpression(String expression, String language)
          Creates an Expression object from the expression and its language.
static Expression createExpressionFromDescribedExpression(String describedExpression)
          Creates an Expression object from a string in the form LANGUAGE:EXPRESSION.
 boolean equals(Object obj)
          
 String getExpression()
          Returns the expression string.
 String getLanguage()
          Returns the language in which the expression is expressed.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Expression

public Expression(String expression,
                  String language)
Constructor.

Parameters:
expression - The expression itself.
language - The language of the expression.
Since:
2.2.0

Expression

public Expression(String expression)
Constructor, using the default (i.e. null) language.

Parameters:
expression - The expression itself.
Since:
2.2.0

Expression

public Expression(Expression toCopy)
Copy constructor.

Parameters:
toCopy - The expression to copy.
Since:
2.2.0
Method Detail

createExpressionFromDescribedExpression

public static Expression createExpressionFromDescribedExpression(String describedExpression)
Creates an Expression object from a string in the form LANGUAGE:EXPRESSION.

Parameters:
describedExpression - The expression in the form LANGUAGE:EXPRESSION. The LANGUAGE part should be expressed only with letters and numbers.
Returns:
The created object, or null if the expression is null.
Since:
2.2.0

createExpression

public static Expression createExpression(String expression,
                                          String language)
Creates an Expression object from the expression and its language.

Parameters:
expression - The expression itself.
language - The language of the expression.
Returns:
The created object, or null if the expression is null.
Since:
2.2.0

getExpression

public String getExpression()
Returns the expression string.

Returns:
The expression itself.
Since:
2.2.0

getLanguage

public String getLanguage()
Returns the language in which the expression is expressed.

Returns:
The expression language.
Since:
2.2.0

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

hashCode

public int hashCode()

Overrides:
hashCode in class Object

toString

public String toString()

Overrides:
toString in class Object


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