public abstract static class DiscardAttributeChecker.DefaultDiscardAttributeChecker extends Object implements DiscardAttributeChecker
DiscardAttributeChecker.DefaultDiscardAttributeChecker, DiscardAttributeChecker.DiscardAttributeValueChecker| Modifier and Type | Field and Description |
|---|---|
protected boolean |
discardExpressions |
protected boolean |
discardUndefined |
ALWAYS, DEFAULT_VALUE, UNDEFINED| Modifier | Constructor and Description |
|---|---|
|
DefaultDiscardAttributeChecker()
Constructor.
|
protected |
DefaultDiscardAttributeChecker(boolean discardExpressions,
boolean discardUndefined)
Constructor
|
| 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
|
protected abstract boolean |
isValueDiscardable(PathAddress address,
String attributeName,
org.jboss.dmr.ModelNode attributeValue,
TransformationContext context)
Gets called by the default implementations of
isOperationParameterDiscardable(PathAddress, String, ModelNode, ModelNode, TransformationContext) and
isResourceAttributeDiscardable(PathAddress, String, ModelNode, TransformationContext). |
protected final boolean discardExpressions
protected final boolean discardUndefined
protected DefaultDiscardAttributeChecker(boolean discardExpressions,
boolean discardUndefined)
discardExpressions - true if the attribute should be discarded if expressions are useddiscardUndefined - true if the attribute should be discarded if expressions are usedpublic DefaultDiscardAttributeChecker()
discardExpressions==false and discardUndefined==truepublic boolean isDiscardExpressions()
DiscardAttributeCheckertrue if the attribute should be discarded if expressions are usedisDiscardExpressions in interface DiscardAttributeCheckerpublic boolean isDiscardUndefined()
DiscardAttributeCheckertrue if the attribute should be discarded if it is undefinedisDiscardUndefined in interface DiscardAttributeCheckerpublic boolean isOperationParameterDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, org.jboss.dmr.ModelNode operation, TransformationContext context)
DiscardAttributeCheckerisOperationParameterDiscardable in interface DiscardAttributeCheckeraddress - 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.public boolean isResourceAttributeDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
DiscardAttributeCheckerisResourceAttributeDiscardable in interface DiscardAttributeCheckeraddress - 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.protected abstract boolean isValueDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
isOperationParameterDiscardable(PathAddress, String, ModelNode, ModelNode, TransformationContext) and
isResourceAttributeDiscardable(PathAddress, String, ModelNode, TransformationContext).address - the address of the operation or resourceattributeName - the name of the attributeattributeValue - the value of the attributecontext - the context of the transformationtrue if the attribute or parameter value is not understandable by the target process and so needs to be rejected, false otherwise.Copyright © 2022 JBoss by Red Hat. All rights reserved.