001/* 002 * Licensed to the Apache Software Foundation (ASF) under one or more 003 * contributor license agreements. See the NOTICE file distributed with 004 * this work for additional information regarding copyright ownership. 005 * The ASF licenses this file to You under the Apache License, Version 2.0 006 * (the "License"); you may not use this file except in compliance with 007 * the License. You may obtain a copy of the License at 008 * 009 * http://www.apache.org/licenses/LICENSE-2.0 010 * 011 * Unless required by applicable law or agreed to in writing, software 012 * distributed under the License is distributed on an "AS IS" BASIS, 013 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 014 * See the License for the specific language governing permissions and 015 * limitations under the License. 016 */ 017package org.apache.commons.vfs2.operations.vcs; 018 019import java.util.Calendar; 020 021/** 022 * A VFS log entry. 023 * 024 * @since 0.1 025 */ 026public class VcsLogEntry { 027 028 /** 029 */ 030 private final String author; 031 032 /** 033 * Revision. 034 */ 035 private final long revision; 036 037 /** 038 * Message. 039 */ 040 private final String message; 041 042 /** 043 * Date. 044 */ 045 private final Calendar date; 046 047 /** 048 * Path. 049 */ 050 private final String path; 051 052 /** 053 * Constructs a new instance. 054 * 055 * @param author The author. 056 * @param revision The revision. 057 * @param message The message. 058 * @param date The date. 059 * @param path The path. 060 */ 061 public VcsLogEntry(final String author, final long revision, final String message, final Calendar date, 062 final String path) { 063 this.author = author; 064 this.revision = revision; 065 this.message = message; 066 this.date = date; 067 this.path = path; 068 } 069 070 /** 071 * Gets the author. 072 * 073 * @return The author. 074 */ 075 public String getAuthor() { 076 return author; 077 } 078 079 /** 080 * Gets the date. 081 * 082 * @return The date. 083 */ 084 public Calendar getDate() { 085 return date; 086 } 087 088 /** 089 * Gets the message. 090 * 091 * @return The message. 092 */ 093 public String getMessage() { 094 return message; 095 } 096 097 /** 098 * Gets the path. 099 * 100 * @return The path. 101 */ 102 public String getPath() { 103 return path; 104 } 105 106 /** 107 * Gets the revision. 108 * 109 * @return The revision. 110 */ 111 public long getRevision() { 112 return revision; 113 } 114}