| java.lang.Object com.google.gwt.dev.util.FileOracle
FileOracle | abstract public class FileOracle (Code) | | An abstraction for finding and retrieving a set of URLs by logical name.
Intuitively, it works like a jar in that each URL is uniquely located
somewhere in an abstract namespace. The abstract names must be constructed
from a series of zero or more valid Java identifiers followed the '/'
character and finally ending in a valid filename, for example,
"com/google/gwt/blah.txt". Each contained abstract path corresponds to a
physical URL.
|
Method Summary | |
abstract public URL | find(String abstractPath) Finds a URL by abstract path.
Parameters: abstractPath - the abstract path of the URL to find. | abstract public String[] | getAllFiles() Gets the abstract path for every URL indexed by this FileOracle. | abstract public boolean | isEmpty() Tests if this FileOracle has URLs. |
find | abstract public URL find(String abstractPath)(Code) | | Finds a URL by abstract path.
Parameters: abstractPath - the abstract path of the URL to find. the physical URL of the contained URL, or null theabstract path does not refer to a contained URL. |
getAllFiles | abstract public String[] getAllFiles()(Code) | | Gets the abstract path for every URL indexed by this FileOracle. Elements
of the result set can be passed into
FileOracle.find(String) to retrieve the
physical URL.
the abstract path of every URL indexed by this FileOracle |
isEmpty | abstract public boolean isEmpty()(Code) | | Tests if this FileOracle has URLs.
true if this list has no elements; falseotherwise. |
|
|