public enum DiscardPolicy extends Enum<DiscardPolicy>
| Enum Constant and Description |
|---|
DISCARD_AND_WARN
Discard operations silently, but warn for resource transformations.
|
NEVER
Don't discard the resource or operation.
|
REJECT_AND_WARN
Reject operations and only warn for resource transformations.
|
SILENT
Discard silently.
|
| Modifier and Type | Method and Description |
|---|---|
static DiscardPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DiscardPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DiscardPolicy NEVER
public static final DiscardPolicy REJECT_AND_WARN
public static final DiscardPolicy DISCARD_AND_WARN
public static final DiscardPolicy SILENT
public static DiscardPolicy[] values()
for (DiscardPolicy c : DiscardPolicy.values()) System.out.println(c);
public static DiscardPolicy valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2017 JBoss by Red Hat. All rights reserved.