Class FileTransferID
java.lang.Object
org.eclipse.ecf.core.identity.BaseID
org.eclipse.ecf.provider.filetransfer.identity.FileTransferID
- All Implemented Interfaces:
Serializable,Comparable,Principal,org.eclipse.core.runtime.IAdaptable,ID,IFileID
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionFileTransferID(Namespace namespace, URI uri) FileTransferID(Namespace namespace, URL url) -
Method Summary
Modifier and TypeMethodDescriptionGet the file name from this IFileID.protected StringgetURI()Get the URI associated with the file identified by this IFileID.getURL()Get the url associated with the file identified by this IFileID.protected intprotected booleanCalled byNamespace.testIDEquals(BaseID, BaseID).protected StringCalled byNamespace.getNameForID(BaseID).protected intCalled byNamespace.getHashCodeForID(BaseID).toString()Methods inherited from class org.eclipse.ecf.core.identity.BaseID
compareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalFormMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapterMethods inherited from interface org.eclipse.ecf.core.identity.ID
equals, getName, getNamespace, hashCode, toExternalForm
-
Constructor Details
-
FileTransferID
-
FileTransferID
- Parameters:
namespace- namespaceuri- uri- Since:
- 3.2
-
-
Method Details
-
namespaceCompareTo
Description copied from class:BaseID- Specified by:
namespaceCompareToin classBaseID- Parameters:
o- the other ID to compare to. Will not benull.- Returns:
- the appropriate value as per
Comparablecontract.
-
namespaceEquals
Description copied from class:BaseIDCalled byNamespace.testIDEquals(BaseID, BaseID).- Specified by:
namespaceEqualsin classBaseID- Parameters:
o- the other ID to test against. May benull.- Returns:
trueif this ID is equal to the given ID.falseotherwise.
-
namespaceGetName
Description copied from class:BaseIDCalled byNamespace.getNameForID(BaseID).- Specified by:
namespaceGetNamein classBaseID- 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:BaseIDCalled byNamespace.getHashCodeForID(BaseID).- Specified by:
namespaceHashCodein classBaseID- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
-
getFilename
Description copied from interface:IFileIDGet 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:
getFilenamein interfaceIFileID- Returns:
- String just the file name and extension (if any) for this given
IFileID. Will not be
null.
-
getURL
Description copied from interface:IFileIDGet the url associated with the file identified by this IFileID.- Specified by:
getURLin interfaceIFileID- Returns:
- URL associated with this IFileID. Will not be null.
- Throws:
MalformedURLException- thrown if URL cannot be created for this IFileID
-
getFileNameOnly
-
toString
-
getURI
Description copied from interface:IFileIDGet the URI associated with the file identified by this IFileID.- Specified by:
getURIin interfaceIFileID- Returns:
- URI associated with this IFileID. Will not be
null. - Throws:
URISyntaxException- thrown if URI cannot be created for this IFileID.- Since:
- 3.2
-