816N/A/*
816N/A * CDDL HEADER START
816N/A *
816N/A * The contents of this file are subject to the terms of the
816N/A * Common Development and Distribution License (the "License").
816N/A * You may not use this file except in compliance with the License.
816N/A *
816N/A * See LICENSE.txt included in this distribution for the specific
816N/A * language governing permissions and limitations under the License.
816N/A *
816N/A * When distributing Covered Code, include this CDDL HEADER in each
816N/A * file and include the License file at LICENSE.txt.
816N/A * If applicable, add the following below this CDDL HEADER, with the
816N/A * fields enclosed by brackets "[]" replaced with your own identifying
816N/A * information: Portions Copyright [yyyy] [name of copyright owner]
816N/A *
816N/A * CDDL HEADER END
816N/A */
816N/A
816N/A/*
1056N/A * Copyright 2009 - 2011 Jens Elkner.
816N/A */
1056N/Apackage org.opensolaris.opengrok.web;
816N/A
816N/Aimport org.apache.commons.jrcs.diff.Revision;
1056N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
1057N/A
1056N/A/**
816N/A * A simple container to store the data required to generated a view of diffs
928N/A * for a certain versioned file.
928N/A *
928N/A * @author Jens Elkner
816N/A * @version $Revision$
816N/A */
816N/Apublic class DiffData {
928N/A
928N/A /** the directory which contains the given file wrt. to the source root
928N/A * directory */
928N/A public String path;
816N/A /** the HTML escaped filename used */
816N/A public String filename;
816N/A /** the genre of the requested diff */
816N/A public Genre genre;
816N/A /** the orignal and new revision container */
816N/A public Revision revision;
816N/A /** the URI encoded parameter values of the request. {@code param[0]}
928N/A * belongs to {@code r1}, {@code param[1]} to {@code r2}. */
1057N/A public String param[];
1056N/A /** the revision names extracted from {@link #param} */
1057N/A public String rev[];
1056N/A /** the content of the original and new file line-by-line corresponding
1056N/A * with {@link #rev} */
1056N/A public String[][] file;
1056N/A /** error message to show, if diffs are not available */
1056N/A public String errorMsg;
1056N/A /** If {@code true} a full diff is desired (request parameter {@code full=1} */
1056N/A public boolean full;
1056N/A /** How should the data be displayed (request parameter {@code format} */
1056N/A public DiffType type;
1056N/A}
1056N/A