View Javadoc

    1   /*
    2    * Licensed to the Apache Software Foundation (ASF) under one or more
    3    * contributor license agreements.  See the NOTICE file distributed with
    4    * this work for additional information regarding copyright ownership.
    5    * The ASF licenses this file to You under the Apache License, Version 2.0
    6    * (the "License"); you may not use this file except in compliance with
    7    * the License.  You may obtain a copy of the License at
    8    *
    9    *      http://www.apache.org/licenses/LICENSE-2.0
    10   *
    11   * Unless required by applicable law or agreed to in writing, software
    12   * distributed under the License is distributed on an "AS IS" BASIS,
    13   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    14   * See the License for the specific language governing permissions and
    15   * limitations under the License.
    16   */
    17  package org.apache.commons.vfs.operations.vcs;
    18
    19  import java.util.Calendar;
    20
    21  /***
    22   * todo: add class description here
    23   *
    24   * @author Siarhei Baidun
    25   * @since 0.1
    26   */
    27  public class VcsLogEntry
    28  {
    29  	/***
    30  	 *
    31  	 */
    32  	private String author;
    33
    34  	/***
    35  	 * Revision.
    36  	 */
    37  	private long revision;
    38
    39  	/***
    40  	 * Message.
    41  	 */
    42  	private String message;
    43
    44  	/***
    45  	 * Date.
    46  	 */
    47  	private Calendar date;
    48
    49  	/***
    50  	 * Path.
    51  	 */
    52  	private String path;
    53
    54  	/***
    55  	 *
    56  	 * @param revision
    57  	 * @param message
    58  	 * @param date
    59  	 * @param path
    60  	 */
    61  	public VcsLogEntry(final String author, final long revision,
    62  			final String message, final Calendar date, final String path)
    63  	{
    64  		this.author = author;
    65  		this.revision = revision;
    66  		this.message = message;
    67  		this.date = date;
    68  		this.path = path;
    69  	}
    70
    71  	/***
    72  	 *
    73  	 * @return
    74  	 */
    75  	public String getAuthor()
    76  	{
    77  		return author;
    78  	}
    79
    80  	/***
    81  	 *
    82  	 * @return
    83  	 */
    84  	public long getRevision()
    85  	{
    86  		return revision;
    87  	}
    88
    89  	/***
    90  	 *
    91  	 * @return
    92  	 */
    93  	public String getMessage()
    94  	{
    95  		return message;
    96  	}
    97
    98  	/***
    99  	 *
    100 	 * @return
    101 	 */
    102 	public Calendar getDate()
    103 	{
    104 		return date;
    105 	}
    106
    107 	/***
    108 	 *
    109 	 * @return
    110 	 */
    111 	public String getPath()
    112 	{
    113 		return path;
    114 	}
    115 }