Examples of ModelTypeValidator


Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

        public ModelTypeValidatingHandler(final ModelType type, final boolean nullable, final boolean allowExpressions, final boolean strict) {
            this(nullable, allowExpressions, strict, type);
        }

        public ModelTypeValidatingHandler(final boolean nullable, final boolean allowExpressions, final boolean strict, ModelType firstValidType, ModelType... otherValidTypes) {
            super(new ModelTypeValidator(nullable, allowExpressions, strict, firstValidType, otherValidTypes));
        }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

    private final ParametersValidator validator = new ParametersValidator();

    private QueueAdd() {
        validator.registerValidator(QUEUE_ADDRESS, new StringLengthValidator(1, Integer.MAX_VALUE, true, false));
        validator.registerValidator(FILTER, new StringLengthValidator(1, Integer.MAX_VALUE, true, false));
        validator.registerValidator(DURABLE, new ModelTypeValidator(ModelType.BOOLEAN, true));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

     */
    private ServerAddHandler() {
        validator.registerValidator(GROUP, new StringLengthValidator(1, Integer.MAX_VALUE, false, true));
        validator.registerValidator(SOCKET_BINDING_GROUP, new StringLengthValidator(1, Integer.MAX_VALUE, true, true));
        validator.registerValidator(SOCKET_BINDING_PORT_OFFSET, new IntRangeValidator(0, 65535, true, true));
        validator.registerValidator(AUTO_START, new ModelTypeValidator(ModelType.BOOLEAN, true, true));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

*/
public class WriteDeploymentTimeoutAttributeHandler extends AbstractWriteAttributeHandler {
    static final WriteDeploymentTimeoutAttributeHandler INSTANCE = new WriteDeploymentTimeoutAttributeHandler();

    public WriteDeploymentTimeoutAttributeHandler() {
        super(new ModelTypeValidator(ModelType.LONG, false, true), new ModelTypeValidator(ModelType.LONG, false, false));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

class WriteScanIntervalAttributeHandler extends AbstractWriteAttributeHandler {

    static final WriteScanIntervalAttributeHandler INSTANCE = new WriteScanIntervalAttributeHandler();

    private WriteScanIntervalAttributeHandler() {
        super(new ModelTypeValidator(ModelType.INT, false, true), new ModelTypeValidator(ModelType.INT, false, false));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

class WriteAutoDeployExplodedAttributeHandler extends AbstractWriteAttributeHandler {

    static final WriteAutoDeployExplodedAttributeHandler INSTANCE = new WriteAutoDeployExplodedAttributeHandler();

    private WriteAutoDeployExplodedAttributeHandler() {
        super(new ModelTypeValidator(ModelType.BOOLEAN, false, true), new ModelTypeValidator(ModelType.BOOLEAN, false, false));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

class WriteEnabledAttributeHandler extends AbstractWriteAttributeHandler {

    static final WriteEnabledAttributeHandler INSTANCE = new WriteEnabledAttributeHandler();

    private WriteEnabledAttributeHandler() {
        super(new ModelTypeValidator(ModelType.BOOLEAN, false, true), new ModelTypeValidator(ModelType.BOOLEAN, false, false));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

class WriteAutoDeployZipAttributeHandler extends AbstractWriteAttributeHandler {

    static final WriteAutoDeployZipAttributeHandler INSTANCE = new WriteAutoDeployZipAttributeHandler();

    private WriteAutoDeployZipAttributeHandler() {
        super(new ModelTypeValidator(ModelType.BOOLEAN, false, true), new ModelTypeValidator(ModelType.BOOLEAN, false, false));
    }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

     */
    //todo has to be moved to some better place same as org.jboss.as.remoting.AbstractOutboundConnectionResourceDefinition.PropertiesAttributeDefinition
    private static class PropertiesAttributeDefinition extends MapAttributeDefinition {

        public PropertiesAttributeDefinition(final String name, final String xmlName, boolean allowNull) {
            super(name, xmlName, allowNull, 0, Integer.MAX_VALUE, new ModelTypeValidator(ModelType.STRING));
        }
View Full Code Here

Examples of org.jboss.as.controller.operations.validation.ModelTypeValidator

    private final ParametersValidator validator = new ParametersValidator();

    private ServerGroupAddHandler() {
        validator.registerValidator(PROFILE, new StringLengthValidator(1));
        validator.registerValidator(SOCKET_BINDING_GROUP, new StringLengthValidator(1, Integer.MAX_VALUE, true, false));
        validator.registerValidator(SOCKET_BINDING_PORT_OFFSET, new ModelTypeValidator(ModelType.INT, true, false));
        validator.registerValidator(JVM, new StringLengthValidator(1, Integer.MAX_VALUE, true, false));
        validator.registerValidator(MANAGEMENT_SUBSYSTEM_ENDPOINT, new ModelTypeValidator(true, false, true, ModelType.BOOLEAN));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.