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.vfs2.operations.vcs; 18 19 import java.util.Calendar; 20 21 /** 22 * 23 * @since 0.1 24 */ 25 public class VcsLogEntry { 26 27 /** 28 */ 29 private final String author; 30 31 /** 32 * Revision. 33 */ 34 private final long revision; 35 36 /** 37 * Message. 38 */ 39 private final String message; 40 41 /** 42 * Date. 43 */ 44 private final Calendar date; 45 46 /** 47 * Path. 48 */ 49 private final String path; 50 51 /** 52 * 53 * @param author The author. 54 * @param revision The revision. 55 * @param message The message. 56 * @param date The date. 57 * @param path The path. 58 */ 59 public VcsLogEntry(final String author, final long revision, final String message, final Calendar date, 60 final String path) { 61 this.author = author; 62 this.revision = revision; 63 this.message = message; 64 this.date = date; 65 this.path = path; 66 } 67 68 /** 69 * 70 * @return The author. 71 */ 72 public String getAuthor() { 73 return author; 74 } 75 76 /** 77 * 78 * @return The revision. 79 */ 80 public long getRevision() { 81 return revision; 82 } 83 84 /** 85 * 86 * @return The message. 87 */ 88 public String getMessage() { 89 return message; 90 } 91 92 /** 93 * 94 * @return The date. 95 */ 96 public Calendar getDate() { 97 return date; 98 } 99 100 /** 101 * 102 * @return The path. 103 */ 104 public String getPath() { 105 return path; 106 } 107 }