001    /*
002     * JAPI - (Yet another (hopefully) useful) Java API
003     *
004     * Copyright (C) 2006 Christian Hujer
005     *
006     * This program is free software; you can redistribute it and/or
007     * modify it under the terms of the GNU General Public License as
008     * published by the Free Software Foundation; either version 2 of the
009     * License, or (at your option) any later version.
010     *
011     * This program is distributed in the hope that it will be useful, but
012     * WITHOUT ANY WARRANTY; without even the implied warranty of
013     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
014     * General Public License for more details.
015     *
016     * You should have received a copy of the GNU General Public License
017     * along with this program; if not, write to the Free Software
018     * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
019     * 02111-1307, USA.
020     */
021    
022    package net.sf.japi.io.args;
023    
024    import java.util.List;
025    
026    /** Shell commands can implement this interface and make use of ArgParser.
027     * @author <a href="mailto:chris@riedquat.de">Christian Hujer</a>
028     */
029    public interface Command {
030    
031        /** Run the command.
032         * This method is invoked by {@link ArgParser} once it is finnished with parsing the arguments.
033         * @param args the argument strings that were not parsed away by {@link ArgParser}.
034         */
035        @SuppressWarnings({"InstanceMethodNamingConvention"})
036        void run(List<String> args);
037    
038    } // interface Command