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
 
 public class FileTransferID extends BaseID implements IFileID - See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description FileTransferID(Namespace namespace, URI uri)FileTransferID(Namespace namespace, URL url)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFilename()Get the file name from this IFileID.protected StringgetFileNameOnly()URIgetURI()Get the URI associated with the file identified by this IFileID.URLgetURL()Get the url associated with the file identified by this IFileID.protected intnamespaceCompareTo(BaseID o)protected booleannamespaceEquals(BaseID o)Called byNamespace.testIDEquals(BaseID, BaseID).protected StringnamespaceGetName()Called byNamespace.getNameForID(BaseID).protected intnamespaceHashCode()Called byNamespace.getHashCodeForID(BaseID).StringtoString()- 
Methods inherited from class org.eclipse.ecf.core.identity.BaseIDcompareTo, equals, getAdapter, getName, getNamespace, hashCode, namespaceToExternalForm, toExternalForm
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface java.lang.ComparablecompareTo
 - 
Methods inherited from interface org.eclipse.ecf.core.identity.IDequals, getName, getNamespace, hashCode, toExternalForm
 
- 
 
- 
- 
- 
Method Detail- 
namespaceCompareToprotected int namespaceCompareTo(BaseID o) Description copied from class:BaseID- Specified by:
- namespaceCompareToin class- BaseID
- Parameters:
- o- the other ID to compare to. Will not be- null.
- Returns:
- the appropriate value as per Comparablecontract.
 
 - 
namespaceEqualsprotected boolean namespaceEquals(BaseID o) Description copied from class:BaseIDCalled byNamespace.testIDEquals(BaseID, BaseID).- Specified by:
- namespaceEqualsin class- BaseID
- Parameters:
- o- the other ID to test against. May be- null.
- Returns:
- trueif this ID is equal to the given ID.- falseotherwise.
 
 - 
namespaceGetNameprotected String namespaceGetName() Description copied from class:BaseIDCalled byNamespace.getNameForID(BaseID).- Specified by:
- namespaceGetNamein class- BaseID
- Returns:
- String name for this ID. Must not be null. Value returned should be unique within this Namespace.
 
 - 
namespaceHashCodeprotected int namespaceHashCode() Description copied from class:BaseIDCalled byNamespace.getHashCodeForID(BaseID).- Specified by:
- namespaceHashCodein class- BaseID
- Returns:
- int hashCode for this ID. Returned value must be unique within this process.
 
 - 
getFilenamepublic String 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 interface- IFileID
- Returns:
- String just the file name and extension (if any) for this given
         IFileID. Will not be null.
 
 - 
getURLpublic URL getURL() throws MalformedURLException Description copied from interface:IFileIDGet the url associated with the file identified by this IFileID.- Specified by:
- getURLin interface- IFileID
- Returns:
- URL associated with this IFileID. Will not be null.
- Throws:
- MalformedURLException- thrown if URL cannot be created for this IFileID
 
 - 
getFileNameOnlyprotected String getFileNameOnly() 
 - 
toStringpublic String toString() 
 - 
getURIpublic URI getURI() throws URISyntaxException Description copied from interface:IFileIDGet the URI associated with the file identified by this IFileID.- Specified by:
- getURIin interface- IFileID
- Returns:
- URI associated with this IFileID.  Will not be null.
- Throws:
- URISyntaxException- thrown if URI cannot be created for this IFileID.
- Since:
- 3.2
 
 
- 
 
-