87N/A * CDDL HEADER START 87N/A * The contents of this file are subject to the terms of the 87N/A * Common Development and Distribution License (the "License"). 87N/A * You may not use this file except in compliance with the License. 87N/A * language governing permissions and limitations under the License. 87N/A * When distributing Covered Code, include this CDDL HEADER in each 87N/A * If applicable, add the following below this CDDL HEADER, with the 87N/A * fields enclosed by brackets "[]" replaced with your own identifying 87N/A * information: Portions Copyright [yyyy] [name of copyright owner] 1384N/A * Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved. 1384N/A * Portions Copyright 2012 Jens Elkner. 87N/A * Class representing file annotation, i.e., revision and author for the last 87N/A * modification of each line in the file. 1384N/A * @param filename the basename of the associated file. 87N/A * Gets the revision for the last change to the specified line. 87N/A * @param line line number (counting from 1) 91N/A * @return revision string, or an empty string if there is no information 91N/A * about the specified line 1384N/A * Gets all revisions that are in use, first is the lowest one (sorted using 878N/A * @return list of all revisions the file has 87N/A * Gets the author who last modified the specified line. 87N/A * @param line line number (counting from 1) 91N/A * @return author, or an empty string if there is no information about the 87N/A * Returns the size of the file (number of lines). 87N/A * @return number of lines 87N/A * Returns the widest revision string in the file (used for pretty 87N/A * @return number of characters in the widest revision string 87N/A * Returns the widest author name in the file (used for pretty printing). 87N/A * @return number of characters in the widest author string 1384N/A * Adds a line to the file. Invokeing concurrently causes unpredictable 87N/A * @param revision revision number 87N/A * @param author author name 1384N/A * Converts different html special characters into their encodings used in 1384N/A * html. Currently used only for tooltips of annotation revision number view 1384N/A * @return encoded text for use in <a title=""> tag 1384N/A // not stored because usually called once only 1384N/A * Add the full commit message to the given revision. Ignored if there is 1384N/A * no revision, which may accommodate this message (add an appropriate line 1384N/A * @param revision revision in question. 1384N/A * @param description full commit message to add (gets automatically html 1384N/A * escaped including newlines, which are translated into '>br/<). 1384N/A * Get the full commit message for the given revision. 1384N/A * @param revision revision in question. 1384N/A * @return {@code null} if not found, the html escaped commit message 1384N/A * Get the basename of the associated source file. 1384N/A * @see Annotation#Annotation(String) 1384N/A * Convert this annotation data into compact JSON format.