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