net.sourceforge.jstags.utils.validation
Class TagsUtils

java.lang.Object
  extended by net.sourceforge.jstags.utils.validation.TagsUtils

public class TagsUtils
extends java.lang.Object

This class contains a set of utility methods used to work with tags and perform common operations related to them

Since:
1.0
Author:
sschz@users.sourceforge.net

Field Summary
private static org.apache.log4j.Logger logger
          Logger for this class
 
Constructor Summary
TagsUtils()
           
 
Method Summary
static boolean isELExpression(java.lang.String value)
          It determines whether a String is an EL expression or not.
static boolean isValueAvailableAtTranslationTime(java.lang.Object value)
          Determines if a certain value is available at translation time or not (in that case, it would be calculated at runtime).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

private static final org.apache.log4j.Logger logger
Logger for this class

Constructor Detail

TagsUtils

public TagsUtils()
Method Detail

isELExpression

public static boolean isELExpression(java.lang.String value)
It determines whether a String is an EL expression or not. That is, whether it starts with "${" and ends with "}" or not.

Parameters:
value - the data to be checked
Returns:
  • true: value is an EL expression
  • false: value is not an EL expression

isValueAvailableAtTranslationTime

public static boolean isValueAvailableAtTranslationTime(java.lang.Object value)
Determines if a certain value is available at translation time or not (in that case, it would be calculated at runtime). If the attribute value is either TagData.REQUEST_TIME_VALUE or an EL Expression, its value would be available only at runtime

Parameters:
value - Object representing the attribute value
Returns:
  • true: the attribute value is available at translation time. That is, it is neither an EL Expression nor TagData.REQUEST_TIME_VALUE
  • false: the value is not available until runtime, that is, it is an EL Expression or TagData.REQUEST_TIME_VALUE


Copyright © 2007. All Rights Reserved.