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 *
023 * @since 0.1
024 */
025public class VcsLogEntry {
026    /**
027     */
028    private final String author;
029
030    /**
031     * Revision.
032     */
033    private final long revision;
034
035    /**
036     * Message.
037     */
038    private final String message;
039
040    /**
041     * Date.
042     */
043    private final Calendar date;
044
045    /**
046     * Path.
047     */
048    private final String path;
049
050    /**
051     *
052     * @param author The author.
053     * @param revision The revision.
054     * @param message The message.
055     * @param date The date.
056     * @param path The path.
057     */
058    public VcsLogEntry(final String author, final long revision, final String message, final Calendar date,
059            final String path) {
060        this.author = author;
061        this.revision = revision;
062        this.message = message;
063        this.date = date;
064        this.path = path;
065    }
066
067    /**
068     *
069     * @return The author.
070     */
071    public String getAuthor() {
072        return author;
073    }
074
075    /**
076     *
077     * @return The revision.
078     */
079    public long getRevision() {
080        return revision;
081    }
082
083    /**
084     *
085     * @return The message.
086     */
087    public String getMessage() {
088        return message;
089    }
090
091    /**
092     *
093     * @return The date.
094     */
095    public Calendar getDate() {
096        return date;
097    }
098
099    /**
100     *
101     * @return The path.
102     */
103    public String getPath() {
104        return path;
105    }
106}