DiffData.java revision 1388
126N/A/*
126N/A * CDDL HEADER START
919N/A *
126N/A * The contents of this file are subject to the terms of the
126N/A * Common Development and Distribution License (the "License").
919N/A * You may not use this file except in compliance with the License.
919N/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 *
126N/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
126N/A * information: Portions Copyright [yyyy] [name of copyright owner]
919N/A *
919N/A * CDDL HEADER END
919N/A */
919N/A
919N/A/*
919N/A * Copyright 2009 - 2011 Jens Elkner.
919N/A */
126N/Apackage org.opensolaris.opengrok.web;
126N/A
126N/Aimport org.apache.commons.jrcs.diff.Revision;
126N/Aimport org.opensolaris.opengrok.analysis.FileAnalyzer.Genre;
126N/A
126N/A/**
126N/A * A simple container to store the data required to generated a view of diffs
126N/A * for a certain versioned file.
126N/A *
126N/A * @author Jens Elkner
126N/A * @version $Revision$
126N/A */
126N/Apublic class DiffData {
126N/A /** request URI */
126N/A public String reqURI;
126N/A /** the directory which contains the given file wrt. to the source root
* directory */
public String path;
/** the HTML escaped filename used */
public String filename;
/** the genre of the requested diff */
public Genre genre;
/** the orignal and new revision container */
public Revision revision;
/** the URI encoded parameter value of the request for key r1 */
public String rp1;
/** the URI encoded parameter value of the request for key r2 */
public String rp2;
/** the revision name extracted from {@link #rp1} */
public String rev1;
/** the revision name extracted from {@link #rp2} */
public String rev2;
/** the content of the original {@link #rev1} and new {@link #rev2} file
* line-by-line */
public String[][] file;
/** error message to show, if diffs are not available */
public String errorMsg;
/** If {@code true} a full diff is desired (request parameter {@code full=1} */
public boolean full;
/** How should the data be displayed (request parameter {@code format} */
public DiffType type;
}