public enum RequiredChildResourceDiscardPolicy extends Enum<RequiredChildResourceDiscardPolicy> implements org.jboss.as.controller.transform.description.DynamicDiscardPolicy
DynamicDiscardPolicy that discards child resources which have all their attribute undefined and have no children.
Conditionally rejects or leaves resource for further transformation. It is to be used for required child resources that are auto-created.| Enum Constant and Description |
|---|
NEVER
Policy that discards if all attributes are undefined and resource has no children;
never discards otherwise (
DiscardPolicy.NEVER) in order to proceed with resource transformations. |
REJECT_AND_WARN
Policy that discards if all attributes are undefined and resource has no children; rejects otherwise.
|
| Modifier and Type | Method and Description |
|---|---|
org.jboss.as.controller.transform.description.DiscardPolicy |
checkResource(org.jboss.as.controller.transform.TransformationContext context,
org.jboss.as.controller.PathAddress address) |
static RequiredChildResourceDiscardPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static RequiredChildResourceDiscardPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RequiredChildResourceDiscardPolicy REJECT_AND_WARN
public static final RequiredChildResourceDiscardPolicy NEVER
DiscardPolicy.NEVER) in order to proceed with resource transformations.public static RequiredChildResourceDiscardPolicy[] values()
for (RequiredChildResourceDiscardPolicy c : RequiredChildResourceDiscardPolicy.values()) System.out.println(c);
public static RequiredChildResourceDiscardPolicy 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 nullpublic org.jboss.as.controller.transform.description.DiscardPolicy checkResource(org.jboss.as.controller.transform.TransformationContext context,
org.jboss.as.controller.PathAddress address)
checkResource in interface org.jboss.as.controller.transform.description.DynamicDiscardPolicyDiscardPolicy.SILENT otherwise.Copyright © 2018 JBoss by Red Hat. All rights reserved.