/*
 * @(#)FileCopiedEvent.java
 *
 * Copyright (c) 2002-2003 JSCAPE
 * 1147 S. 53rd Pl., Mesa, Arizona, 85206, U.S.A.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * JSCAPE. ("Confidential Information").  You shall not disclose such
 * Confidential Information and shall use it only in accordance with
 * the terms of the license agreement you entered into with JSCAPE.
 */

package com.jscape.file;

import java.util.EventObject;

/**
 * Fired when a file is copied using the FileUtils class.
 */
public class FileCopiedEvent
        extends EventObject {

    /**
     * Source path.
     */
    private String sourcePath;
    /**
     * Destination path.
     */
    private String destinationPath;

    /**
     * Creates a new FileCopiedEvent instance.
     *
     * @param source          the source of the event
     * @param sourcePath      the absolute path of the source file
     * @param destinationPath the absolute path of the destination file
     */
    public FileCopiedEvent(
            final Object source,
            final String sourcePath,
            final String destinationPath) {
        super(source);
        this.sourcePath = sourcePath;
        this.destinationPath = destinationPath;
    }

    /**
     * Gets absolute path of source file copied.
     *
     * @return source file path
     */
    public String getSourcePath() {
        return sourcePath;
    }

    /**
     * Gets absolute path of destination file.
     *
     * @return destination file path
     */
    public String getDestinationPath() {
        return destinationPath;
    }
}
