| 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.file.FileSet
public class FileSet
A set of files selected from a single root directory.
| Constructor Summary | |
|---|---|
protected  | 
FileSet(java.net.URL root,
        FileSetFilter filter)
 | 
| Method Summary | |
|---|---|
 boolean | 
contains(java.net.URL url)
Determine whether this file set contains a URL.  | 
 boolean | 
equals(java.lang.Object o)
 | 
 FileSetFilter | 
getFilter()
Get the filter of this file set.  | 
static FileSet | 
getInstance(java.net.URL root)
Get a file set instance that contains all files in a root directory.  | 
static FileSet | 
getInstance(java.net.URL root,
            FileSetFilter filter)
Get a file set instance that contains all file in a root directory that are accepted by a filter.  | 
 java.lang.String | 
getRelativePath(java.net.URL url)
Get the path of a URL, relative to this file set.  | 
 java.net.URL | 
getRoot()
Get the root directory of this file set.  | 
 int | 
hashCode()
 | 
 FileSet | 
intern()
Returns a canonical representation of the file set.  | 
 java.lang.String | 
toString()
 | 
| Methods inherited from class java.lang.Object | 
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| Constructor Detail | 
|---|
protected FileSet(java.net.URL root,
                  FileSetFilter filter)
| Method Detail | 
|---|
public static FileSet getInstance(@NotNull
                                  java.net.URL root)
root - the root directory
public static FileSet getInstance(@NotNull
                                  java.net.URL root,
                                  @NotNull
                                  FileSetFilter filter)
root - the root directoryfilter - the filter
public java.net.URL getRoot()
public FileSetFilter getFilter()
public FileSet intern()
FileSet from being pinned on the heap.  It also
 allows instances to be compared using ==.  Interned keys can also
 be used as keys in an IdentityHashMap.
public boolean contains(java.net.URL url)
GlobalIgnoreList filters or any other
 filters.  This does not check for existence of the URL.
url - the URL
true if this root contains the given URL,
         false otherwisepublic java.lang.String getRelativePath(java.net.URL url)
null
 if the URL is not in this file set.  This does not check whether the URL
 or relative path exists.
url - the URL
null if the URL is not in
   this file setpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
  | 
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.1.0) E17493-02  | 
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||