Package org.libreplan.ws.common.api

Examples of org.libreplan.ws.common.api.ConstraintViolationDTO


public class ConstraintViolationConverter {

    private ConstraintViolationConverter() {}

    public final static ConstraintViolationDTO toDTO(InvalidValue each) {
        return new ConstraintViolationDTO(getFieldName(each), each.getMessage());
    }
View Full Code Here


        List<ConstraintViolationDTO> constraintViolationDTOs =
            new ArrayList<ConstraintViolationDTO>();

        if (validationException.getInvalidValues().isEmpty()) {
            constraintViolationDTOs.add(new ConstraintViolationDTO(null,
                validationException.getMessage()));
        } else {
            for (InvalidValue each : validationException
                    .getInvalidValues()) {
                constraintViolationDTOs.add(toDTO(each));
View Full Code Here

TOP

Related Classes of org.libreplan.ws.common.api.ConstraintViolationDTO

Copyright © 2018 www.massapicom. 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.