org.apache.lenya.ac
Class ItemUtil

java.lang.Object
  extended by org.apache.lenya.ac.ItemUtil

public class ItemUtil
extends java.lang.Object

Utility class for access control items.


Constructor Summary
ItemUtil()
           
 
Method Summary
static boolean isValidEmail(java.lang.String email)
          Checks if a string is a valid e-mail address.
static boolean isValidId(java.lang.String id)
          Checks if a string is a valid ID.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ItemUtil

public ItemUtil()
Method Detail

isValidId

public static boolean isValidId(java.lang.String id)
Checks if a string is a valid ID.

Parameters:
id - The string to test.
Returns:
A boolean value.

isValidEmail

public static boolean isValidEmail(java.lang.String email)
Checks if a string is a valid e-mail address.

Parameters:
email - The string.
Returns:
A boolean value.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.