hep.aida.web.taglib.util
Class AidaTLDUtils

java.lang.Object
  extended by hep.aida.web.taglib.util.AidaTLDUtils

public abstract class AidaTLDUtils
extends java.lang.Object

Various utility functions.

Author:
The AIDA Team @ SLAC

Constructor Summary
AidaTLDUtils()
           
 
Method Summary
static java.util.List createList(java.util.SortedMap[] maps, java.lang.String key)
           
static java.util.List createList(java.util.SortedMap[] maps, java.lang.String key, boolean unique)
           
static java.lang.Object findObject(java.lang.String attributeName, javax.servlet.jsp.PageContext pageContext)
          Find an Object in a JSP scope under the given attribute name.
static boolean isEmpty(java.lang.String par)
           
static java.lang.String objectName(java.lang.Object obj)
          Name of the current Object
static java.lang.String objectType(java.lang.Object obj)
          Type of the current object
static void sortList(java.util.List list, boolean ascending)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AidaTLDUtils

public AidaTLDUtils()
Method Detail

createList

public static java.util.List createList(java.util.SortedMap[] maps,
                                        java.lang.String key)

createList

public static java.util.List createList(java.util.SortedMap[] maps,
                                        java.lang.String key,
                                        boolean unique)

sortList

public static void sortList(java.util.List list,
                            boolean ascending)

findObject

public static java.lang.Object findObject(java.lang.String attributeName,
                                          javax.servlet.jsp.PageContext pageContext)
Find an Object in a JSP scope under the given attribute name. If nothing is found then return null.

Parameters:
attributeName - the name of the IManagedObject in a JSP scope
Returns:
the IManagedObject if it is found, otherwise null

isEmpty

public static boolean isEmpty(java.lang.String par)

objectName

public static java.lang.String objectName(java.lang.Object obj)
Name of the current Object


objectType

public static java.lang.String objectType(java.lang.Object obj)
Type of the current object



Copyright 2000-2007 FreeHEP. All Rights Reserved.