public interface DiscardAttributeChecker
Modifier and Type | Interface and Description |
---|---|
static class |
DiscardAttributeChecker.DefaultDiscardAttributeChecker
A default implementation of DiscardAttributeChecker
|
static class |
DiscardAttributeChecker.DiscardAttributeValueChecker
An attribute checker that discards attributes if they are one or more allowed values
|
Modifier and Type | Field and Description |
---|---|
static DiscardAttributeChecker |
ALWAYS
A standard checker which will discard the attribute always.
|
static DiscardAttributeChecker |
UNDEFINED
A standard checker which will discard the attribute if it is undefined, as long as it is not an expression
|
Modifier and Type | Method and Description |
---|---|
boolean |
isDiscardExpressions()
Returns
true if the attribute should be discarded if expressions are used |
boolean |
isDiscardUndefined()
Returns
true if the attribute should be discarded if it is undefined |
boolean |
isOperationParameterDiscardable(PathAddress address,
String attributeName,
org.jboss.dmr.ModelNode attributeValue,
org.jboss.dmr.ModelNode operation,
TransformationContext context)
Gets whether the given operation parameter can be discarded
|
boolean |
isResourceAttributeDiscardable(PathAddress address,
String attributeName,
org.jboss.dmr.ModelNode attributeValue,
TransformationContext context)
Gets whether the given attribute can be discarded
|
static final DiscardAttributeChecker ALWAYS
static final DiscardAttributeChecker UNDEFINED
boolean isDiscardExpressions()
true
if the attribute should be discarded if expressions are usedboolean isDiscardUndefined()
true
if the attribute should be discarded if it is undefinedboolean isOperationParameterDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
address
- the address of the operationattributeName
- the name of the operation parameterattributeValue
- the value of the operation parameteroperation
- the operation executed. This is unmodifiable.context
- the context of the transformationtrue
if the operation parameter value should be discarded, false
otherwise.boolean isResourceAttributeDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
address
- the address of the resourceattributeName
- the name of the attributeattributeValue
- the value of the attributecontext
- the context of the transformationtrue
if the attribute value should be discarded, false
otherwise.Copyright © 2023 JBoss by Red Hat. All rights reserved.