001/** 002 * RenameWand 2.2 003 * Copyright 2007 Zach Scrivena 004 * 2007-12-09 005 * zachscrivena@gmail.com 006 * http://renamewand.sourceforge.net/ 007 * 008 * RenameWand is a simple command-line utility for renaming files or 009 * directories using an intuitive but powerful syntax. 010 * 011 * TERMS AND CONDITIONS: 012 * This program is free software: you can redistribute it and/or modify 013 * it under the terms of the GNU General Public License as published by 014 * the Free Software Foundation, either version 3 of the License, or 015 * (at your option) any later version. 016 * 017 * This program is distributed in the hope that it will be useful, 018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 020 * GNU General Public License for more details. 021 * 022 * You should have received a copy of the GNU General Public License 023 * along with this program. If not, see <http://www.gnu.org/licenses/>. 024 */ 025 026package ca.bc.webarts.tools.renamewand; 027 028import java.io.File; 029 030 031/** 032 * Represent a source-target pair for renaming a file/directory. 033 */ 034class RenameFilePair 035{ 036 /** source file/directory */ 037 File source; 038 039 /** target file/directory */ 040 File target; 041 042 /** true if rename operation is successful; false otherwise */ 043 boolean success; 044 045 046 /** 047 * Constructor. 048 * 049 * @param source 050 * Source file/directory. 051 * @param target 052 * Target file/directory. 053 */ 054 RenameFilePair( 055 File source, 056 File target) 057 { 058 this.source = source; 059 this.target = target; 060 } 061}