Enum CommponentType
- java.lang.Object
-
- java.lang.Enum<CommponentType>
-
- com.sun.enterprise.security.permissionsxml.CommponentType
-
- All Implemented Interfaces:
Serializable
,Comparable<CommponentType>
public enum CommponentType extends Enum<CommponentType>
Java EE Component type supporting the use of declared permissions
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CommponentType
valueOf(String name)
Returns the enum constant of this type with the specified name.static CommponentType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ear
public static final CommponentType ear
-
ejb
public static final CommponentType ejb
-
war
public static final CommponentType war
-
rar
public static final CommponentType rar
-
car
public static final CommponentType car
-
-
Method Detail
-
values
public static CommponentType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CommponentType c : CommponentType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CommponentType valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-