Examples of PersonPojo


Examples of org.wicketstuff.rest.domain.PersonPojo

    private final Pattern emailPattern = EmailAddressValidator.getInstance().getPattern();

    @Override
    public void validate(IValidatable<PersonPojo> validatable) {

        PersonPojo person = validatable.getValue();
        Matcher matcher = emailPattern.matcher(person.getEmail());

        if (!matcher.matches()) {
            validatable.error(new RestValidationError(Arrays.asList(INVALID_MAIL_KEY),
                    Collections.EMPTY_MAP, "email"));
        }
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.