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 Details

    • ValidationConfiguration

      public ValidationConfiguration()
  • Method Details

    • 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 attribute
      name - 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 operation
      operation - 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 operation
      operation - 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 operation
      operation - the name of the operation
      param - 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 attribute
      name - the name of the attribute
      descriptor - the arbitrary descriptor to register for the attribute
      validator - an implementation of a validator, may be null
    • 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 operation
      operation - the name of the operation
      descriptor - the arbitrary descriptor to register for the operation's parameters
      validator - an implementation of a validator, may be null
    • 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 operation
      operation - the name of the operation
      descriptor - the arbitrary descriptor to register for the operation's parameters
      validator - an implementation of a validator, may be null
    • 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 operation
      operation - the name of the operation
      parameter - the name of the parameter
      descriptor - the arbitrary descriptor to register for the operation's parameters
      validator - an implementation of a validator, may be null