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

E17493-02

oracle.ide.file
Class FileTable.FileChangeImpl

java.lang.Object
  extended by oracle.ide.file.FileTable.FileChangeImpl
All Implemented Interfaces:
FileChange
Enclosing class:
FileTable

protected final class FileTable.FileChangeImpl
extends java.lang.Object
implements FileChange

Implementation of the FileChange interface.


Nested Class Summary
 
Nested classes/interfaces inherited from interface oracle.ide.file.FileChange
FileChange.Type
 
Method Summary
 FileChange.Type getChangeType()
          Get the type of change.
 FileTable getFileTable()
          Get the file table containing this change.
 int getId()
          Get the file ID for this change.
 long getLastModified()
          Get the last modified time for this change.
 java.net.URL getRenameHint()
          If it is known that a change was part of a rename, obtain the URL being renamed to or from.
 java.net.URL getURL()
          Get the URL of this change.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getChangeType

public FileChange.Type getChangeType()
Description copied from interface: FileChange
Get the type of change.

Specified by:
getChangeType in interface FileChange
Returns:
the type of change

getRenameHint

public java.net.URL getRenameHint()
Description copied from interface: FileChange
If it is known that a change was part of a rename, obtain the URL being renamed to or from. For an FileChange.Type.ADDED change, this will be the old URL of the file. For a FileChange.Type.REMOVED change, this will be the new URL of the file. This is considered a hint because this information can only be provided in some cases. For example, if a file has been renamed externally, and then the project was refreshed in the IDE, this hint cannot be provided. Clients cannot rely on this hint. It is intended to be used in cases where this information can improve performance, but is not necessary. For example, a client may have cached information about a file, which can be reused if the file is renamed. In that case, if the hint is present, the existing data can be reused. But if the hint is not present, the cache data can be regenerated.

Specified by:
getRenameHint in interface FileChange
Returns:
the URL the file was renamed from or to, or null if this information is not available

getURL

public java.net.URL getURL()
Description copied from interface: FileChange
Get the URL of this change.

Specified by:
getURL in interface FileChange
Returns:
the URL of the change

getLastModified

public long getLastModified()
Description copied from interface: FileChange
Get the last modified time for this change.

Specified by:
getLastModified in interface FileChange
Returns:
the last modified time

getFileTable

public FileTable getFileTable()
Description copied from interface: FileChange
Get the file table containing this change.

Specified by:
getFileTable in interface FileChange
Returns:
the file table containing the change

getId

public int getId()
Description copied from interface: FileChange
Get the file ID for this change. The ID is unique within the file table returned by FileChange.getFileTable().

Specified by:
getId in interface FileChange
Returns:
the file ID of this change

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

E17493-02

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