001    /*******************************************************************************
002     * Portions created by Sebastian Thomschke are copyright (c) 2005-2011 Sebastian
003     * Thomschke.
004     * 
005     * All Rights Reserved. This program and the accompanying materials
006     * are made available under the terms of the Eclipse Public License v1.0
007     * which accompanies this distribution, and is available at
008     * http://www.eclipse.org/legal/epl-v10.html
009     * 
010     * Contributors:
011     *     Sebastian Thomschke - initial implementation.
012     *******************************************************************************/
013    package net.sf.oval.localization.context;
014    
015    import net.sf.oval.Validator;
016    import net.sf.oval.context.OValContext;
017    
018    /**
019     * Implementations of this interface are able to transform a validation context into a 
020     * human readable (and if required localized) form.
021     * 
022     * The implementation to be used can be set on the Validator class using the static
023     * setContextRenderer(...) method.
024     * 
025     * @author Sebastian Thomschke
026     * @see Validator
027     */
028    public interface OValContextRenderer
029    {
030            String render(OValContext context);
031    }