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