Package org.htmlunit.csp
Enum Policy.InlineType
- java.lang.Object
-
- java.lang.Enum<Policy.InlineType>
-
- org.htmlunit.csp.Policy.InlineType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<Policy.InlineType>
- Enclosing class:
- Policy
private static enum Policy.InlineType extends java.lang.Enum<Policy.InlineType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Navigation
Script
ScriptAttribute
Style
StyleAttribute
-
Field Summary
Fields Modifier and Type Field Description private FetchDirectiveKind
effectiveDirective_
-
Constructor Summary
Constructors Modifier Constructor Description private
InlineType(FetchDirectiveKind effectiveDirective)
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Policy.InlineType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static Policy.InlineType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Script
public static final Policy.InlineType Script
-
ScriptAttribute
public static final Policy.InlineType ScriptAttribute
-
Style
public static final Policy.InlineType Style
-
StyleAttribute
public static final Policy.InlineType StyleAttribute
-
Navigation
public static final Policy.InlineType Navigation
-
-
Field Detail
-
effectiveDirective_
private final FetchDirectiveKind effectiveDirective_
-
-
Constructor Detail
-
InlineType
private InlineType(FetchDirectiveKind effectiveDirective)
-
-
Method Detail
-
values
public static Policy.InlineType[] 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 (Policy.InlineType c : Policy.InlineType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Policy.InlineType 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 namejava.lang.NullPointerException
- if the argument is null
-
-