Example usage for com.google.gwt.validation.client.impl PathImpl PathImpl

List of usage examples for com.google.gwt.validation.client.impl PathImpl PathImpl

Introduction

In this page you can find the example usage for com.google.gwt.validation.client.impl PathImpl PathImpl.

Prototype

public PathImpl() 

Source Link

Document

Creates a new path containing only the root (null) Node .

Usage

From source file:org.dashbuilder.client.widgets.dataset.editor.widgets.editors.elasticsearch.ELDataSetDefAttributesEditor.java

License:Apache License

private void createViolation(final String path, final String message, final Editor<?> editor) {
    final Collection<ConstraintViolation<?>> violations = getViolations();
    final ConstraintViolation<?> violation = ConstraintViolationImpl.builder()
            .setPropertyPath(new PathImpl().append(path)).setMessage(message).build();
    violations.add(violation);/*w w w  . jav  a  2s .  c  o m*/
}