Class RejectAttributeChecker.SimpleAcceptAttributeChecker
java.lang.Object
org.jboss.as.controller.transform.description.RejectAttributeChecker.DefaultRejectAttributeChecker
org.jboss.as.controller.transform.description.RejectAttributeChecker.SimpleAcceptAttributeChecker
- All Implemented Interfaces:
RejectAttributeChecker
- Enclosing interface:
- RejectAttributeChecker
public static class RejectAttributeChecker.SimpleAcceptAttributeChecker
extends RejectAttributeChecker.DefaultRejectAttributeChecker
Rejects an attribute if the value is anything other than the specified value..
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.jboss.as.controller.transform.description.RejectAttributeChecker
RejectAttributeChecker.DefaultRejectAttributeChecker, RejectAttributeChecker.ListRejectAttributeChecker, RejectAttributeChecker.ObjectFieldsRejectAttributeChecker, RejectAttributeChecker.SimpleAcceptAttributeChecker, RejectAttributeChecker.SimpleRejectAttributeChecker -
Field Summary
Fields inherited from interface org.jboss.as.controller.transform.description.RejectAttributeChecker
ALL, DEFINED, SIMPLE_EXPRESSIONS, UNDEFINED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRejectionLogMessage(Map<String, org.jboss.dmr.ModelNode> attributes) Gets the log message if the attribute failed rejectionprotected booleanrejectAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Gets called by the default implementations ofRejectAttributeChecker.DefaultRejectAttributeChecker.rejectOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)andRejectAttributeChecker.DefaultRejectAttributeChecker.rejectResourceAttribute(PathAddress, String, ModelNode, TransformationContext).Methods inherited from class org.jboss.as.controller.transform.description.RejectAttributeChecker.DefaultRejectAttributeChecker
getRejectionLogMessageId, rejectOperationParameter, rejectResourceAttribute
-
Constructor Details
-
SimpleAcceptAttributeChecker
public SimpleAcceptAttributeChecker(org.jboss.dmr.ModelNode value)
-
-
Method Details
-
getRejectionLogMessage
Description copied from interface:RejectAttributeCheckerGets the log message if the attribute failed rejection- Parameters:
attributes- a map of all attributes failed in this checker and their values- Returns:
- the formatted log message
-
rejectAttribute
protected boolean rejectAttribute(PathAddress address, String attributeName, org.jboss.dmr.ModelNode attributeValue, TransformationContext context) Description copied from class:RejectAttributeChecker.DefaultRejectAttributeCheckerGets called by the default implementations ofRejectAttributeChecker.DefaultRejectAttributeChecker.rejectOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)andRejectAttributeChecker.DefaultRejectAttributeChecker.rejectResourceAttribute(PathAddress, String, ModelNode, TransformationContext).- Specified by:
rejectAttributein classRejectAttributeChecker.DefaultRejectAttributeChecker- Parameters:
address- the address of the operationattributeName- the name of the attributeattributeValue- the value of the attributecontext- the context of the transformation- Returns:
trueif the attribute or parameter value is not understandable by the target process and so needs to be rejected,falseotherwise.
-