blob: 62793b2a1f7ee9642f993e43617bafa9911b25c4 [file] [log] [blame]
/*******************************************************************************
* Copyright (c) 2011, 2013 RĂ¼diger Herrmann and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*
* Contributors:
* RĂ¼diger Herrmann - initial API and implementation
* EclipseSource - ongoing development
******************************************************************************/
package org.eclipse.rap.tools.launch.rwt.internal.config;
abstract class Validator {
final RWTLaunchConfig config;
private final ValidationResult validationResult;
Validator( RWTLaunchConfig config, ValidationResult validationResult ) {
this.config = config;
this.validationResult = validationResult;
}
abstract void validate();
final void addError( String message, int code ) {
validationResult.addError( message, code );
}
final void addWarning( String message, int code ) {
validationResult.addWarning( message, code );
}
}