Package org.jboss.as.model.test
Class ModelTestModelDescriptionValidator.ValidationConfiguration
- java.lang.Object
-
- org.jboss.as.model.test.ModelTestModelDescriptionValidator.ValidationConfiguration
-
- Enclosing class:
- ModelTestModelDescriptionValidator
public static class ModelTestModelDescriptionValidator.ValidationConfiguration extends Object
Allows extra configuration of the validation
-
-
Constructor Summary
Constructors Constructor Description ValidationConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidallowNullValueTypeForAttribute(org.jboss.dmr.ModelNode address, String name)Allow undefined value-types for an OBJECT or LIST type attribute.voidallowNullValueTypeForOperation(org.jboss.dmr.ModelNode address, String operation)Allow undefined value-types for OBJECT or LIST type for all parameters and return types for an operation.voidallowNullValueTypeForOperationParameter(org.jboss.dmr.ModelNode address, String operation, String param)Allow undefined value-types for OBJECT or LIST type for an operation's parameter.voidallowNullValueTypeForOperationReplyProperties(org.jboss.dmr.ModelNode address, String operation)Allow undefined value-types for OBJECT or LIST type for an operation's reply-properties.voidregisterArbitraryDescriptorForOperation(org.jboss.dmr.ModelNode address, String operation, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for all of an operation's parameters and reply propertiesvoidregisterArbitraryDescriptorForOperationParameter(org.jboss.dmr.ModelNode address, String operation, String parameter, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an operation's parametervoidregisterArbitraryDescriptorForOperationReplyProperties(org.jboss.dmr.ModelNode address, String operation, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an operation's reply propertiesvoidregisterAttributeArbitraryDescriptor(org.jboss.dmr.ModelNode address, String name, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an attribute
-
-
-
Method Detail
-
allowNullValueTypeForAttribute
public void allowNullValueTypeForAttribute(org.jboss.dmr.ModelNode address, String name)Allow undefined value-types for an OBJECT or LIST type attribute. This should be used sparingly since an undefined value-type is normally a problem with your model.- Parameters:
address- the address of the attributename- the name of the attribute
-
allowNullValueTypeForOperation
public void allowNullValueTypeForOperation(org.jboss.dmr.ModelNode address, String operation)Allow undefined value-types for OBJECT or LIST type for all parameters and return types for an operation. This should be used sparingly since an undefined value-type is normally a problem with your model.- Parameters:
address- the address of the operationoperation- the name of the operation
-
allowNullValueTypeForOperationReplyProperties
public void allowNullValueTypeForOperationReplyProperties(org.jboss.dmr.ModelNode address, String operation)Allow undefined value-types for OBJECT or LIST type for an operation's reply-properties. This should be used sparingly since an undefined value-type is normally a problem with your model.- Parameters:
address- the address of the operationoperation- the name of the operation
-
allowNullValueTypeForOperationParameter
public void allowNullValueTypeForOperationParameter(org.jboss.dmr.ModelNode address, String operation, String param)Allow undefined value-types for OBJECT or LIST type for an operation's parameter. This should be used sparingly since an undefined value-type is normally a problem with your model.- Parameters:
address- the address of the operationoperation- the name of the operationparam- the name of the parameter
-
registerAttributeArbitraryDescriptor
public void registerAttributeArbitraryDescriptor(org.jboss.dmr.ModelNode address, String name, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an attribute- Parameters:
address- the address of the attributename- the name of the attributedescriptor- the arbitrary descriptor to register for the attributevalidator- an implementation of a validator, may benull
-
registerArbitraryDescriptorForOperation
public void registerArbitraryDescriptorForOperation(org.jboss.dmr.ModelNode address, String operation, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for all of an operation's parameters and reply properties- Parameters:
address- the address of the operationoperation- the name of the operationdescriptor- the arbitrary descriptor to register for the operation's parametersvalidator- an implementation of a validator, may benull
-
registerArbitraryDescriptorForOperationReplyProperties
public void registerArbitraryDescriptorForOperationReplyProperties(org.jboss.dmr.ModelNode address, String operation, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an operation's reply properties- Parameters:
address- the address of the operationoperation- the name of the operationdescriptor- the arbitrary descriptor to register for the operation's parametersvalidator- an implementation of a validator, may benull
-
registerArbitraryDescriptorForOperationParameter
public void registerArbitraryDescriptorForOperationParameter(org.jboss.dmr.ModelNode address, String operation, String parameter, String descriptor, ModelTestModelDescriptionValidator.AttributeOrParameterArbitraryDescriptorValidator validator)Register an additional arbitrary descriptor for an operation's parameter- Parameters:
address- the address of the operationoperation- the name of the operationparameter- the name of the parameterdescriptor- the arbitrary descriptor to register for the operation's parametersvalidator- an implementation of a validator, may benull
-
-