Package org.guvnor.common.services.shared.validation.model

Examples of org.guvnor.common.services.shared.validation.model.ValidationMessage


        workItemDefinitions.add( content );
        try {
            WorkDefinitionsParser.parse( workItemDefinitions );

        } catch ( Exception e ) {
            final ValidationMessage msg = new ValidationMessage();
            msg.setPath( path );
            msg.setLevel( ValidationMessage.Level.ERROR );
            msg.setText( e.getMessage() );
            validationMessages.add( msg );
        }
        return validationMessages;
    }
View Full Code Here


        }
        return messages;
    }

    private ValidationMessage makeNewValidationMessage( final DSLMappingParseException e ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setLevel( ValidationMessage.Level.ERROR );
        msg.setLine( e.getLine() );
        msg.setText( e.getMessage() );
        return msg;
    }
View Full Code Here

        msg.setText( e.getMessage() );
        return msg;
    }

    private ValidationMessage makeNewValidationMessage( final Exception e ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setLevel( ValidationMessage.Level.ERROR );
        msg.setText( "Exception " + e.getClass() + " " + e.getMessage() + " " + e.getCause() );
        return msg;
    }
View Full Code Here

        msg.setText( "Exception " + e.getClass() + " " + e.getMessage() + " " + e.getCause() );
        return msg;
    }

    private ValidationMessage makeNewValidationMessage( final Object o ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setLevel( ValidationMessage.Level.ERROR );
        msg.setText( "Uncategorized error " + o );
        return msg;
    }
View Full Code Here

        }
        return results;
    }

    private ValidationMessage makeValidationMessages( final String message ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setText( message );
        return msg;
    }
View Full Code Here

        workItemDefinitions.add( content );
        try {
            WorkDefinitionsParser.parse( workItemDefinitions );

        } catch ( Exception e ) {
            final ValidationMessage msg = new ValidationMessage();
            msg.setPath( path );
            msg.setLevel( ValidationMessage.Level.ERROR );
            msg.setText( e.getMessage() );
            validationMessages.add( msg );
        }
        return validationMessages;
    }
View Full Code Here

        }
    }

    private ValidationMessage makeValidationMessages( final Path path,
                                                      final String message ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setPath( path );
        msg.setLevel( ValidationMessage.Level.ERROR );
        msg.setText( message );
        return msg;
    }
View Full Code Here

        workItemDefinitions.add( content );
        try {
            WorkDefinitionsParser.parse( workItemDefinitions );

        } catch ( Exception e ) {
            final ValidationMessage msg = new ValidationMessage();
            msg.setPath( path );
            msg.setLevel( ValidationMessage.Level.ERROR );
            msg.setText( e.getMessage() );
            validationMessages.add( msg );
        }
        return validationMessages;
    }
View Full Code Here

        return messages;
    }

    private ValidationMessage makeValidationMessages( final Path path,
                                                      final String message ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setPath( path );
        msg.setLevel( ValidationMessage.Level.WARNING );
        msg.setText( message );
        return msg;
    }
View Full Code Here

        }
        return messages;
    }

    private ValidationMessage makeNewValidationMessage( final DSLMappingParseException e ) {
        final ValidationMessage msg = new ValidationMessage();
        msg.setLevel( ValidationMessage.Level.ERROR );
        msg.setLine( e.getLine() );
        msg.setText( e.getMessage() );
        return msg;
    }
View Full Code Here

TOP

Related Classes of org.guvnor.common.services.shared.validation.model.ValidationMessage

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.