Examples of Validation


Examples of rocks.xmpp.extensions.data.validate.model.Validation

                "</x>";

        DataForm dataForm = unmarshal(xml, DataForm.class);

        Assert.assertNotNull(dataForm);
        Validation validation = dataForm.getFields().get(0).getValidation();
        Assert.assertNotNull(validation);
        Assert.assertEquals(validation.getDataType(), "xs:dateTime");
        Assert.assertTrue(validation.getValidationMethod() instanceof Validation.ValidationMethod.Basic);
    }
View Full Code Here

Examples of yalp.data.validation.Validation

            Map params = (Map) Request.current().args.remove(ActionInvoker.CONTINUATIONS_STORE_PARAMS);
            Scope.Params.current().all().clear();
            Scope.Params.current().all().putAll(params);

            // Validations
            Validation validation = (Validation) Request.current().args.remove(ActionInvoker.CONTINUATIONS_STORE_VALIDATIONS);
            Validation.current.set(validation);
            ValidationPlugin.keys.set((Map<Object, String>) Request.current().args.remove(ActionInvoker.CONTINUATIONS_STORE_VALIDATIONPLUGIN_KEYS));

        } else {
            // we are storing before suspend
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.