|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.filesystems.FileSystemCapability
This class defines the capabilities of a filesystem to take part in different operations. Some filesystems are not designed to allow compilation on them, some do not want to be present in class path when executing or debugging a program.
Moreover there can be additional capabilities to check and this class defines ways how one can communicated with a filesystem to find out whether the system is "capable" enough to be used in the operation.
Nested Class Summary | |
static class |
FileSystemCapability.Bean
Deprecated. For the same reason the whole class is. |
Field Summary | |
static FileSystemCapability |
ALL
Deprecated. Object that is capable of every thing. |
static FileSystemCapability |
COMPILE
Deprecated. Please use the ClassPath API instead. |
static FileSystemCapability |
DEBUG
Deprecated. Please use the ClassPath API instead. |
static FileSystemCapability |
DOC
Deprecated. Please use JavadocForBinaryQuery instead. |
static FileSystemCapability |
EXECUTE
Deprecated. Please use the ClassPath API instead. |
Constructor Summary | |
FileSystemCapability()
Deprecated. |
Method Summary | |
void |
addPropertyChangeListener(PropertyChangeListener l)
Deprecated. Adds PropertyChange listener. |
boolean |
capableOf(FileSystemCapability c)
Deprecated. Basic operation that tests whether this object is capable to do different capability. |
Enumeration |
fileSystems()
Deprecated. Please use the ClassPath API instead. |
FileObject |
find(String aPackage,
String name,
String ext)
Deprecated. Please use the ClassPath API instead. |
Enumeration |
findAll(String aPackage,
String name,
String ext)
Deprecated. Please use the ClassPath API instead. |
Enumeration |
findAllResources(String name)
Deprecated. Please use the ClassPath API instead. |
FileObject |
findResource(String resName)
Deprecated. Please use the ClassPath API instead. |
void |
removePropertyChangeListener(PropertyChangeListener l)
Deprecated. Removes PropertyChange listener. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final FileSystemCapability ALL
public static final FileSystemCapability COMPILE
public static final FileSystemCapability EXECUTE
public static final FileSystemCapability DEBUG
public static final FileSystemCapability DOC
JavadocForBinaryQuery
instead.
Constructor Detail |
public FileSystemCapability()
Method Detail |
public boolean capableOf(FileSystemCapability c)
The default implementation claims that it is capable to handle only identical capability (==).
c
- capability to test
public Enumeration fileSystems()
public FileObject findResource(String resName)
resName
- name of the resourcepublic Enumeration findAllResources(String name)
name
- name of the resource
FileObject
spublic final FileObject find(String aPackage, String name, String ext)
find
. The first object that is found is returned or null
if none of the filesystems contain such a file.
aPackage
- package name where each package is separated by a dotname
- name of the file (without dots) or null
if
one wants to obtain the name of a package and not a file in itext
- extension of the file or null
if one needs
a package and not a file name
FileObject
that represents file with given name or
null
if the file does not existpublic final Enumeration findAll(String aPackage, String name, String ext)
FileSystem.find(java.lang.String, java.lang.String, java.lang.String)
.
aPackage
- package name where each package is separated by a dotname
- name of the file (without dots) or null
if
one wants to obtain the name of a package and not a file in itext
- extension of the file or null
if one needs
a package and not a file name
FileObject
spublic void addPropertyChangeListener(PropertyChangeListener l)
l
- the listener to be added.public void removePropertyChangeListener(PropertyChangeListener l)
l
- the listener to be removed.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |