org.apache.tools.ant.taskdefs

Class Available.FileDir

Enclosing Class:
Available

public static class Available.FileDir
extends EnumeratedAttribute

EnumeratedAttribute covering the file types to be checked for, either file or dir.

Field Summary

Fields inherited from class org.apache.tools.ant.types.EnumeratedAttribute

value

Method Summary

String[]
getValues()
boolean
isDir()
Indicate if the value specifies a directory.
boolean
isFile()
Indicate if the value specifies a file.

Methods inherited from class org.apache.tools.ant.types.EnumeratedAttribute

containsValue, getIndex, getValue, getValues, indexOfValue, setValue, toString

Method Details

getValues

public String[] getValues()
Overrides:
getValues in interface EnumeratedAttribute

isDir

public boolean isDir()
Indicate if the value specifies a directory.
Returns:
true if the value specifies a directory.

isFile

public boolean isFile()
Indicate if the value specifies a file.
Returns:
true if the value specifies a file.

Copyright © 2000-2006 Apache Software Foundation. All Rights Reserved.