initial commit
[svjatoslav_commons.git] / src / main / java / eu / svjatoslav / commons / commandline / parameterparser / Argument.java
1 /*
2  * Svjatoslav Commons - shared library of common functionality.
3  * Copyright (C) 2012, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4  * 
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of version 2 of the GNU General Public License
7  * as published by the Free Software Foundation.
8  */
9
10 package eu.svjatoslav.commons.commandline.parameterparser;
11
12 public interface Argument {
13
14         /**
15          * @return Single line argument type description.
16          */
17         public String describeFormat();
18
19         /**
20          * @return <code>true</code> if value is correct, <code>false</code>
21          *         otherwise.
22          */
23         public boolean validate(String value);
24
25 }