public static class DiscardAttributeChecker.DiscardAttributeValueChecker extends DiscardAttributeChecker.DefaultDiscardAttributeChecker
DiscardAttributeChecker.DefaultDiscardAttributeChecker, DiscardAttributeChecker.DiscardAttributeValueChecker
discardExpressions, discardUndefined
ALWAYS, UNDEFINED
Constructor and Description |
---|
DiscardAttributeValueChecker(boolean discardExpressions,
boolean discardUndefined,
org.jboss.dmr.ModelNode... values)
Constructor.
|
DiscardAttributeValueChecker(org.jboss.dmr.ModelNode... values)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
isValueDiscardable(PathAddress address,
String attributeName,
org.jboss.dmr.ModelNode attributeValue,
TransformationContext context)
Gets called by the default implementations of
DiscardAttributeChecker.DefaultDiscardAttributeChecker.isOperationParameterDiscardable(PathAddress, String, ModelNode, ModelNode, TransformationContext) and
DiscardAttributeChecker.DefaultDiscardAttributeChecker.isResourceAttributeDiscardable(PathAddress, String, ModelNode, TransformationContext) . |
isDiscardExpressions, isDiscardUndefined, isOperationParameterDiscardable, isResourceAttributeDiscardable
public DiscardAttributeValueChecker(org.jboss.dmr.ModelNode... values)
values
- the allowed valuespublic DiscardAttributeValueChecker(boolean discardExpressions, boolean discardUndefined, org.jboss.dmr.ModelNode... values)
discardExpressions
- true
if the attribute should be discarded if expressions are useddiscardUndefined
- true
if the attribute should be discarded if expressions are usedvalues
- the allowed valuesprotected boolean isValueDiscardable(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context)
DiscardAttributeChecker.DefaultDiscardAttributeChecker
DiscardAttributeChecker.DefaultDiscardAttributeChecker.isOperationParameterDiscardable(PathAddress, String, ModelNode, ModelNode, TransformationContext)
and
DiscardAttributeChecker.DefaultDiscardAttributeChecker.isResourceAttributeDiscardable(PathAddress, String, ModelNode, TransformationContext)
.isValueDiscardable
in class DiscardAttributeChecker.DefaultDiscardAttributeChecker
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 © 2023 JBoss by Red Hat. All rights reserved.