Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


oracle.ide.file
Class FileSetTable

java.lang.Object
  extended by oracle.ide.file.FileTable
      extended by oracle.ide.file.FileSetTable

All Implemented Interfaces:
FileScope

public abstract class FileSetTable
extends FileTable

Abstract base class for file table implementations based on FileSet.

Since:
11.1.2

Nested Class Summary

 

Nested classes/interfaces inherited from class oracle.ide.file.FileTable
FileTable.FileChangeImpl

 

Field Summary
protected  FileSet fileSet
          The file set for this file table.

 

Fields inherited from class oracle.ide.file.FileTable
FIRST_VERSION, INVALID_FILE_ID, IS_KAVA_TEST, listeners, LOGGER, REMOVED_VERSION, storage

 

Constructor Summary
protected FileSetTable(Storage storage, FileSet fileSet)
           

 

Method Summary
protected static void checkInterrupt()
          Check if the calling thread has been interrupted.
 boolean contains(java.net.URL url)
          Determine whether this scope contains a URL.
protected  java.lang.String getBaseNameSpaceKey()
          Get the base namespace key used to store file table data.
abstract  java.util.Collection<java.lang.String> getDirectoryPaths()
          Get the paths of all directories in this table, relative to the file set root.
abstract  java.util.Collection<java.lang.String> getFilePaths()
          Get the paths of all files in this table, relative to the file set root.
abstract  java.util.Collection<java.lang.String> getFiles(java.lang.String relativePath)
          Get the names of all files in a directory.
 FileSet getFileSet()
          Get the file set for this table.
protected  FileSetFilter getFilter()
          Get the filter used when refreshing this file table.
static FileSetTable getInstance(Storage storage, FileSet fileSet)
          Get the file table for a file set.
 java.lang.String getRelativePath(java.net.URL url)
          Get the path of a URL relative to the root of this file table.
 java.lang.String getStorageKey()
          Get a unique identifier for this file table.
abstract  java.util.Collection<java.lang.String> getSubdirectories(java.lang.String relativePath)
          Get the names of all subdirectories in a directory.
 java.lang.String toString()
           

 

Methods inherited from class oracle.ide.file.FileTable
activate, activateImpl, addFileChangeListener, adjustTimestamps, deactivate, deactivateImpl, delete, getChangesSince, getFileTable, getFileTables, getId, getLastModified, getLength, getRefreshAutomatically, getRefreshOnStartup, getStorage, getURL, invalidate, invalidateAllJars, invalidateDirectory, invalidateDirectory, invalidateDirectoryImpl, invalidateFile, invalidateFileImpl, invalidateJar, invokeListener, invokeListeners, refresh, refreshDirectory, refreshFile, removeFileChangeListener

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface oracle.ide.file.FileScope
getDirectories, getFiles, locate, refresh, update

 

Field Detail

fileSet

protected final FileSet fileSet
The file set for this file table.

Constructor Detail

FileSetTable

protected FileSetTable(Storage storage,
                       FileSet fileSet)

Method Detail

getInstance

public static FileSetTable getInstance(@NotNull
                                       Storage storage,
                                       @NotNull
                                       FileSet fileSet)
Get the file table for a file set.
Parameters:
storage - the storage where the file table is stored
fileSet - the file set defining which files are in the table
Returns:
the file table

getFileSet

public FileSet getFileSet()
Get the file set for this table.
Returns:
the file set

getRelativePath

public java.lang.String getRelativePath(java.net.URL url)
Description copied from class: FileTable
Get the path of a URL relative to the root of this file table. This does not check for existance of the URL.
Specified by:
getRelativePath in class FileTable
Parameters:
url - the URL
Returns:
the relative path, or null if the URL cannot be made relative to this file table

getFilePaths

public abstract java.util.Collection<java.lang.String> getFilePaths()
                                                             throws java.io.IOException,
                                                                    java.lang.InterruptedException
Get the paths of all files in this table, relative to the file set root.
Returns:
the relative paths of all files in the table
Throws:
java.io.IOException - if the file table could not be read
java.lang.InterruptedException - if the calling thread is interrupted

getDirectoryPaths

public abstract java.util.Collection<java.lang.String> getDirectoryPaths()
                                                                  throws java.io.IOException,
                                                                         java.lang.InterruptedException
Get the paths of all directories in this table, relative to the file set root.
Returns:
the relative paths of all directories in the table
Throws:
java.io.IOException - if the file table could not be read
java.lang.InterruptedException - if the calling thread is interrupted

getSubdirectories

public abstract java.util.Collection<java.lang.String> getSubdirectories(java.lang.String relativePath)
                                                                  throws java.io.IOException,
                                                                         java.lang.InterruptedException
Get the names of all subdirectories in a directory.
Parameters:
relativePath - the relative path of the directory
Returns:
the names of subdirectories
Throws:
java.io.IOException - if the file table could not be read
java.lang.InterruptedException - if the calling thread is interrupted

getFiles

public abstract java.util.Collection<java.lang.String> getFiles(java.lang.String relativePath)
                                                         throws java.io.IOException,
                                                                java.lang.InterruptedException
Get the names of all files in a directory.
Parameters:
relativePath - the relative path of the directory
Returns:
the names of files in the directory
Throws:
java.io.IOException - if the file table could not be read
java.lang.InterruptedException - if the calling thread is interrupted

contains

public boolean contains(java.net.URL url)
Description copied from interface: FileScope
Determine whether this scope contains a URL. This does not check for existance of the URL.
Parameters:
url - the URL
Returns:
true if this scope contains the URL, false otherwise

getStorageKey

public java.lang.String getStorageKey()
Description copied from class: FileTable
Get a unique identifier for this file table. This can be used to store and retrieve information about the files in this table.
Specified by:
getStorageKey in class FileTable
Returns:
the unique identifier for the table

getBaseNameSpaceKey

protected java.lang.String getBaseNameSpaceKey()
Get the base namespace key used to store file table data.
Returns:
the base namespace key

checkInterrupt

protected static void checkInterrupt()
                              throws java.lang.InterruptedException
Check if the calling thread has been interrupted.
Throws:
java.lang.InterruptedException - if the calling thread has been interrupted

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getFilter

protected FileSetFilter getFilter()
Get the filter used when refreshing this file table. This is typically the intersection of the file set filter and the global filter.
Returns:
the filter

Skip navigation links

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.2.0)

E17493-03


Copyright © 1997, 2012, Oracle. All rights reserved.