Class RejectAttributeChecker.SimpleRejectAttributeChecker
- java.lang.Object
-
- org.jboss.as.controller.transform.description.RejectAttributeChecker.DefaultRejectAttributeChecker
-
- org.jboss.as.controller.transform.description.RejectAttributeChecker.SimpleRejectAttributeChecker
-
- All Implemented Interfaces:
RejectAttributeChecker
- Enclosing interface:
- RejectAttributeChecker
public static class RejectAttributeChecker.SimpleRejectAttributeChecker extends RejectAttributeChecker.DefaultRejectAttributeChecker
Rejects the attribute if the value is equal to 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 Constructor Description SimpleRejectAttributeChecker(org.jboss.dmr.ModelNode value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getRejectionLogMessage(Map<String,org.jboss.dmr.ModelNode> attributes)
Gets the log message if the attribute failed rejectionprotected boolean
rejectAttribute(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
-
-
-
-
Method Detail
-
getRejectionLogMessage
public String getRejectionLogMessage(Map<String,org.jboss.dmr.ModelNode> attributes)
Description copied from interface:RejectAttributeChecker
Gets 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.DefaultRejectAttributeChecker
Gets called by the default implementations ofRejectAttributeChecker.DefaultRejectAttributeChecker.rejectOperationParameter(PathAddress, String, ModelNode, ModelNode, TransformationContext)
andRejectAttributeChecker.DefaultRejectAttributeChecker.rejectResourceAttribute(PathAddress, String, ModelNode, TransformationContext)
.- Specified by:
rejectAttribute
in 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:
true
if the attribute or parameter value is not understandable by the target process and so needs to be rejected,false
otherwise.
-
-