org.eclipse.ecf.provider.filetransfer.identity
Class FileTransferID
java.lang.Object
org.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.provider.filetransfer.identity.FileTransferID
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable, java.security.Principal, org.eclipse.core.runtime.IAdaptable, ID, IFileID
public class FileTransferID
- extends BaseID
- implements IFileID
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
| Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
FileTransferID
public FileTransferID(Namespace namespace,
java.net.URL url)
namespaceCompareTo
protected int namespaceCompareTo(BaseID o)
- Description copied from class:
BaseID
- Called by
Namespace.getCompareToForObject(BaseID, BaseID).
- Specified by:
namespaceCompareTo in class BaseID
- Parameters:
o - the other ID to compare to. Will not be null.
- Returns:
- the appropriate value as per
Comparable contract.
namespaceEquals
protected boolean namespaceEquals(BaseID o)
- Description copied from class:
BaseID
- Called by
Namespace.testIDEquals(BaseID, BaseID).
- Specified by:
namespaceEquals in class BaseID
- Parameters:
o - the other ID to test against. May be null.
- Returns:
true if this ID is equal to the given ID. false otherwise.
namespaceGetName
protected java.lang.String namespaceGetName()
- Description copied from class:
BaseID
- Called by
Namespace.getNameForID(BaseID).
- Specified by:
namespaceGetName in class BaseID
- Returns:
- String name for this ID. Must not be
null. Value returned should be unique within this Namespace.
namespaceHashCode
protected int namespaceHashCode()
- Description copied from class:
BaseID
- Called by
Namespace.getHashCodeForID(BaseID).
- Specified by:
namespaceHashCode in class BaseID
- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
getFilename
public java.lang.String getFilename()
- Description copied from interface:
IFileID
- Get the file name from this IFileID. This will return just the filename
portion of a more complex file ID, e.g. index.html from IFileID created
with value "http://www.composent.com/index.html"
- Specified by:
getFilename in interface IFileID
- Returns:
- String just the file name and extension (if any) for this given
IFileID. Will not be
null.
getURL
public java.net.URL getURL()
- Description copied from interface:
IFileID
- Get the url associated with the file identified by this IFileID.
- Specified by:
getURL in interface IFileID
- Returns:
- URL associated with this IFileID. Will not be null.
getFileNameOnly
protected java.lang.String getFileNameOnly()
toString
public java.lang.String toString()
- Specified by:
toString in interface java.security.Principal- Overrides:
toString in class java.lang.Object