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