org.zkoss.zk.ui.sys
Class Names

java.lang.Object
  extended by org.zkoss.zk.ui.sys.Names

public class Names
extends java.lang.Object

Utilities about variable's names.

Author:
tomyeh

Method Summary
static java.util.Set<java.lang.String> getReservedNames()
          Returns a set of readonly reserved words.
static boolean isReserved(java.lang.String name)
          Returns whether the specified name is reserved.
static boolean isValid(java.lang.String name)
          Returns whether the specified is valid.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getReservedNames

public static final java.util.Set<java.lang.String> getReservedNames()
Returns a set of readonly reserved words.


isValid

public static final boolean isValid(java.lang.String name)
Returns whether the specified is valid. It also invokes isReserved(java.lang.String).


isReserved

public static final boolean isReserved(java.lang.String name)
Returns whether the specified name is reserved. If true, you cannot use it in zscript (and EL).



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo