org.exoplatform.services.html
Enum Tag
java.lang.Object
java.lang.Enum<Tag>
org.exoplatform.services.html.Tag
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<Tag>
public enum Tag
- extends java.lang.Enum<Tag>
Author : Nhu Dinh Thuan
Email:nhudinhthuan@yahoo.com
Aug 3, 2006
|
Method Summary |
static Tag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static Tag[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
| Methods inherited from class java.lang.Enum |
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
REQUIRED
public static final Tag REQUIRED
OPTIONAL
public static final Tag OPTIONAL
FORBIDDEN
public static final Tag FORBIDDEN
values
public static final Tag[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(Tag c : Tag.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static Tag valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (Extraneous whitespace characters are
not permitted.)
- Parameters:
name - the name of the enum constant to be returned.
- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException - if this enum type has no constant
with the specified name
Copyright © 2011 eXo Platform SAS. All Rights Reserved.