|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsnaq.util.jclap.StringOption.FileFilter
public static final class StringOption.FileFilter
Implementation of an StringOption.Filter
which filters based
on existence and type of file to which the string refers.
Nested Class Summary | |
---|---|
static class |
StringOption.FileFilter.AcceptExistance
Enumeration of possible file existence states to accept. |
static class |
StringOption.FileFilter.AcceptFileType
Enumeration of possible types to accept. |
Constructor Summary | |
---|---|
StringOption.FileFilter(StringOption.FileFilter.AcceptExistance eType,
StringOption.FileFilter.AcceptFileType fType)
Creates a new FileOption instance (allows files/folders). |
Method Summary | |
---|---|
boolean |
accept(java.lang.String arg)
Determines whether the string argument is valid as an option value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringOption.FileFilter(StringOption.FileFilter.AcceptExistance eType, StringOption.FileFilter.AcceptFileType fType)
FileOption
instance (allows files/folders).
eType
- type of files to accept/reject based on existencefType
- type of files to accept/reject based on file/directory statusMethod Detail |
---|
public boolean accept(java.lang.String arg)
accept
in interface StringOption.Filter
arg
- string argument to check for validity as an option value
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |