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 static java.lang.annotation.ElementType.METHOD; 025 import java.lang.annotation.Retention; 026 import static java.lang.annotation.RetentionPolicy.RUNTIME; 027 import java.lang.annotation.Target; 028 029 /** Annotation for command argument methods to declare that the associated argument is mandatory. 030 * @author <a href="mailto:chris@riedquat.de">Christian Hujer</a> 031 * @see Option 032 */ 033 @Retention(RUNTIME) 034 @Target(METHOD) 035 public @interface Mandatory { 036 } // @interface Mandatory